util: add a separate file for asahi vulkan drirc

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41731>
This commit is contained in:
Samuel Pitoiset 2026-05-21 16:40:56 +02:00 committed by Marge Bot
parent 46d36e8332
commit 31b7d17da4
3 changed files with 40 additions and 33 deletions

View file

@ -0,0 +1,36 @@
<?xml version="1.0"?>
<driconf>
<device driver="hk">
<engine engine_name_match="DXVK|vkd3d">
<!--
The amount of bug reports we get about Honeykrisp being slow
outweighs the number of games that need custom border emulation.
I'm tired.
-->
<option name="hk_disable_border_emulation" value="true" />
<!--
Needed for FL11_1. While nominally conformant, CTS hits piles
of timeouts (== flakes & fails & other fun times), especially on
min-spec M1. Therefore the feature is hidden. I don't expect native
apps to use this.
-->
<option name="hk_enable_vertex_pipeline_stores_atomics" value="true" />
</engine>
<engine engine_name_match="vkd3d">
<!--
Apple hardware lacks min/max filtering, but this is required for
FL12_0. Fortunately, this is an obscure feature and we support
the rest of FL12_0, so we prefer to fake support and fail D3D
conformance rather than be limited to FL11.
-->
<option name="hk_fake_minmax" value="true" />
<!---
We need this for FL12_0, but we only implement it for vkd3d
because it's not the speediest thing.
-->
<option name="hk_image_view_min_lod" value="true" />
</engine>
</device>
</driconf>

View file

@ -1083,39 +1083,6 @@ TODO: document the other workarounds.
<option name="disable_explicit_sync_heuristic" value="true"/>
</application>
</device>
<device driver="hk">
<engine engine_name_match="DXVK|vkd3d">
<!--
The amount of bug reports we get about Honeykrisp being slow
outweighs the number of games that need custom border emulation.
I'm tired.
-->
<option name="hk_disable_border_emulation" value="true" />
<!--
Needed for FL11_1. While nominally conformant, CTS hits piles
of timeouts (== flakes & fails & other fun times), especially on
min-spec M1. Therefore the feature is hidden. I don't expect native
apps to use this.
-->
<option name="hk_enable_vertex_pipeline_stores_atomics" value="true" />
</engine>
<engine engine_name_match="vkd3d">
<!--
Apple hardware lacks min/max filtering, but this is required for
FL12_0. Fortunately, this is an obscure feature and we support
the rest of FL12_0, so we prefer to fake support and fail D3D
conformance rather than be limited to FL11.
-->
<option name="hk_fake_minmax" value="true" />
<!---
We need this for FL12_0, but we only implement it for vkd3d
because it's not the speediest thing.
-->
<option name="hk_image_view_min_lod" value="true" />
</engine>
</device>
<device driver="panvk">
<engine engine_name_match="ANGLE">
<!--

View file

@ -241,6 +241,10 @@ if with_gallium_asahi
files_drirc += files('00-asahi-defaults.conf')
endif
if with_asahi_vk
files_drirc += files('00-hk-defaults.conf')
endif
if with_gallium_radeonsi
files_drirc += files('00-radeonsi-defaults.conf')
endif