summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2019-06-20 15:38:30 +0200
committerGert Wollny <[email protected]>2019-06-21 08:54:57 +0200
commitef4429d9c5cfa33ca8d468182e1085f655609341 (patch)
treed5ede8c6126935d97e4d598a1fdb0c0889f68420 /src
parent4d8f82946b22396c90ca102a44de7bdebd8838d6 (diff)
gallium/st: Add Gallium hud to swrast drivers
Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/dri/drisw.c3
1 files changed, 3 insertions, 0 deletions
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);