st/mesa: add a notify_before_flush callback param to flush
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 27 Nov 2019 10:22:11 +0000 (11:22 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 10 Dec 2019 08:25:28 +0000 (09:25 +0100)
commitcc0d0afe3b06e628fdd5576da07c50a15f859e98
tree9393076330ae786fd17e704734311851e209e97b
parentf5c1cb23835d79faafc1819069c28b82cfcb5fc2
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 <marek.olsak@amd.com>
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/dri/dri2.c
src/gallium/state_trackers/dri/dri_context.c
src/gallium/state_trackers/dri/dri_drawable.c
src/gallium/state_trackers/dri/dri_helpers.c
src/gallium/state_trackers/dri/drisw.c
src/gallium/state_trackers/glx/xlib/xm_api.c
src/gallium/state_trackers/wgl/stw_context.c
src/gallium/state_trackers/wgl/stw_framebuffer.c
src/gallium/targets/haiku-softpipe/GalliumContext.cpp
src/mesa/state_tracker/st_manager.c