From cd70e614156b4c4c5f83f031ed65e7dc050f613d Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 6 Sep 2013 13:43:05 +0800 Subject: Runtime: fix a bug when set sampler value. Signed-off-by: Zhigang Gong Reviewed-by: He Junyan --- src/cl_sampler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cl_sampler.c') diff --git a/src/cl_sampler.c b/src/cl_sampler.c index 7e0b7b06..b3f7045a 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) -- cgit v1.2.1