i965/fs: Use the scale helper in surface_builder

As requested by Curro
This commit is contained in:
Jason Ekstrand 2016-04-05 10:37:54 -07:00
parent 068935844c
commit 15895bf777

View file

@ -725,7 +725,7 @@ namespace {
*/
if (is_signed && widths[c] < 32)
bld.AND(offset(dst, bld, c), offset(dst, bld, c),
brw_imm_d((1 << widths[c]) - 1));
brw_imm_d(scale(widths[c])));
}
}
@ -804,7 +804,7 @@ namespace {
*/
if (is_signed && widths[c] < 32)
bld.AND(offset(dst, bld, c), offset(dst, bld, c),
brw_imm_d((1 << widths[c]) - 1));
brw_imm_d(scale(widths[c])));
}
}