projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540d53d
)
i965: Account for view parameters in fast depth clears
author
Chris Forbes
<chrisf@ijw.co.nz>
Sat, 15 Feb 2014 03:25:12 +0000
(16:25 +1300)
committer
Chris Forbes
<chrisf@ijw.co.nz>
Thu, 10 Apr 2014 06:27:41 +0000
(18:27 +1200)
V2: - No need for layer_multiplier; multisampled depth surfaces are IMS.
- Remove unused num_layers.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_clear.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_clear.c
b/src/mesa/drivers/dri/i965/brw_clear.c
index 6571e84e55429793ad1a1d13bae05271b76be98f..a487a71838f7ec19c7e861cbe3b09452f70cbd4a 100644
(file)
--- 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 {