Mesa (master): gallium/st: Add Gallium hud to swrast drivers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 21 07:04:18 UTC 2019
Module: Mesa
Branch: master
Commit: ef4429d9c5cfa33ca8d468182e1085f655609341
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef4429d9c5cfa33ca8d468182e1085f655609341
Author: Gert Wollny <gert.wollny at collabora.com>
Date: Thu Jun 20 15:38:30 2019 +0200
gallium/st: Add Gallium hud to swrast drivers
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Reviewed-by: Dave Airlie <airlied at redhat.com>
---
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 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);
More information about the mesa-commit
mailing list