Browse Source

freedreno: a2xx: fix non-zero texture base offsets

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@gmail.com>
tags/19.0-branchpoint
Jonathan Marek 6 years ago
parent
commit
bec6e4b054
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gallium/drivers/freedreno/a2xx/fd2_emit.c

+ 1
- 1
src/gallium/drivers/freedreno/a2xx/fd2_emit.c View File

@@ -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);


Loading…
Cancel
Save