Runtime: fix a bug when set sampler value.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 6 Sep 2013 05:43:05 +0000 (13:43 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 18 Sep 2013 06:40:20 +0000 (14:40 +0800)
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
src/cl_sampler.c

index 7e0b7b0..b3f7045 100644 (file)
@@ -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)