diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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]))); } } |