Mesa (main): kopper: add DISPLAY_TARGET bind for depth buffer
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Apr 26 19:21:00 UTC 2022
Module: Mesa
Branch: main
Commit: 25840a31ebe13bdad26ed2fcf3e697c6091643ec
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=25840a31ebe13bdad26ed2fcf3e697c6091643ec
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/16151>
---
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 6fa8e70c457..bc4bbaecc97 100644
--- a/src/gallium/frontends/dri/kopper.c
+++ b/src/gallium/frontends/dri/kopper.c
@@ -299,6 +299,7 @@ kopper_allocate_textures(struct dri_context *ctx,
/* 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