summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2017-05-01 17:07:38 +0200
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2017-05-19 13:49:40 +0200
commit41d045f8c1566ee6926fa29ef551edc434397d41 (patch)
tree0789b6af06aec367161b8c6f23a9624da8bc1967 /tests
parent5114f226bd2cf5b9eb8348987f5d21fced8c5d6b (diff)
shader_runner: add support for setting resident handles to UBO
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/shaders/shader_runner.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 74caa566c..ccb2c25ae 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1676,6 +1676,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);