summaryrefslogtreecommitdiff
path: root/tests/cl
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-07-17 17:39:28 -0400
committerJan Vesely <jan.vesely@rutgers.edu>2017-08-02 11:13:35 -0400
commitfdd621a1db8936b21704507ead225837d130289a (patch)
tree76c51ab4ce621eca098be3577510818e59b177de /tests/cl
parent82ec051c26cd0a88a90f7079f15d3ea88cbc647a (diff)
cl: Use required format for sampler test
CL_RGBA + CL_FLOAT is in minimal supported set. Fixes sampler test on beignet (IVB). Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Diffstat (limited to 'tests/cl')
-rw-r--r--tests/cl/program/execute/sampler.cl18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/cl/program/execute/sampler.cl b/tests/cl/program/execute/sampler.cl
index 45960b778..6de1d4462 100644
--- a/tests/cl/program/execute/sampler.cl
+++ b/tests/cl/program/execute/sampler.cl
@@ -10,12 +10,12 @@ local_size: 1 0 0
name: read from image using linear filtering and unnormalized coords
kernel_name: readf_f_x
-arg_in: 1 image float 0.0 1.0 \
- 2.0 3.0 \
+arg_in: 1 image float4 0.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 \
+ 2.0 2.0 2.0 1.0 3.0 3.0 3.0 1.0 \
image_type 2d \
image_width 2 \
image_height 2 \
- image_channel_order INTENSITY \
+ image_channel_order RGBA \
image_channel_data_type FLOAT
arg_in: 2 sampler normalized_coords 0 \
addressing_mode NONE \
@@ -27,12 +27,12 @@ arg_out: 0 buffer float[4] 0.0 0.5 1.5 1.0
name: read from image using linear filtering and normalized coords
kernel_name: readf_f_x
-arg_in: 1 image float 0.0 1.0 \
- 2.0 3.0 \
+arg_in: 1 image float4 0.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 \
+ 2.0 2.0 2.0 1.0 3.0 3.0 3.0 1.0 \
image_type 2d \
image_width 2 \
image_height 2 \
- image_channel_order INTENSITY \
+ image_channel_order RGBA \
image_channel_data_type FLOAT
arg_in: 2 sampler normalized_coords 1 \
addressing_mode NONE \
@@ -44,12 +44,12 @@ arg_out: 0 buffer float[4] 0.0 0.5 1.5 1.0
name: read from image using clamp_to_edge addressing mode
kernel_name: readf_f_x
-arg_in: 1 image float 0.0 1.0 \
- 2.0 3.0 \
+arg_in: 1 image float4 0.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 \
+ 2.0 2.0 2.0 1.0 3.0 3.0 3.0 1.0 \
image_type 2d \
image_width 2 \
image_height 2 \
- image_channel_order INTENSITY \
+ image_channel_order RGBA \
image_channel_data_type FLOAT
arg_in: 2 sampler normalized_coords 0 \
addressing_mode CLAMP_TO_EDGE \