From: Rob Clark Date: Sat, 11 Nov 2017 15:50:20 +0000 (-0500) Subject: freedreno/a5xx: fix SSBO emit for non-zero offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a9aad96aa6d18d5afc20727b1791501cfb7cb48;p=mesa.git freedreno/a5xx: fix SSBO emit for non-zero offset Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c index 39cc77d40a3..2353b8c0ec4 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c @@ -417,7 +417,7 @@ emit_ssbos(struct fd_context *ctx, struct fd_ringbuffer *ring, struct pipe_shader_buffer *buf = &so->sb[i]; if (buf->buffer) { struct fd_resource *rsc = fd_resource(buf->buffer); - OUT_RELOCW(ring, rsc->bo, 0, 0, 0); + OUT_RELOCW(ring, rsc->bo, buf->buffer_offset, 0, 0); } else { OUT_RING(ring, 0x00000000); OUT_RING(ring, 0x00000000);