summaryrefslogtreecommitdiff
path: root/freedreno/kgsl
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2016-05-20 17:14:43 -0400
committerRob Clark <robclark@freedesktop.org>2016-07-20 19:42:21 -0400
commit73db0a0421006d7b4af837c7a77dacbb005b800f (patch)
treec11763745f229a384b50e09aafeb1dcc5e46381b /freedreno/kgsl
parent681fd2ab6da0627ac8b8838eed4b3878c1cb8d25 (diff)
freedreno: rework internal ring->emit_reloc_ring()
No need for it to deal with ringmarkers. Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno/kgsl')
-rw-r--r--freedreno/kgsl/kgsl_ringbuffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/freedreno/kgsl/kgsl_ringbuffer.c b/freedreno/kgsl/kgsl_ringbuffer.c
index 6f68f2f3..a0bc9d07 100644
--- a/freedreno/kgsl/kgsl_ringbuffer.c
+++ b/freedreno/kgsl/kgsl_ringbuffer.c
@@ -174,11 +174,11 @@ static void kgsl_ringbuffer_emit_reloc(struct fd_ringbuffer *ring,
}
static void kgsl_ringbuffer_emit_reloc_ring(struct fd_ringbuffer *ring,
- struct fd_ringmarker *target, struct fd_ringmarker *end)
+ struct fd_ringbuffer *target,
+ uint32_t submit_offset, uint32_t size)
{
- struct kgsl_ringbuffer *target_ring = to_kgsl_ringbuffer(target->ring);
- (*ring->cur++) = target_ring->bo->gpuaddr +
- (uint8_t *)target->cur - (uint8_t *)target->ring->start;
+ struct kgsl_ringbuffer *target_ring = to_kgsl_ringbuffer(target);
+ (*ring->cur++) = target_ring->bo->gpuaddr + submit_offset;
}
static void kgsl_ringbuffer_destroy(struct fd_ringbuffer *ring)