Mesa (main): radv: update the check to determine if dynamic sample location is needed
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 13 17:09:28 UTC 2022
Module: Mesa
Branch: main
Commit: e8a0f514d413499cfab7b29c5d82662199c807d3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8a0f514d413499cfab7b29c5d82662199c807d3
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Thu Jun 2 10:43:45 2022 +0200
radv: update the check to determine if dynamic sample location 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 | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 380ed452eec..a06fda726d8 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -1393,9 +1393,7 @@ radv_pipeline_needed_dynamic_state(const struct radv_graphics_pipeline *pipeline
if (!info->dr.count)
states &= ~RADV_DYNAMIC_DISCARD_RECTANGLE;
- if (!pCreateInfo->pMultisampleState ||
- !vk_find_struct_const(pCreateInfo->pMultisampleState->pNext,
- PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT))
+ if (!info->ms.sample_locs_enable)
states &= ~RADV_DYNAMIC_SAMPLE_LOCATIONS;
if (!info->rs.stippled_line_enable)
More information about the mesa-commit
mailing list