Bug 1163740: Keep |result| in a register where we can see it in minidumps. r=seth

This commit is contained in:
David Major 2015-05-22 16:49:37 -04:00
parent 34cc4a00f0
commit b66777fe0f

View File

@ -90,17 +90,17 @@ void qcms_transform_data_rgb_out_lut_sse1(qcms_transform *transform,
*((__m64 *)&output[2]) = _mm_cvtps_pi32(result_hi);
*((__m64 *)&output[0]) = _mm_cvtps_pi32(result);
/* load for next loop while store completes */
vec_r = _mm_load_ss(&igtbl_r[src[0]]);
vec_g = _mm_load_ss(&igtbl_g[src[1]]);
vec_b = _mm_load_ss(&igtbl_b[src[2]]);
src += 3;
/* use calc'd indices to output RGB values */
dest[OUTPUT_R_INDEX] = otdata_r[output[0]];
dest[OUTPUT_G_INDEX] = otdata_g[output[1]];
dest[OUTPUT_B_INDEX] = otdata_b[output[2]];
dest += RGB_OUTPUT_COMPONENTS;
/* load for next loop while store completes */
vec_r = _mm_load_ss(&igtbl_r[src[0]]);
vec_g = _mm_load_ss(&igtbl_g[src[1]]);
vec_b = _mm_load_ss(&igtbl_b[src[2]]);
src += 3;
}
/* handle final (maybe only) pixel */
@ -214,17 +214,17 @@ void qcms_transform_data_rgba_out_lut_sse1(qcms_transform *transform,
*((__m64 *)&output[2]) = _mm_cvtps_pi32(result_hi);
*((__m64 *)&output[0]) = _mm_cvtps_pi32(result);
/* load gamma values for next loop while store completes */
vec_r = _mm_load_ss(&igtbl_r[src[0]]);
vec_g = _mm_load_ss(&igtbl_g[src[1]]);
vec_b = _mm_load_ss(&igtbl_b[src[2]]);
src += 4;
/* use calc'd indices to output RGB values */
dest[OUTPUT_R_INDEX] = otdata_r[output[0]];
dest[OUTPUT_G_INDEX] = otdata_g[output[1]];
dest[OUTPUT_B_INDEX] = otdata_b[output[2]];
dest += 4;
/* load gamma values for next loop while store completes */
vec_r = _mm_load_ss(&igtbl_r[src[0]]);
vec_g = _mm_load_ss(&igtbl_g[src[1]]);
vec_b = _mm_load_ss(&igtbl_b[src[2]]);
src += 4;
}
/* handle final (maybe only) pixel */