projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b57d2df
)
i965/gen4: Fix assertion failures in depthstencil piglit tests.
author
Eric Anholt
<eric@anholt.net>
Wed, 31 Oct 2012 19:58:49 +0000
(12:58 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 1 Nov 2012 16:22:09 +0000
(09:22 -0700)
Don't forget to set depth_mt even if !hiz_mt.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_misc_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_misc_state.c
b/src/mesa/drivers/dri/i965/brw_misc_state.c
index ce23fa0293f4fa3d369e302a1bcc429c88209dd8..d4b4c75828474d18e6a9536b3354bad1e373c6d8 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/
src/mesa/drivers/dri/i965/brw_misc_state.c
@@
-416,11
+416,12
@@
static void emit_depthbuffer(struct brw_context *brw)
unsigned int len;
bool separate_stencil = false;
- if (depth_irb &&
- depth_irb->mt &&
- depth_irb->mt->hiz_mt) {
+ if (depth_irb){
depth_mt = depth_irb->mt;
- hiz_region = depth_irb->mt->hiz_mt->region;
+ if (depth_mt &&
+ depth_mt->hiz_mt) {
+ hiz_region = depth_irb->mt->hiz_mt->region;
+ }
}
/* 3DSTATE_DEPTH_BUFFER, 3DSTATE_STENCIL_BUFFER are both