mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 00:00:25 +01:00
anv: advertise rectangularLines only for Gen10+
We use the non-strict algorithm (with parallelograms) prior to Gen10 for wide lines. We can not advertise rectangularLines. Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Fixes:f6e7de41d7("anv: Implement VK_EXT_line_rasterization") Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15432> (cherry picked from commitb2b810ebff)
This commit is contained in:
parent
07a7306d81
commit
a068671262
2 changed files with 6 additions and 2 deletions
|
|
@ -2272,7 +2272,7 @@
|
|||
"description": "anv: advertise rectangularLines only for Gen10+",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "f6e7de41d7b15185b746b79f7ef601c9405adc95"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1596,7 +1596,11 @@ void anv_GetPhysicalDeviceFeatures2(
|
|||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT: {
|
||||
VkPhysicalDeviceLineRasterizationFeaturesEXT *features =
|
||||
(VkPhysicalDeviceLineRasterizationFeaturesEXT *)ext;
|
||||
features->rectangularLines = true;
|
||||
/* Rectangular lines must use the strict algorithm, which is not
|
||||
* supported for wide lines prior to ICL. See rasterization_mode for
|
||||
* details and how the HW states are programmed.
|
||||
*/
|
||||
features->rectangularLines = pdevice->info.ver >= 10;
|
||||
features->bresenhamLines = true;
|
||||
/* Support for Smooth lines with MSAA was removed on gfx11. From the
|
||||
* BSpec section "Multisample ModesState" table for "AA Line Support
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue