gallium/st: Add Gallium hud to swrast drivers
authorGert Wollny <gert.wollny@collabora.com>
Thu, 20 Jun 2019 13:38:30 +0000 (15:38 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Fri, 21 Jun 2019 06:54:57 +0000 (08:54 +0200)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/state_trackers/dri/drisw.c

index 927ac39ce65dbcbee24f690b7e58478d4bd233a1..cf1e662f00c2ecb02c7a9ee810894a9d8fbba289 100644 (file)
@@ -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);