diff --git a/src/gallium/drivers/asahi/agx_state.h b/src/gallium/drivers/asahi/agx_state.h index 558c7966d90..cc0a187250a 100644 --- a/src/gallium/drivers/asahi/agx_state.h +++ b/src/gallium/drivers/asahi/agx_state.h @@ -256,6 +256,16 @@ struct agx_resource { /* Bytes from one miptree to the next */ unsigned array_stride; + + /* Metal does not support packed depth/stencil formats; presumably AGX does + * not either. Instead, we create separate depth and stencil resources, + * managed by u_transfer_helper. We provide the illusion of packed + * resources. + */ + struct agx_resource *separate_stencil; + + /* Internal format, since many depth/stencil formats are emulated. */ + enum pipe_format internal_format; }; static inline struct agx_resource *