[Piglit] [PATCH 1/1] cl: Add scalar to constant load test

Jan Vesely jan.vesely at rutgers.edu
Fri Jan 15 14:37:42 PST 2016


Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 tests/cl/program/execute/constant-load.cl | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/tests/cl/program/execute/constant-load.cl b/tests/cl/program/execute/constant-load.cl
index 307ba68..ae1ebcd 100644
--- a/tests/cl/program/execute/constant-load.cl
+++ b/tests/cl/program/execute/constant-load.cl
@@ -2,19 +2,29 @@
 [config]
 
 [test]
+kernel_name: constant_load_global_store_1
+name: constant load global write int
+arg_out: 0 buffer int[1] 1
+arg_in:  1 buffer int[1] 1
+
+[test]
 kernel_name: constant_load_global_store_2
 name: constant load global write int2
-arg_out: 0 buffer int2[1] 1 2
-arg_in:  1 buffer int2[1] 1 2
+arg_out: 0 buffer int2[1] 2 3
+arg_in:  1 buffer int2[1] 2 3
 
 [test]
 kernel_name: constant_load_global_store_4
 name: constant load global write int4
-arg_out: 0 buffer int4[1] 1 2 3 4
-arg_in:  1 buffer int4[1] 1 2 3 4
+arg_out: 0 buffer int4[1] 4 5 6 7
+arg_in:  1 buffer int4[1] 4 5 6 7
 
 !*/
 
+kernel void constant_load_global_store_1(global int2 *out, constant int *in){
+    out[0] = *in;
+}
+
 kernel void constant_load_global_store_2(global int2 *out, constant int2 *in){
     out[0] = *in;
 }
-- 
2.5.0



More information about the Piglit mailing list