diff options
author | Jason Ekstrand <[email protected]> | 2016-04-05 10:37:54 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-07 16:49:09 -0700 |
commit | 15895bf777bd5f68a197506fdeaced28aa440622 (patch) | |
tree | b1c6a2b0281e2d1adc9ae0e69ea12d27fab67e87 | |
parent | 068935844cff985c1b68a6d8aaa9b014f2584e5b (diff) |
i965/fs: Use the scale helper in surface_builder
As requested by Curro
-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]))); } } |