tu: Fix a6xx lineWidthGranularity

Fixes dEQP-VK.info.device_properties.

Fixes: 48da361eb7 ("tu: wideLines support for a7xx.")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29088>
(cherry picked from commit a3e5c15664)
This commit is contained in:
Rob Clark 2024-05-06 13:01:45 -07:00 committed by Eric Engestrom
parent 25aa178802
commit 8ec4314f5e
2 changed files with 2 additions and 2 deletions

View file

@ -1024,7 +1024,7 @@
"description": "tu: Fix a6xx lineWidthGranularity",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "48da361eb7b355f6ce79983d661dd0422e278967",
"notes": null

View file

@ -910,7 +910,7 @@ tu_get_properties(struct tu_physical_device *pdevice,
props->lineWidthRange[1] = pdevice->info->a6xx.line_width_max;
props->pointSizeGranularity = 0.0625;
props->lineWidthGranularity =
pdevice->info->a6xx.line_width_max == 1.0 ? 1.0 : 0.5;
pdevice->info->a6xx.line_width_max == 1.0 ? 0.0 : 0.5;
props->strictLines = true;
props->standardSampleLocations = true;
props->optimalBufferCopyOffsetAlignment = 128;