aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2020-03-10 22:41:26 +0000
committerKarol Herbst <[email protected]>2020-03-10 22:41:26 +0000
commit6e035c01fb95686b9c48f2930104b90c7d12f0f7 (patch)
tree317455be8c8b209fdf1b84d068b41b93ed07a211 /src/gallium/drivers/r600
parente1ffb72a05f9b50ee47767aaadbab3e47896ee14 (diff)
Revert "gallium: make handles of set_global_binding 64 bit"
This reverts commit e1ffb72a05f9b50ee47767aaadbab3e47896ee14
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/evergreen_compute.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
index aa16596d126..98d4b97d7fc 100644
--- a/src/gallium/drivers/r600/evergreen_compute.c
+++ b/src/gallium/drivers/r600/evergreen_compute.c
@@ -986,7 +986,7 @@ static void evergreen_set_compute_resources(struct pipe_context *ctx,
static void evergreen_set_global_binding(struct pipe_context *ctx,
unsigned first, unsigned n,
struct pipe_resource **resources,
- uint64_t **handles)
+ uint32_t **handles)
{
struct r600_context *rctx = (struct r600_context *)ctx;
struct compute_memory_pool *pool = rctx->screen->global_pool;
@@ -1018,15 +1018,15 @@ static void evergreen_set_global_binding(struct pipe_context *ctx,
for (i = first; i < first + n; i++)
{
- uint64_t buffer_offset;
- uint64_t handle;
+ uint32_t buffer_offset;
+ uint32_t handle;
assert(resources[i]->target == PIPE_BUFFER);
assert(resources[i]->bind & PIPE_BIND_GLOBAL);
- buffer_offset = util_le64_to_cpu(*(handles[i]));
+ buffer_offset = util_le32_to_cpu(*(handles[i]));
handle = buffer_offset + buffers[i]->chunk->start_in_dw * 4;
- *(handles[i]) = util_cpu_to_le64(handle);
+ *(handles[i]) = util_cpu_to_le32(handle);
}
/* globals for writing */