mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
tu: Simplify VK_EXT_sample_locations SampleCounts assignment
Use the existing sample_counts variable. Signed-off-by: Valentine Burley <valentine.burley@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30730>
This commit is contained in:
parent
98d52cf292
commit
419885e280
1 changed files with 2 additions and 5 deletions
|
|
@ -1025,11 +1025,8 @@ tu_get_properties(struct tu_physical_device *pdevice,
|
|||
props->transformFeedbackDraw = true;
|
||||
|
||||
/* VK_EXT_sample_locations */
|
||||
props->sampleLocationSampleCounts = 0;
|
||||
if (pdevice->vk.supported_extensions.EXT_sample_locations) {
|
||||
props->sampleLocationSampleCounts =
|
||||
VK_SAMPLE_COUNT_1_BIT | VK_SAMPLE_COUNT_2_BIT | VK_SAMPLE_COUNT_4_BIT;
|
||||
}
|
||||
props->sampleLocationSampleCounts =
|
||||
pdevice->vk.supported_extensions.EXT_sample_locations ? sample_counts : 0;
|
||||
props->maxSampleLocationGridSize = (VkExtent2D) { 1 , 1 };
|
||||
props->sampleLocationCoordinateRange[0] = SAMPLE_LOCATION_MIN;
|
||||
props->sampleLocationCoordinateRange[1] = SAMPLE_LOCATION_MAX;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue