From 15895bf777bd5f68a197506fdeaced28aa440622 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 5 Apr 2016 10:37:54 -0700 Subject: [PATCH] i965/fs: Use the scale helper in surface_builder As requested by Curro --- src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp | 4 ++-- 1 file 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]))); } } -- 2.30.2