summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen7_misc_state.c
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2013-10-02 17:21:33 -0700
committerChad Versace <chad.versace@linux.intel.com>2013-10-07 11:55:24 -0700
commit6cd1da83770e1d93b60b13f5518ee5eaa2e6c19d (patch)
tree1248a176e05ba0c05a3ab962d15d97f5fdf9b081 /src/mesa/drivers/dri/i965/gen7_misc_state.c
parentccad802ed515e0f47f39797d080f9999e7b642ac (diff)
downloadexternal_mesa3d-6cd1da83770e1d93b60b13f5518ee5eaa2e6c19d.zip
external_mesa3d-6cd1da83770e1d93b60b13f5518ee5eaa2e6c19d.tar.gz
external_mesa3d-6cd1da83770e1d93b60b13f5518ee5eaa2e6c19d.tar.bz2
gen7: Use logical, not physical, dims in 3DSTATE_DEPTH_BUFFER (v2)
In 3DSTATE_DEPTH_BUFFER, we set Width and Height to the miptree slice's physical dimensions. (Logical and physical dimensions may differ for multisample surfaces). However, in SURFACE_STATE, we always set Width and Height to the slice's logical dimensions. We should do the same for 3DSTATE_DEPTH_BUFFER, because the hw docs say so. No Piglit regressions (-x glx -x glean) on Ivybridge with Wayland. v2: No Piglit regressions, for real this time. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_misc_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_misc_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c
index eb942cf..3f3833e 100644
--- a/src/mesa/drivers/dri/i965/gen7_misc_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c
@@ -93,8 +93,8 @@ gen7_emit_depth_stencil_hiz(struct brw_context *brw,
lod = irb ? irb->mt_level - irb->mt->first_level : 0;
if (mt) {
- width = mt->physical_width0;
- height = mt->physical_height0;
+ width = mt->logical_width0;
+ height = mt->logical_height0;
}
/* _NEW_DEPTH, _NEW_STENCIL, _NEW_BUFFERS */