From 4a9aad96aa6d18d5afc20727b1791501cfb7cb48 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 11 Nov 2017 10:50:20 -0500 Subject: [PATCH] freedreno/a5xx: fix SSBO emit for non-zero offset Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a5xx/fd5_emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2