asahi: Add separate_stencil, internal_format fields

Currently unused, but will be set when u_transfer_helper is integrated
for emulating packed depth/stencil.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15482>
This commit is contained in:
Alyssa Rosenzweig 2022-02-21 19:28:43 -05:00 committed by Marge Bot
parent 2c23bb49ef
commit 5d58d5caaf
1 changed files with 10 additions and 0 deletions

View File

@ -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 *