v3d: just don't fill up early-z fields for CFG_BITS for v71
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 21 Oct 2021 11:09:03 +0000 (13:09 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 Oct 2023 22:37:43 +0000 (22:37 +0000)
v71 doesn't include early_z_enable/early_z_updates_enable. They are
configured with packet 121.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>

src/gallium/drivers/v3d/v3dx_emit.c

index 5af3d03..de05ae2 100644 (file)
@@ -515,20 +515,19 @@ v3dX(emit_state)(struct pipe_context *pctx)
 #if V3D_VERSION <= 42
                         config.early_z_updates_enable =
                                 (job->ez_state != V3D_EZ_DISABLED);
+#endif
                         if (v3d->zsa->base.depth_enabled) {
                                 config.z_updates_enable =
                                         v3d->zsa->base.depth_writemask;
+#if V3D_VERSION <= 42
                                 config.early_z_enable =
                                         config.early_z_updates_enable;
+#endif
                                 config.depth_test_function =
                                         v3d->zsa->base.depth_func;
                         } else {
                                 config.depth_test_function = PIPE_FUNC_ALWAYS;
                         }
-#endif
-#if V3D_VERSION >= 71
-                        unreachable("HW generation 71 not supported yet.");
-#endif
 
                         config.stencil_enable =
                                 v3d->zsa->base.stencil[0].enabled;