summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-11-11 10:50:20 -0500
committerRob Clark <[email protected]>2017-11-12 12:29:00 -0500
commit4a9aad96aa6d18d5afc20727b1791501cfb7cb48 (patch)
treecf26b63b358de139cb918fb22a0c2898bd2a9d08 /src/gallium
parent5f25ab4fee3fefc7aad9ed8f9cf101f95a01c51c (diff)
freedreno/a5xx: fix SSBO emit for non-zero offset
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_emit.c2
1 files changed, 1 insertions, 1 deletions
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);