mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 13:40:16 +01:00
nvk: Disable sampleLocationsSampleCounts for 1x MSAA
Suggested-by: Mel Henning <mhenning@darkrefraction.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14108
Fixes: a34edc7500 ("nvk: Fill out sample locations on Maxwell B+")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38018>
This commit is contained in:
parent
d1793c7a59
commit
aa0f404f7b
1 changed files with 7 additions and 2 deletions
|
|
@ -1145,8 +1145,13 @@ nvk_get_device_properties(const struct nvk_instance *instance,
|
||||||
.robustStorageBufferAccessSizeAlignment = NVK_SSBO_BOUNDS_CHECK_ALIGNMENT,
|
.robustStorageBufferAccessSizeAlignment = NVK_SSBO_BOUNDS_CHECK_ALIGNMENT,
|
||||||
.robustUniformBufferAccessSizeAlignment = nvk_min_cbuf_alignment(info),
|
.robustUniformBufferAccessSizeAlignment = nvk_min_cbuf_alignment(info),
|
||||||
|
|
||||||
/* VK_EXT_sample_locations */
|
/* VK_EXT_sample_locations
|
||||||
.sampleLocationSampleCounts = sample_counts,
|
*
|
||||||
|
* There's a weird HW issue with per-sample interpolation for 1x. It
|
||||||
|
* always interpolates at (0.5, 0.5) so we just disable custom sample
|
||||||
|
* locations for 1x.
|
||||||
|
*/
|
||||||
|
.sampleLocationSampleCounts = sample_counts & ~VK_SAMPLE_COUNT_1_BIT,
|
||||||
.maxSampleLocationGridSize = (VkExtent2D){ 1, 1 },
|
.maxSampleLocationGridSize = (VkExtent2D){ 1, 1 },
|
||||||
.sampleLocationCoordinateRange[0] = 0.0f,
|
.sampleLocationCoordinateRange[0] = 0.0f,
|
||||||
.sampleLocationCoordinateRange[1] = 0.9375f,
|
.sampleLocationCoordinateRange[1] = 0.9375f,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue