freedreno: Fix field size of A6XX_TEX_CONST[3].ARRAY_PITCH
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Fri, 13 Oct 2023 15:25:34 +0000 (17:25 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sun, 15 Oct 2023 13:58:50 +0000 (13:58 +0000)
We silently dropped higher bits of layer size, which was not
caught by CTS because it requires image to be big.

Fixes rendering in shadowmappingcascade Vulkan demo.

Cc: mesa-stable
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25717>

src/freedreno/registers/adreno/a6xx.xml

index 4c55115..e167e4f 100644 (file)
@@ -4471,7 +4471,7 @@ to upconvert to 32b float internally?
                layer size at the point that it stops being reduced moving to
                higher (smaller) mipmap levels
                 -->
-               <bitfield name="ARRAY_PITCH" low="0" high="13" shr="12" type="uint"/>
+               <bitfield name="ARRAY_PITCH" low="0" high="22" shr="12" type="uint"/>
                <bitfield name="MIN_LAYERSZ" low="23" high="26" shr="12"/>
                <!--
                by default levels with w < 16 are linear