Mesa (main): radv: update the check to determine if dynamic discard rectangle is needed
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 13 17:09:28 UTC 2022
Module: Mesa
Branch: main
Commit: 15586cdaf8d510278a5b0128415415331e504c61
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15586cdaf8d510278a5b0128415415331e504c61
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Thu Jun 2 10:43:05 2022 +0200
radv: update the check to determine if dynamic discard rectangle is needed
Use radv_graphics_pipeline_info instead of pCreateInfo.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16958>
---
src/amd/vulkan/radv_pipeline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index a129cc3493a..380ed452eec 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -1390,7 +1390,7 @@ radv_pipeline_needed_dynamic_state(const struct radv_graphics_pipeline *pipeline
states &= ~(RADV_DYNAMIC_STENCIL_COMPARE_MASK | RADV_DYNAMIC_STENCIL_WRITE_MASK |
RADV_DYNAMIC_STENCIL_REFERENCE | RADV_DYNAMIC_STENCIL_OP);
- if (!vk_find_struct_const(pCreateInfo->pNext, PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT))
+ if (!info->dr.count)
states &= ~RADV_DYNAMIC_DISCARD_RECTANGLE;
if (!pCreateInfo->pMultisampleState ||
More information about the mesa-commit
mailing list