From: Chia-I Wu Date: Mon, 26 Jan 2015 07:35:14 +0000 (+0800) Subject: ilo: update depth clear value for Gen8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8976a190b2c4049598afa23b7a277e9f571306ba;p=mesa.git ilo: update depth clear value for Gen8 --- 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);