panfrost: Handle fixed-point packing in GenXML
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 28 Dec 2022 20:43:48 +0000 (15:43 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sat, 11 Mar 2023 06:30:02 +0000 (06:30 +0000)
commit35985be275f3dd9b3692d40e42dbc936bef28033
treebf8fc45f7c7e22954f4a99f11af022882e4043ae
parent17c55e0d12eaa7ee00330a321d7dd446f1016603
panfrost: Handle fixed-point packing in GenXML

Minimum/maximum LOD and LOD bias are unsigned and signed fixed point formats
respectively. They are not unsigned integers. Introduce fixed-point types into
our GenXML and use them in the XML, rather than packing in sidebands. This makes
the XML more correct and fixes pretty-printing of texture and sampler
descriptors.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20445>
12 files changed:
src/gallium/drivers/panfrost/pan_cmdstream.c
src/panfrost/include/panfrost-job.h
src/panfrost/lib/genxml/gen_pack.py
src/panfrost/lib/genxml/v10.xml
src/panfrost/lib/genxml/v4.xml
src/panfrost/lib/genxml/v5.xml
src/panfrost/lib/genxml/v6.xml
src/panfrost/lib/genxml/v7.xml
src/panfrost/lib/genxml/v9.xml
src/panfrost/lib/pan_texture.c
src/panfrost/vulkan/panvk_vX_cs.c
src/panfrost/vulkan/panvk_vX_image.c