v3dv: GFX-1461 does not affect V3D 7.x

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
This commit is contained in:
Iago Toral Quiroga 2021-09-28 08:31:04 +02:00 committed by Marge Bot
parent 84ca72ace2
commit f7b16f91e1

View file

@ -236,11 +236,13 @@ v3dv_CreateRenderPass2(VkDevice _device,
/* GFXH-1461: if depth is cleared but stencil is loaded (or vice versa),
* the clear might get lost. If a subpass has this then we can't emit
* the clear using the TLB and we have to do it as a draw call.
* the clear using the TLB and we have to do it as a draw call. This
* issue is fixed since V3D 4.3.18.
*
* FIXME: separate stencil.
*/
if (subpass->ds_attachment.attachment != VK_ATTACHMENT_UNUSED) {
if (device->devinfo.ver == 42 &&
subpass->ds_attachment.attachment != VK_ATTACHMENT_UNUSED) {
struct v3dv_render_pass_attachment *att =
&pass->attachments[subpass->ds_attachment.attachment];
if (att->desc.format == VK_FORMAT_D24_UNORM_S8_UINT) {