[Piglit] [PATCH 2/3] arb_tessellation_shader/execution: clear before testing

Marek Olšák maraeo at gmail.com
Thu Oct 16 01:41:25 PDT 2014


From: Marek Olšák <marek.olsak at amd.com>

The back buffer may already be green after allocation.
---
 tests/spec/arb_tessellation_shader/execution/nop.shader_test            | 2 ++
 tests/spec/arb_tessellation_shader/execution/sanity.shader_test         | 2 ++
 .../arb_tessellation_shader/execution/tcs-tes-patch-array.shader_test   | 2 ++
 tests/spec/arb_tessellation_shader/execution/tcs-tes-patch.shader_test  | 2 ++
 tests/spec/arb_tessellation_shader/execution/tcs-tes-vertex.shader_test | 2 ++
 tests/spec/arb_tessellation_shader/execution/tes-fs.shader_test         | 2 ++
 .../arb_tessellation_shader/execution/vs-tcs-tes-vertex.shader_test     | 2 ++
 tests/spec/arb_tessellation_shader/execution/vs-tes-vertex.shader_test  | 2 ++
 8 files changed, 16 insertions(+)

diff --git a/tests/spec/arb_tessellation_shader/execution/nop.shader_test b/tests/spec/arb_tessellation_shader/execution/nop.shader_test
index 64cee80..2a6473d 100644
--- a/tests/spec/arb_tessellation_shader/execution/nop.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/nop.shader_test
@@ -58,6 +58,8 @@ void main()
 }
 
 [test]
+clear color 0.1 0.1 0.1 0.1
+clear
 patch parameter vertices 3
 draw arrays GL_PATCHES 0 6
 probe all rgba 0.0 1.0 0.0 1.0
diff --git a/tests/spec/arb_tessellation_shader/execution/sanity.shader_test b/tests/spec/arb_tessellation_shader/execution/sanity.shader_test
index 2f7bd5c..0d176e8 100644
--- a/tests/spec/arb_tessellation_shader/execution/sanity.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/sanity.shader_test
@@ -50,6 +50,8 @@ vertex/float/2
  1.0  1.0
 
 [test]
+clear color 0.1 0.1 0.1 0.1
+clear
 patch parameter vertices 3
 draw arrays GL_PATCHES 0 6
 probe all rgba 0.0 1.0 0.0 1.0
diff --git a/tests/spec/arb_tessellation_shader/execution/tcs-tes-patch-array.shader_test b/tests/spec/arb_tessellation_shader/execution/tcs-tes-patch-array.shader_test
index ffe25aa..cfb66db 100644
--- a/tests/spec/arb_tessellation_shader/execution/tcs-tes-patch-array.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/tcs-tes-patch-array.shader_test
@@ -54,6 +54,8 @@ piglit_vertex/float/2
  1.0  1.0
 
 [test]
+clear color 0.1 0.1 0.1 0.1
+clear
 patch parameter vertices 3
 draw arrays GL_PATCHES 0 6
 probe all rgba 0.0 1.0 0.0 1.0
diff --git a/tests/spec/arb_tessellation_shader/execution/tcs-tes-patch.shader_test b/tests/spec/arb_tessellation_shader/execution/tcs-tes-patch.shader_test
index a902c00..c60c42c 100644
--- a/tests/spec/arb_tessellation_shader/execution/tcs-tes-patch.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/tcs-tes-patch.shader_test
@@ -53,6 +53,8 @@ piglit_vertex/float/2
  1.0  1.0
 
 [test]
+clear color 0.1 0.1 0.1 0.1
+clear
 patch parameter vertices 3
 draw arrays GL_PATCHES 0 6
 probe all rgba 0.0 1.0 0.0 1.0
diff --git a/tests/spec/arb_tessellation_shader/execution/tcs-tes-vertex.shader_test b/tests/spec/arb_tessellation_shader/execution/tcs-tes-vertex.shader_test
index a7dacba..98d8bb7 100644
--- a/tests/spec/arb_tessellation_shader/execution/tcs-tes-vertex.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/tcs-tes-vertex.shader_test
@@ -56,6 +56,8 @@ piglit_vertex/float/2
  1.0  1.0
 
 [test]
+clear color 0.1 0.1 0.1 0.1
+clear
 patch parameter vertices 3
 draw arrays GL_PATCHES 0 6
 probe all rgba 0.0 1.0 0.0 1.0
diff --git a/tests/spec/arb_tessellation_shader/execution/tes-fs.shader_test b/tests/spec/arb_tessellation_shader/execution/tes-fs.shader_test
index 73632d1..992cfe2 100644
--- a/tests/spec/arb_tessellation_shader/execution/tes-fs.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/tes-fs.shader_test
@@ -49,6 +49,8 @@ piglit_vertex/float/2
  1.0  1.0
 
 [test]
+clear color 0.1 0.1 0.1 0.1
+clear
 patch parameter vertices 3
 draw arrays GL_PATCHES 0 6
 probe all rgba 0.0 1.0 0.0 1.0
diff --git a/tests/spec/arb_tessellation_shader/execution/vs-tcs-tes-vertex.shader_test b/tests/spec/arb_tessellation_shader/execution/vs-tcs-tes-vertex.shader_test
index 550ff25..9e5aae6 100644
--- a/tests/spec/arb_tessellation_shader/execution/vs-tcs-tes-vertex.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/vs-tcs-tes-vertex.shader_test
@@ -65,6 +65,8 @@ vertex/float/2
  1.0  1.0
 
 [test]
+clear color 0.1 0.1 0.1 0.1
+clear
 patch parameter vertices 3
 draw arrays GL_PATCHES 0 6
 probe all rgba 0.0 1.0 0.0 1.0
diff --git a/tests/spec/arb_tessellation_shader/execution/vs-tes-vertex.shader_test b/tests/spec/arb_tessellation_shader/execution/vs-tes-vertex.shader_test
index 9bf5098..807cd85 100644
--- a/tests/spec/arb_tessellation_shader/execution/vs-tes-vertex.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/vs-tes-vertex.shader_test
@@ -50,6 +50,8 @@ vertex/float/2
  1.0  1.0
 
 [test]
+clear color 0.1 0.1 0.1 0.1
+clear
 patch parameter vertices 3
 draw arrays GL_PATCHES 0 6
 probe all rgba 0.0 1.0 0.0 1.0
-- 
1.9.1



More information about the Piglit mailing list