[Piglit] [PATCH 1/2] shader_runner: add support for setting resident handles to UBO
Samuel Pitoiset
samuel.pitoiset at gmail.com
Mon May 1 15:07:38 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at 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
More information about the Piglit
mailing list