diff options
author | Eric Anholt <[email protected]> | 2014-04-06 10:49:49 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-04-11 13:38:52 -0700 |
commit | 3f9440cfbb0b616b81ad9f03814ebab7e2b7b8c2 (patch) | |
tree | a5490854a6e3a36d501257ccb726a621288675a0 /src/mesa/drivers/dri/i965/brw_context.h | |
parent | fe4f373eb42e9e55e66be108d310b500c7115442 (diff) |
i965/gen7: Skip repeated NULL depth/stencil state emits.
Improves cairo performance on glamor by 2.87752% +/- 0.966977 (n=57).
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 487142cd300..f8ca58fdd5b 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -1119,6 +1119,9 @@ struct brw_context /* Whether a meta-operation is in progress. */ bool meta_in_progress; + /* Whether the last depth/stencil packets were both NULL. */ + bool no_depth_or_stencil; + struct { struct brw_vertex_element inputs[VERT_ATTRIB_MAX]; struct brw_vertex_buffer buffers[VERT_ATTRIB_MAX]; |