summaryrefslogtreecommitdiff
path: root/src/gallium/tests
diff options
context:
space:
mode:
authorKarol Herbst <karolherbst@gmail.com>2020-03-10 22:41:26 +0000
committerKarol Herbst <karolherbst@gmail.com>2020-03-10 22:41:26 +0000
commit6e035c01fb95686b9c48f2930104b90c7d12f0f7 (patch)
tree317455be8c8b209fdf1b84d068b41b93ed07a211 /src/gallium/tests
parente1ffb72a05f9b50ee47767aaadbab3e47896ee14 (diff)
Revert "gallium: make handles of set_global_binding 64 bit"
Diffstat (limited to 'src/gallium/tests')
-rw-r--r--src/gallium/tests/trivial/compute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/tests/trivial/compute.c b/src/gallium/tests/trivial/compute.c
index 2eaf6263392..cfdbdf1cc8d 100644
--- a/src/gallium/tests/trivial/compute.c
+++ b/src/gallium/tests/trivial/compute.c
@@ -403,7 +403,7 @@ static void destroy_sampler_states(struct context *ctx)
}
static void init_globals(struct context *ctx, const int *slots,
- uint64_t **handles)
+ uint32_t **handles)
{
struct pipe_context *pipe = ctx->pipe;
struct pipe_resource *res[MAX_RESOURCES];
@@ -651,7 +651,7 @@ static void test_input_global(struct context *ctx)
" STORE RGLOBAL.x, TEMP[1].yyyy, TEMP[1]\n"
" RET\n"
" ENDSUB\n";
- uint64_t input[8] = { 0x10001, 0x10002, 0x10003, 0x10004,
+ uint32_t input[8] = { 0x10001, 0x10002, 0x10003, 0x10004,
0x10005, 0x10006, 0x10007, 0x10008 };
printf("- %s\n", __func__);
@@ -666,7 +666,7 @@ static void test_input_global(struct context *ctx)
init_tex(ctx, 3, PIPE_BUFFER, true, PIPE_FORMAT_R32_FLOAT, 32, 0,
test_default_init);
init_globals(ctx, (int []){ 0, 1, 2, 3, -1 },
- (uint64_t *[]){ &input[1], &input[3],
+ (uint32_t *[]){ &input[1], &input[3],
&input[5], &input[7] });
launch_grid(ctx, (uint []){4, 1, 1}, (uint []){1, 1, 1}, 0, input);
check_tex(ctx, 0, test_input_global_expect, NULL);