diff options
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.h b/src/gallium/drivers/vc4/vc4_context.h index d6367871358..fe51072180b 100644 --- a/src/gallium/drivers/vc4/vc4_context.h +++ b/src/gallium/drivers/vc4/vc4_context.h @@ -143,6 +143,7 @@ struct vc4_context { */ uint32_t resolve; uint32_t clear_color[2]; + uint32_t clear_depth; /**< 24-bit unorm depth */ /** * Set if some drawing (triangles, blits, or just a glClear()) has @@ -165,7 +166,7 @@ struct vc4_context { struct pipe_scissor_state scissor; struct pipe_blend_state *blend; struct vc4_rasterizer_state *rasterizer; - struct pipe_depth_stencil_alpha_state *zsa; + struct vc4_depth_stencil_alpha_state *zsa; struct vc4_texture_stateobj verttex, fragtex; @@ -194,6 +195,13 @@ struct vc4_rasterizer_state { float point_size; }; +struct vc4_depth_stencil_alpha_state { + struct pipe_depth_stencil_alpha_state base; + + /* VC4_CONFIGURATION_BITS */ + uint8_t config_bits[3]; +}; + static inline struct vc4_context * vc4_context(struct pipe_context *pcontext) { |