diff options
author | Eric Anholt <[email protected]> | 2017-12-05 18:58:41 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-12-19 13:40:30 -0800 |
commit | 7a30517cce8f3acce4cc22e510068da7fc89b4a1 (patch) | |
tree | 84798d3ba673e97c08667580d70a0ba1bd706c2a /src/gallium/drivers/vc5/vc5_resource.h | |
parent | 308076fd55a44f8defedd80d75e256e51bdff0a2 (diff) |
broadcom/vc5: Start adding support for rendering to Z32F_S8X24_UINT.
There may be some more RCL work to be done (I think I need to split my Z/S
stores when doing separate stencil), but this gets piglit's "texwrap
GL_ARB_depth_buffer_float" working.
v2: Unwrap the z32f_wrapper before calling the helper, rather than having
the helper have a callback.
v3: Rebase on Rob Clark's u_transfer_helper instead
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_resource.h')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_resource.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc5/vc5_resource.h b/src/gallium/drivers/vc5/vc5_resource.h index ed464fc8d6c..cb4b86ccdec 100644 --- a/src/gallium/drivers/vc5/vc5_resource.h +++ b/src/gallium/drivers/vc5/vc5_resource.h @@ -83,7 +83,9 @@ 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 */ @@ -102,6 +104,7 @@ 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; }; struct vc5_resource { @@ -130,6 +133,11 @@ struct vc5_resource { * buffer) may get marked. */ uint32_t initialized_buffers; + + enum pipe_format internal_format; + + /* Resource storing the S8 part of a Z32F_S8 resource, or NULL. */ + struct vc5_resource *separate_stencil; }; static inline struct vc5_resource * |