aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_blitter_rectlist.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_blitter_rectlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blitter_rectlist.c b/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
index a2c3695cc4f..009780a1cd9 100644
--- a/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
+++ b/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
@@ -379,7 +379,8 @@ hiz_can_clear_zs(const struct ilo_blitter *blitter,
*/
switch (tex->layout.format) {
case PIPE_FORMAT_Z16_UNORM:
- if (blitter->ilo->dev->gen == ILO_GEN(6) && tex->base.width0 % 16)
+ if (ilo_dev_gen(blitter->ilo->dev) == ILO_GEN(6) &&
+ tex->base.width0 % 16)
return false;
break;
case PIPE_FORMAT_Z24_UNORM_S8_UINT: