From: Gert Wollny Date: Thu, 20 Jun 2019 13:38:30 +0000 (+0200) Subject: gallium/st: Add Gallium hud to swrast drivers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef4429d9c5cfa33ca8d468182e1085f655609341;p=mesa.git gallium/st: Add Gallium hud to swrast drivers Signed-off-by: Gert Wollny Reviewed-by: Dave Airlie --- diff --git a/src/gallium/state_trackers/dri/drisw.c b/src/gallium/state_trackers/dri/drisw.c index 927ac39ce65..cf1e662f00c 100644 --- a/src/gallium/state_trackers/dri/drisw.c +++ b/src/gallium/state_trackers/dri/drisw.c @@ -246,6 +246,9 @@ drisw_swap_buffers(__DRIdrawable *dPriv) if (ctx->pp) pp_run(ctx->pp, ptex, ptex, drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL]); + if (ctx->hud) + hud_run(ctx->hud, ctx->st->cso_context, ptex); + ctx->st->flush(ctx->st, ST_FLUSH_FRONT, NULL); drisw_copy_to_front(dPriv, ptex);