[Mesa-dev] [PATCH 4/4] st/dri: implement new driver hook flush_with_flags
Brian Paul
brian.e.paul at gmail.com
Sun Nov 25 09:05:55 PST 2012
On Fri, Nov 23, 2012 at 12:35 PM, Marek Olšák <maraeo at gmail.com> wrote:
> ---
> .../state_trackers/dri/common/dri_drawable.c | 105 +++++++++++++-------
> .../state_trackers/dri/common/dri_drawable.h | 6 ++
> src/gallium/state_trackers/dri/common/dri_screen.h | 1 +
> src/gallium/state_trackers/dri/drm/dri2.c | 28 ++----
> 4 files changed, 84 insertions(+), 56 deletions(-)
>
> diff --git a/src/gallium/state_trackers/dri/common/dri_drawable.c b/src/gallium/state_trackers/dri/common/dri_drawable.c
> index 5a261dd..deef003 100644
> --- a/src/gallium/state_trackers/dri/common/dri_drawable.c
> +++ b/src/gallium/state_trackers/dri/common/dri_drawable.c
> @@ -350,46 +350,83 @@ swap_fences_unref(struct dri_drawable *draw)
> }
> }
>
> +/**
> + * DRI2 flush extension, the flush_with_flags function.
> + */
Could you update the comment to say that flags is a bitmask of
__DRI2_FLUSH_x flags?
> +void
> +dri_flush(__DRIcontext *cPriv,
> + __DRIdrawable *dPriv,
> + unsigned flags,
> + enum __DRI2throttleReason reason)
> +{
> + struct dri_context *ctx = dri_context(cPriv);
> + struct dri_drawable *drawable = dri_drawable(dPriv);
> + unsigned flush_flags;
-Brian
More information about the mesa-dev
mailing list