aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
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/freedreno
parente1ffb72a05f9b50ee47767aaadbab3e47896ee14 (diff)
Revert "gallium: make handles of set_global_binding 64 bit"
This reverts commit e1ffb72a05f9b50ee47767aaadbab3e47896ee14
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_state.c b/src/gallium/drivers/freedreno/freedreno_state.c
index 9fb1cb6e6b6..d9c8f9f89a2 100644
--- a/src/gallium/drivers/freedreno/freedreno_state.c
+++ b/src/gallium/drivers/freedreno/freedreno_state.c
@@ -541,7 +541,7 @@ fd_set_compute_resources(struct pipe_context *pctx,
static void
fd_set_global_binding(struct pipe_context *pctx,
unsigned first, unsigned count, struct pipe_resource **prscs,
- uint64_t **handles)
+ uint32_t **handles)
{
struct fd_context *ctx = fd_context(pctx);
struct fd_global_bindings_stateobj *so = &ctx->global_bindings;
@@ -558,6 +558,7 @@ fd_set_global_binding(struct pipe_context *pctx,
if (so->buf[n]) {
struct fd_resource *rsc = fd_resource(so->buf[n]);
uint64_t iova = fd_bo_get_iova(rsc->bo);
+ // TODO need to scream if iova > 32b or fix gallium API..
*handles[i] += iova;
}