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:

committed by
Marge Bot

parent
2c23bb49ef
commit
5d58d5caaf
@@ -256,6 +256,16 @@ struct agx_resource {
|
|||||||
|
|
||||||
/* Bytes from one miptree to the next */
|
/* Bytes from one miptree to the next */
|
||||||
unsigned array_stride;
|
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 *
|
static inline struct agx_resource *
|
||||||
|
Reference in New Issue
Block a user