summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2018-12-09 22:31:26 -0500
committerRob Clark <[email protected]>2019-01-21 09:22:27 -0500
commitbec6e4b05482ae2897a058e9ac6215f12a7aa999 (patch)
tree8e1d991f746d9eae1bdfb1acd301fa4672ebd375 /src/gallium/drivers/freedreno
parent02ab85afd8b63b90190c086b56c23c7151dbc5c5 (diff)
freedreno: a2xx: fix non-zero texture base offsets
Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/a2xx/fd2_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_emit.c b/src/gallium/drivers/freedreno/a2xx/fd2_emit.c
index ce275a78a61..ac2a02dfae9 100644
--- a/src/gallium/drivers/freedreno/a2xx/fd2_emit.c
+++ b/src/gallium/drivers/freedreno/a2xx/fd2_emit.c
@@ -137,7 +137,7 @@ emit_texture(struct fd_ringbuffer *ring, struct fd_context *ctx,
OUT_RING(ring, sampler->tex0 | view->tex0);
if (rsc)
- OUT_RELOC(ring, rsc->bo, 0, view->tex1, 0);
+ OUT_RELOC(ring, rsc->bo, fd_resource_offset(rsc, 0, 0), view->tex1, 0);
else
OUT_RING(ring, 0);