[Piglit] [PATCH 1/4] shader_runner: clear resident handles before texture bindings

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri May 19 12:52:48 UTC 2017


At this point, the resident handles are already removed and
glMake{Texture,Image}HandleNonResidentARB() reported
INVALID_OPERATION errors because handles weren't resident.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 tests/shaders/shader_runner.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index ccb2c25ae..933f97fac 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -3819,12 +3819,12 @@ piglit_display(void)
 		/* Free our resources, useful for valgrinding. */
 	        free_subroutine_uniforms();
 
-		for (i = 0; i < ARRAY_SIZE(texture_bindings); i++)
-			clear_texture_binding(i);
-
 		for (i = 0; i < ARRAY_SIZE(resident_handles); i++)
 			clear_resident_handle(i);
 
+		for (i = 0; i < ARRAY_SIZE(texture_bindings); i++)
+			clear_texture_binding(i);
+
 		if (prog != 0) {
 			glDeleteProgram(prog);
 			glUseProgram(0);
-- 
2.13.0



More information about the Piglit mailing list