Mesa (staging/22.1): kopper: add DISPLAY_TARGET bind for depth buffer

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 27 04:31:24 UTC 2022


Module: Mesa
Branch: staging/22.1
Commit: c074592f3d07cf7e224f716f29434be801b558f4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c074592f3d07cf7e224f716f29434be801b558f4

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Mon Apr 25 15:41:30 2022 -0400

kopper: add DISPLAY_TARGET bind for depth buffer

this doesn't affect functionality and is only used for validation
in the driver

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16179>

---

 src/gallium/frontends/dri/kopper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/frontends/dri/kopper.c b/src/gallium/frontends/dri/kopper.c
index 1e2b5962e70..2038f13d418 100644
--- a/src/gallium/frontends/dri/kopper.c
+++ b/src/gallium/frontends/dri/kopper.c
@@ -590,6 +590,7 @@ XXX do this once swapinterval is hooked up
       /* the texture already exists or not requested */
       if (!drawable->textures[statts[i]]) {
          if (statts[i] == ST_ATTACHMENT_BACK_LEFT ||
+             statts[i] == ST_ATTACHMENT_DEPTH_STENCIL ||
              (statts[i] == ST_ATTACHMENT_FRONT_LEFT && front_only))
             bind |= PIPE_BIND_DISPLAY_TARGET;
 



More information about the mesa-commit mailing list