From ef4429d9c5cfa33ca8d468182e1085f655609341 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 20 Jun 2019 15:38:30 +0200 Subject: [PATCH] gallium/st: Add Gallium hud to swrast drivers Signed-off-by: Gert Wollny Reviewed-by: Dave Airlie --- src/gallium/state_trackers/dri/drisw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/dri/drisw.c b/src/gallium/state_trackers/dri/drisw.c index 927ac39..cf1e662 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); -- 2.7.4