diff options
author | Chris Forbes <[email protected]> | 2014-02-15 16:25:12 +1300 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2014-04-10 18:27:41 +1200 |
commit | 058f353a159a6e34adb6d45462a18de86685a046 (patch) | |
tree | 0f6277ed1d05ce535b418e837a03beaf25bfed0f /src | |
parent | 540d53d9b0cd357f70cb0f1aeaec82a604c43547 (diff) |
i965: Account for view parameters in fast depth clears
V2: - No need for layer_multiplier; multisampled depth surfaces are IMS.
- Remove unused num_layers.
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_clear.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c index 6571e84e554..a487a71838f 100644 --- a/src/mesa/drivers/dri/i965/brw_clear.c +++ b/src/mesa/drivers/dri/i965/brw_clear.c @@ -187,9 +187,9 @@ brw_fast_clear_depth(struct gl_context *ctx) intel_batchbuffer_emit_mi_flush(brw); if (fb->MaxNumLayers > 0) { - unsigned num_layers = depth_irb->mt->level[depth_irb->mt_level].depth; - for (unsigned layer = 0; layer < num_layers; layer++) { - intel_hiz_exec(brw, mt, depth_irb->mt_level, layer, + for (unsigned layer = 0; layer < depth_irb->layer_count; layer++) { + intel_hiz_exec(brw, mt, depth_irb->mt_level, + depth_irb->mt_layer + layer, GEN6_HIZ_OP_DEPTH_CLEAR); } } else { |