From bcf4c8893c53b13df64834c462ce5452484faacc Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 3 Nov 2025 12:42:42 -0800 Subject: [PATCH] freedreno/registers: Fix GRAS_LRZ_CNTL definition Two fields moved to GRAS_LRZ_CNTL2 on a7xx+. Signed-off-by: Rob Clark Part-of: --- src/freedreno/registers/adreno/a6xx.xml | 8 +++++--- src/gallium/drivers/freedreno/a6xx/fd6_emit.cc | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/freedreno/registers/adreno/a6xx.xml b/src/freedreno/registers/adreno/a6xx.xml index e25410c6da1..8c3ae7f90fd 100644 --- a/src/freedreno/registers/adreno/a6xx.xml +++ b/src/freedreno/registers/adreno/a6xx.xml @@ -1927,7 +1927,6 @@ by a particular renderpass/blit. - 0.0 if GREATER - 1.0 if LESS - @@ -1941,11 +1940,14 @@ by a particular renderpass/blit. Disable LRZ based on previous direction and the current one. If DIR_WRITE is not enabled - there is no write to direction buffer. - - + + + + + diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_emit.cc b/src/gallium/drivers/freedreno/a6xx/fd6_emit.cc index cf360036462..33f1c25ac9c 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_emit.cc +++ b/src/gallium/drivers/freedreno/a6xx/fd6_emit.cc @@ -232,9 +232,9 @@ build_lrz(struct fd6_emit *emit) assert_dt .enable = lrz.enable, .lrz_write = lrz.write, .greater = lrz.direction == FD_LRZ_GREATER, - .fc_enable = false, /* a6xx only */ .z_write_enable = lrz.test, .z_bounds_enable = lrz.z_bounds_enable, + .fc_enable = false, /* a6xx only */ .disable_on_wrong_dir = false, /* a6xx only */ )) .add(A6XX_RB_LRZ_CNTL(.enable = lrz.enable, ))