aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-01-26 15:35:14 +0800
committerChia-I Wu <[email protected]>2015-02-12 07:56:12 +0800
commit8976a190b2c4049598afa23b7a277e9f571306ba (patch)
tree6e5f8af307e19d758ec0233f2403f3ac514e0784
parent0b7fdce4f5f507bac86211a6e5356c86e15d8379 (diff)
ilo: update depth clear value for Gen8
-rw-r--r--src/gallium/drivers/ilo/ilo_blitter_rectlist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blitter_rectlist.c b/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
index f232f4202bf..91cf7375c2a 100644
--- a/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
+++ b/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
@@ -339,7 +339,10 @@ ilo_blitter_rectlist_clear_zs(struct ilo_blitter *blitter,
if (!hiz_can_clear_zs(blitter, tex))
return false;
- clear_value = util_pack_z(tex->layout.format, depth);
+ if (ilo_dev_gen(blitter->ilo->dev) >= ILO_GEN(8))
+ clear_value = fui(depth);
+ else
+ clear_value = util_pack_z(tex->layout.format, depth);
ilo_blit_resolve_surface(blitter->ilo, zs,
ILO_TEXTURE_RENDER_WRITE | ILO_TEXTURE_CLEAR);