From: Jonathan Marek Date: Mon, 10 Dec 2018 03:31:26 +0000 (-0500) Subject: freedreno: a2xx: fix non-zero texture base offsets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bec6e4b05482ae2897a058e9ac6215f12a7aa999;p=mesa.git freedreno: a2xx: fix non-zero texture base offsets Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- 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);