[Beignet] [PATCH 3/5] Runtime: fix a bug when set sampler value.

Zhigang Gong zhigang.gong at linux.intel.com
Thu Sep 5 22:43:05 PDT 2013


Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
 src/cl_sampler.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cl_sampler.c b/src/cl_sampler.c
index 7e0b7b0..b3f7045 100644
--- a/src/cl_sampler.c
+++ b/src/cl_sampler.c
@@ -49,7 +49,7 @@ uint32_t cl_to_clk(cl_bool normalized_coords,
   }
   return (clk_address << __CLK_ADDRESS_BASE)
          | (normalized_coords << __CLK_NORMALIZED_BASE)
-         | (clk_filter << __CLK_FILTER_BASE);
+         | (clk_filter);
 }
 
 #define IS_SAMPLER_ARG(v) (v & __CLK_SAMPLER_ARG_KEY_BIT)
-- 
1.7.9.5



More information about the Beignet mailing list