summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_resource.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-01-20 16:44:53 -0800
committerEric Anholt <[email protected]>2018-02-01 11:02:29 -0800
commitdea902c93352b875178fef9b8a65fd53e52696b3 (patch)
tree632217f54b62404c089db98444958ca23b401e29 /src/gallium/drivers/vc5/vc5_resource.h
parent7239b3edbe754c6e85a6c3774d484e42a6253058 (diff)
broadcom/vc5: Simplify separate stencil surface setup.
If we just make another gallium surface for the separate stencil, it's a lot easier to keep track of which set of fields we're using in RCL setup. This also incidentally fixes a little bug in setting up the surface's padded height for separate stencil when the UIF-ness changes at different levels of Z versus stencil.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_resource.h')
-rw-r--r--src/gallium/drivers/vc5/vc5_resource.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/vc5/vc5_resource.h b/src/gallium/drivers/vc5/vc5_resource.h
index 688f03d53f5..631a7b8fba6 100644
--- a/src/gallium/drivers/vc5/vc5_resource.h
+++ b/src/gallium/drivers/vc5/vc5_resource.h
@@ -80,9 +80,7 @@ struct vc5_resource_slice {
struct vc5_surface {
struct pipe_surface base;
uint32_t offset;
- uint32_t separate_stencil_offset;
enum vc5_tiling_mode tiling;
- enum vc5_tiling_mode separate_stencil_tiling;
/**
* Output image format for TILE_RENDERING_MODE_CONFIGURATION
*/
@@ -101,7 +99,11 @@ struct vc5_surface {
uint8_t internal_bpp;
uint32_t padded_height_of_output_image_in_uif_blocks;
- uint32_t separate_stencil_padded_height_of_output_image_in_uif_blocks;
+
+ /* If the resource being referenced is separate stencil, then this is
+ * the surface to use when reading/writing stencil.
+ */
+ struct pipe_surface *separate_stencil;
};
struct vc5_resource {