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@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16151>
This commit is contained in:
Mike Blumenkrantz 2022-04-25 15:41:30 -04:00 committed by Marge Bot
parent aeeb0b4deb
commit 25840a31eb

View file

@ -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;