[Piglit] [PATCH 4/6] arb_bindless_texture: consolidate inout-*.frag compiler tests

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Apr 26 22:52:34 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 tests/spec/arb_bindless_texture/compiler/images/inout-struct.frag  | 7 +++++++
 tests/spec/arb_bindless_texture/compiler/images/inout.frag         | 2 ++
 .../spec/arb_bindless_texture/compiler/samplers/inout-struct.frag  | 7 +++++++
 tests/spec/arb_bindless_texture/compiler/samplers/inout.frag       | 2 ++
 4 files changed, 18 insertions(+)

diff --git a/tests/spec/arb_bindless_texture/compiler/images/inout-struct.frag b/tests/spec/arb_bindless_texture/compiler/images/inout-struct.frag
index 09f24a0a1..e87e99366 100644
--- a/tests/spec/arb_bindless_texture/compiler/images/inout-struct.frag
+++ b/tests/spec/arb_bindless_texture/compiler/images/inout-struct.frag
@@ -24,6 +24,13 @@ void f(inout foo p)
 {
 }
 
+void g(inout image2D p)
+{
+}
+
 void main()
 {
+	foo u;
+	f(u);
+	g(u.img);
 }
diff --git a/tests/spec/arb_bindless_texture/compiler/images/inout.frag b/tests/spec/arb_bindless_texture/compiler/images/inout.frag
index f6e1b9e65..8b8c8981a 100644
--- a/tests/spec/arb_bindless_texture/compiler/images/inout.frag
+++ b/tests/spec/arb_bindless_texture/compiler/images/inout.frag
@@ -21,4 +21,6 @@ void f(inout image2D p)
 
 void main()
 {
+	writeonly image2D u;
+	f(u);
 }
diff --git a/tests/spec/arb_bindless_texture/compiler/samplers/inout-struct.frag b/tests/spec/arb_bindless_texture/compiler/samplers/inout-struct.frag
index 01729065d..6b1434431 100644
--- a/tests/spec/arb_bindless_texture/compiler/samplers/inout-struct.frag
+++ b/tests/spec/arb_bindless_texture/compiler/samplers/inout-struct.frag
@@ -23,6 +23,13 @@ void f(inout foo p)
 {
 }
 
+void g(inout sampler2D p)
+{
+}
+
 void main()
 {
+	foo u;
+	f(u);
+	g(u.tex);
 }
diff --git a/tests/spec/arb_bindless_texture/compiler/samplers/inout.frag b/tests/spec/arb_bindless_texture/compiler/samplers/inout.frag
index 61d6e52d5..fd5f7d9ad 100644
--- a/tests/spec/arb_bindless_texture/compiler/samplers/inout.frag
+++ b/tests/spec/arb_bindless_texture/compiler/samplers/inout.frag
@@ -20,4 +20,6 @@ void f(inout sampler2D p)
 
 void main()
 {
+	sampler2D u;
+	f(u);
 }
-- 
2.12.2



More information about the Piglit mailing list