freedreno: document GRAS_UNKNOWN_810A
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Thu, 19 May 2022 17:32:57 +0000 (20:32 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Jun 2022 17:23:16 +0000 (17:23 +0000)
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16251>

src/freedreno/registers/adreno/a6xx.xml
src/freedreno/registers/adreno/adreno_pm4.xml

index 5cf4495..8771fad 100644 (file)
@@ -1857,10 +1857,10 @@ to upconvert to 32b float internally?
        <reg32 offset="0x8109" name="GRAS_SAMPLE_CNTL">
                <bitfield name="PER_SAMP_MODE" pos="0" type="boolean"/>
        </reg32>
-       <reg32 offset="0x810a" name="GRAS_UNKNOWN_810A">
-               <bitfield name="UNK0" low="0" high="10" type="uint"/>
-               <bitfield name="UNK16" low="16" high="26" type="uint"/>
-               <bitfield name="UNK28" low="28" high="31" type="uint"/>
+       <reg32 offset="0x810a" name="GRAS_LRZ_DEPTH_VIEW">
+               <bitfield name="BASE_LAYER" low="0" high="10" type="uint"/>
+               <bitfield name="LAYER_COUNT" low="16" high="26" type="uint"/>
+               <bitfield name="BASE_MIP_LEVEL" low="28" high="31" type="uint"/>
        </reg32>
 
        <!-- 0x810b-0x810f invalid -->
index df27411..a29094e 100644 (file)
@@ -1777,12 +1777,12 @@ opcode: CP_LOAD_STATE4 (30) (4 dwords)
                <value name="UNK_EVENT_WRITE" value="0x4"/>
                <doc>
                        Tracks GRAS_LRZ_CNTL::GREATER, GRAS_LRZ_CNTL::DIR, and
-                       GRAS_UNKNOWN_810A with previous values, and if one of
+                       GRAS_LRZ_DEPTH_VIEW with previous values, and if one of
                        the following is true:
                        - GRAS_LRZ_CNTL::GREATER has changed
                        - GRAS_LRZ_CNTL::DIR has changed, the old value is not
                          CUR_DIR_GE, and the new value is not CUR_DIR_DISABLED
-                       - GRAS_UNKNOWN_810A has changed
+                       - GRAS_LRZ_DEPTH_VIEW has changed
                        then it does a LRZ_FLUSH with GRAS_LRZ_CNTL::ENABLE
                        forced to 1.
                        Only exists in a650_sqe.fw.