Mesa (main): anv: Use sampleLocationsEnable for sample locations
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 20 12:35:03 UTC 2022
Module: Mesa
Branch: main
Commit: 50b21fb6e41c3d7f91c96c8c8d8e88ee434b7d78
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=50b21fb6e41c3d7f91c96c8c8d8e88ee434b7d78
Author: Mykhailo Skorokhodov <mykhailo.skorokhodov at globallogic.com>
Date: Sun Jun 19 23:56:12 2022 +0300
anv: Use sampleLocationsEnable for sample locations
The spec says: "sampleLocationsEnable controls whether custom sample
locations are used. If sampleLocationsEnable is VK_FALSE, the default
sample locations are used and the values specified in
sampleLocationsInfo are ignored."
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6675
Signed-off-by: Mykhailo Skorokhodov <mykhailo.skorokhodov at globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17134>
---
src/intel/vulkan/anv_pipeline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 2f15034ebe8..9f2c78284db 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -2292,7 +2292,7 @@ copy_non_dynamic_state(struct anv_graphics_pipeline *pipeline,
default: unreachable("invalid sample count");
}
- if (sl_info) {
+ if (sl_info && sl_info->sampleLocationsEnable) {
const VkSampleLocationEXT *positions =
sl_info->sampleLocationsInfo.pSampleLocations;
for (uint32_t i = 0; i < samples; i++) {
More information about the mesa-commit
mailing list