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

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 6ac5f9893..d94ec1e29 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1675,6 +1675,12 @@ set_ubo_uniform(char *name, const char *type, const char 
*line, int ubo_array_in
                                }
                        }
                }
+       } else if (parse_str(type, "handle", NULL)) {
+               check_unsigned_support();
+               check_texture_handle_support();
+               parse_uints(line, uints, 1, NULL);
+               GLuint64 handle = get_resident_handle(uints[0])->handle;
+               memcpy(data, &handle, sizeof(uint64_t));
        } else {
                printf("unknown uniform type \"%s\" for \"%s\"\n", type, name);
                piglit_report_result(PIGLIT_FAIL);
-- 
2.12.2

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to