From: Jason Ekstrand Date: Tue, 5 Apr 2016 17:37:54 +0000 (-0700) Subject: i965/fs: Use the scale helper in surface_builder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15895bf777bd5f68a197506fdeaced28aa440622;p=mesa.git i965/fs: Use the scale helper in surface_builder As requested by Curro --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp b/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp index 4adffdd75fb..96731ffac7f 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp @@ -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]))); } }