mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
i965/gen7: gen7_emit_depthbuffer needs the _NEW_DEPTH dirty bit.
For ctx->Depth.Mask. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
bd265201da
commit
a00ca90815
1 changed files with 2 additions and 1 deletions
|
|
@ -89,6 +89,7 @@ static void emit_depthbuffer(struct brw_context *brw)
|
|||
|
||||
assert(region->tiling == I915_TILING_Y);
|
||||
|
||||
/* _NEW_DEPTH */
|
||||
BEGIN_BATCH(7);
|
||||
OUT_BATCH(GEN7_3DSTATE_DEPTH_BUFFER << 16 | (7 - 2));
|
||||
OUT_BATCH(((region->pitch * region->cpp) - 1) |
|
||||
|
|
@ -133,7 +134,7 @@ static void emit_depthbuffer(struct brw_context *brw)
|
|||
*/
|
||||
const struct brw_tracked_state gen7_depthbuffer = {
|
||||
.dirty = {
|
||||
.mesa = _NEW_BUFFERS,
|
||||
.mesa = (_NEW_BUFFERS | _NEW_DEPTH),
|
||||
.brw = BRW_NEW_BATCH,
|
||||
.cache = 0,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue