diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2024-08-29 17:10:11 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-08-30 16:30:40 +0000 |
commit | 9d981a4c5b4f3196305401fa09a5b9bfb1b79030 (patch) | |
tree | 259d2b81c00a4a6d736d3709d0f71bf1d164233d | |
parent | 05f6e9f11e0ae2d7df3d9819a83f3306ce4e85b9 (diff) |
panfrost: properly lower DrawID sysval on v9 GPUs
We only use special DrawID register on v10 GPUs so we still need to
lower to sysval on any earlier generation.
Fixes commit f390835074bdf162a63deb0311d1a6de527f9f89
Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30933>
-rw-r--r-- | src/gallium/drivers/panfrost/pan_nir_lower_sysvals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_nir_lower_sysvals.c b/src/gallium/drivers/panfrost/pan_nir_lower_sysvals.c index 72262d70b56..a2bc499d67f 100644 --- a/src/gallium/drivers/panfrost/pan_nir_lower_sysvals.c +++ b/src/gallium/drivers/panfrost/pan_nir_lower_sysvals.c @@ -90,7 +90,7 @@ sysval_for_intrinsic(nir_intrinsic_instr *intr, unsigned *offset) *offset = 8; return PAN_SYSVAL_VERTEX_INSTANCE_OFFSETS; -#if PAN_ARCH <= 7 +#if PAN_ARCH <= 9 case nir_intrinsic_load_draw_id: return PAN_SYSVAL_DRAWID; #endif |