From: Rob Clark Date: Sat, 15 Feb 2020 23:14:24 +0000 (-0800) Subject: freedreno/a6xx: few register updates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=838ed2885df0f6fbc7dbd3c233974faf7e084cb9;p=mesa.git freedreno/a6xx: few register updates Nothing used by mesa, but crashdec tool uses a few of these. And since the practice is these days to sync mesa->envytools, adding these on the mesa side first. Signed-off-by: Rob Clark Part-of: --- diff --git a/src/freedreno/registers/a6xx.xml b/src/freedreno/registers/a6xx.xml index c03b3e6f133..23373b94bdd 100644 --- a/src/freedreno/registers/a6xx.xml +++ b/src/freedreno/registers/a6xx.xml @@ -921,14 +921,47 @@ to upconvert to 32b float internally? + + + - - + + + + b0..7 seems to contain the size of buffered by not yet processed + RB level cmdstream.. it's possible that it is a low threshold + and b8..15 is a high threshold? + + b16..23 identifies where IB1 data starts (and RB data ends?) + + b24..31 identifies where IB2 data starts (and IB1 data ends) + + + + + + + + + low bits identify where CP_SET_DRAW_STATE stateobj + processing starts (and IB2 data ends). I'm guessing + b8 is part of this since (from downstream kgsl): + + /* ROQ sizes are twice as big on a640/a680 than on a630 */ + if (adreno_is_a640(adreno_dev) || adreno_is_a680(adreno_dev)) { + kgsl_regwrite(device, A6XX_CP_ROQ_THRESHOLDS_2, 0x02000140); + kgsl_regwrite(device, A6XX_CP_ROQ_THRESHOLDS_1, 0x8040362C); + } ... + + + + + @@ -985,6 +1018,26 @@ to upconvert to 32b float internally? + + + + + + + + + + + number of remaining dwords incl current dword being consumed? + + + + number of remaining dwords incl current dword being consumed? + + @@ -2591,6 +2644,16 @@ to upconvert to 32b float internally? + + + + + + + + + + diff --git a/src/freedreno/registers/adreno_pm4.xml b/src/freedreno/registers/adreno_pm4.xml index 09ecd0c3349..d5bff743b3c 100644 --- a/src/freedreno/registers/adreno_pm4.xml +++ b/src/freedreno/registers/adreno_pm4.xml @@ -834,7 +834,7 @@ opcode: CP_LOAD_STATE4 (30) (4 dwords) - +