diff options
author | Rob Clark <[email protected]> | 2015-07-08 14:51:10 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-07-10 11:57:30 -0400 |
commit | 749dced4b363963b2230a18b0776fa92653116b8 (patch) | |
tree | cb8e17b1819dc459e1af6f9b346cfa66a047fbea /src/gallium/drivers/ilo/ilo_context.c | |
parent | 7e0a26defe65dad7ffc8e7a95b5577be51feb2bc (diff) |
ilo: unref old fence
Some, but not all, state trackers will explicitly unref (and set to
NULL) the previous *fence before calling pipe->flush(). So driver
should use fence_ref() which will unref the old fence if not NULL.
Signed-off-by: Rob Clark <[email protected]>
Acked-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.c b/src/gallium/drivers/ilo/ilo_context.c index 3d5c7b636a8..b9a16aab81d 100644 --- a/src/gallium/drivers/ilo/ilo_context.c +++ b/src/gallium/drivers/ilo/ilo_context.c @@ -62,6 +62,8 @@ ilo_flush(struct pipe_context *pipe, (flags & PIPE_FLUSH_END_OF_FRAME) ? "frame end" : "user request"); if (f) { + struct pipe_screen *screen = pipe->screen; + screen->fence_reference(screen, f, NULL); *f = ilo_screen_fence_create(pipe->screen, ilo->cp->last_submitted_bo); } } |