iris: track depth/stencil writes enabled

This commit is contained in:
Kenneth Graunke
2018-08-18 23:21:41 -07:00
parent 3fecb1c44d
commit 1d33982e9b
2 changed files with 19 additions and 2 deletions

View File

@@ -345,6 +345,12 @@ struct iris_context {
struct pipe_stencil_ref stencil_ref;
struct pipe_framebuffer_state framebuffer;
/** Are depth writes enabled? (Depth buffer may or may not exist.) */
bool depth_writes_enabled;
/** Are stencil writes enabled? (Stencil buffer may or may not exist.) */
bool stencil_writes_enabled;
/** GenX-specific current state */
struct iris_genx_state *genx;