diff options
author | Mykhailo Skorokhodov <mykhailo.skorokhodov@globallogic.com> | 2022-06-19 23:56:12 +0300 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-08-05 18:46:29 +0000 |
commit | cbc81bdbf5982e98e06d56f14ef407a90c3291a3 (patch) | |
tree | 9d5626add1c934aa670e7453e418482ddaa4e471 | |
parent | b7df7f8145d9e07ed3a4ba86c037c34fe962a394 (diff) |
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@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 50b21fb6e41c3d7f91c96c8c8d8e88ee434b7d78)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17160>
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 6dc76362709..9eec762d9d9 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -2298,7 +2298,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++) { |