[Piglit] [PATCH 1/1] cl: Use required format for sampler test

Jan Vesely jan.vesely at rutgers.edu
Mon Jul 17 21:47:56 UTC 2017


CL_RGBA + CL_FLOAT is in minimal supported set.
Fixes sampler test on beignet (IVB).

Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 tests/cl/program/execute/sampler.cl | 18 +++++++++---------
 1 file 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  \
-- 
2.13.3



More information about the Piglit mailing list