diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2021-05-31 20:08:37 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-06-01 01:31:02 +0000 |
commit | 6899f002fa767b13cdf7dc3918da979ab9071db3 (patch) | |
tree | 054dc1523b3180aa3ea3f019f9e1649f513c833a | |
parent | 15efc05019523a82886786e6e8fed3ae24e2a8fa (diff) | |
download | mesa-6899f002fa767b13cdf7dc3918da979ab9071db3.tar.gz mesa-6899f002fa767b13cdf7dc3918da979ab9071db3.tar.bz2 mesa-6899f002fa767b13cdf7dc3918da979ab9071db3.zip |
asahi: Add mipmapping state to the XML
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
-rw-r--r-- | src/asahi/lib/cmdbuf.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/asahi/lib/cmdbuf.xml b/src/asahi/lib/cmdbuf.xml index 38fc74a0e39..c28f3430348 100644 --- a/src/asahi/lib/cmdbuf.xml +++ b/src/asahi/lib/cmdbuf.xml @@ -179,7 +179,12 @@ <field name="Swizzle A" size="3" start="25" type="Channel" default="A"/> <field name="Width" size="14" start="28" type="uint" modifier="minus(1)"/> <field name="Height" size="14" start="42" type="uint" modifier="minus(1)"/> + <field name="Levels" size="6" start="60" type="uint" modifier="minus(1)"/> <field name="Unk 1" size="36" start="66" type="hex" modifier="shr(4)"/> + <!-- Unknown bit set by Metal when mipmapping. Might relate to a mechanism + to switch tile size (or disable tiling altogether?) at small mip levels to + reduce wasted memory due to padding. Causing test flakiness when set. --> + <field name="Unk mipmapped" size="1" start="102" type="bool"/> <field name="Compression" size="2" start="106" type="hex"/> <!-- 0 for 64x64 tiling --> <field name="sRGB" size="1" start="108" type="bool"/> <field name="Unk 2" size="1" start="109" type="bool"/> |