summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2014-07-29 10:21:42 +0800
committerChia-I Wu <olvaffe@gmail.com>2014-07-29 10:24:59 +0800
commit9a53f941c73dd217ba4a9b57bfb2472488f0d6d2 (patch)
treef86c270216d0576408ff50a4c537619edd59f962
parent76b11d15d36db9e83b36efe469c27d68389bb627 (diff)
downloadexternal_mesa3d-9a53f941c73dd217ba4a9b57bfb2472488f0d6d2.zip
external_mesa3d-9a53f941c73dd217ba4a9b57bfb2472488f0d6d2.tar.gz
external_mesa3d-9a53f941c73dd217ba4a9b57bfb2472488f0d6d2.tar.bz2
ilo: fix fb height of HiZ ops
It was set to aligned width. It appears to be fine on GEN7+, but causes random hangs on GEN6.
-rw-r--r--src/gallium/drivers/ilo/ilo_blitter_rectlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blitter_rectlist.c b/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
index 3cb17e0..f80dc5d 100644
--- a/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
+++ b/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
@@ -290,7 +290,7 @@ hiz_align_fb(struct ilo_blitter *blitter)
if (blitter->fb.width % align_w || blitter->fb.height % align_h) {
blitter->fb.width = align(blitter->fb.width, align_w);
- blitter->fb.height = align(blitter->fb.width, align_h);
+ blitter->fb.height = align(blitter->fb.height, align_h);
assert(!blitter->fb.dst.is_rt);
zs_align_surface(blitter->ilo->dev, align_w, align_h,