diff options
author | Rob Clark <[email protected]> | 2015-08-16 19:18:22 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-08-18 15:36:30 -0400 |
commit | fd7a14f8ddeae5fc868a8d452445d708505cc930 (patch) | |
tree | 5bb81c14f246549229687af3f459ec82d5ee14f9 /src/gallium/drivers/freedreno/freedreno_fence.c | |
parent | 885762e18291eb4dc0b449297c3a78f7c036bcde (diff) |
freedreno: fence fix
Don't take current timestamp/fence from current ring, as we might have
already rolled over to new rb.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_fence.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_fence.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_fence.c b/src/gallium/drivers/freedreno/freedreno_fence.c index 04a9feacd58..337359c1a5b 100644 --- a/src/gallium/drivers/freedreno/freedreno_fence.c +++ b/src/gallium/drivers/freedreno/freedreno_fence.c @@ -78,7 +78,8 @@ boolean fd_screen_fence_finish(struct pipe_screen *screen, return true; } -struct pipe_fence_handle * fd_fence_create(struct pipe_context *pctx) +struct pipe_fence_handle * fd_fence_create(struct pipe_context *pctx, + uint32_t timestamp) { struct pipe_fence_handle *fence; struct fd_context *ctx = fd_context(pctx); @@ -91,7 +92,7 @@ struct pipe_fence_handle * fd_fence_create(struct pipe_context *pctx) fence->ctx = ctx; fence->screen = ctx->screen; - fence->timestamp = fd_ringbuffer_timestamp(ctx->ring); + fence->timestamp = timestamp; return fence; } |