diff options
author | Karol Herbst <[email protected]> | 2020-03-10 22:41:26 +0000 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2020-03-10 22:41:26 +0000 |
commit | 6e035c01fb95686b9c48f2930104b90c7d12f0f7 (patch) | |
tree | 317455be8c8b209fdf1b84d068b41b93ed07a211 /src/gallium/drivers/freedreno | |
parent | e1ffb72a05f9b50ee47767aaadbab3e47896ee14 (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.c | 3 |
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; } |