diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2019-11-27 11:22:11 +0100 |
---|---|---|
committer | Pierre-Eric Pelloux-Prayer <[email protected]> | 2019-12-10 09:25:28 +0100 |
commit | cc0d0afe3b06e628fdd5576da07c50a15f859e98 (patch) | |
tree | 9393076330ae786fd17e704734311851e209e97b /src/gallium/state_trackers/dri/dri_context.c | |
parent | f5c1cb23835d79faafc1819069c28b82cfcb5fc2 (diff) |
st/mesa: add a notify_before_flush callback param to flush
The new callback is called right before the flush is done to allow
users of st->flush to do some work after all the previous work has
been flushed.
This will be used by dri_flush in the next commit.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri/dri_context.c')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri_context.c b/src/gallium/state_trackers/dri/dri_context.c index af9e3325f98..6efca4f8f80 100644 --- a/src/gallium/state_trackers/dri/dri_context.c +++ b/src/gallium/state_trackers/dri/dri_context.c @@ -241,7 +241,7 @@ dri_destroy_context(__DRIcontext * cPriv) * to avoid having to add code elsewhere to cope with flushing a * partially destroyed context. */ - ctx->st->flush(ctx->st, 0, NULL); + ctx->st->flush(ctx->st, 0, NULL, NULL, NULL); ctx->st->destroy(ctx->st); free(ctx); } |