"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/intel/compiler/brw_vec4_nir.cpp" between
mesa-20.0.0-rc2.tar.xz and mesa-20.0.0-rc3.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Release candidate.

brw_vec4_nir.cpp  (mesa-20.0.0-rc2.tar.xz):brw_vec4_nir.cpp  (mesa-20.0.0-rc3.tar.xz)
skipping to change at line 1033 skipping to change at line 1033
f[first_comp] = fabs(f[first_comp]); f[first_comp] = fabs(f[first_comp]);
if (op[idx].negate) if (op[idx].negate)
f[first_comp] = -f[first_comp]; f[first_comp] = -f[first_comp];
op[idx] = src_reg(brw_imm_f(f[first_comp])); op[idx] = src_reg(brw_imm_f(f[first_comp]));
assert(op[idx].type == old_type); assert(op[idx].type == old_type);
} else { } else {
uint8_t vf_values[4] = { 0, 0, 0, 0 }; uint8_t vf_values[4] = { 0, 0, 0, 0 };
for (unsigned i = 0; i < NIR_MAX_VEC_COMPONENTS; i++) { for (unsigned i = 0; i < ARRAY_SIZE(vf_values); i++) {
if (op[idx].abs) if (op[idx].abs)
f[i] = fabs(f[i]); f[i] = fabs(f[i]);
if (op[idx].negate) if (op[idx].negate)
f[i] = -f[i]; f[i] = -f[i];
const int vf = brw_float_to_vf(f[i]); const int vf = brw_float_to_vf(f[i]);
if (vf == -1) if (vf == -1)
return -1; return -1;
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)