From e7307fe7088aeda0c3449104239562bbe1c6be46 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 20 Feb 2014 16:59:24 +0800 Subject: [PATCH] ilo: pipe_texture::usage is not a bitfield It happens to work because PIPE_USAGE_STAGING is 0x100. --- src/gallium/drivers/ilo/ilo_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/ilo/ilo_resource.c b/src/gallium/drivers/ilo/ilo_resource.c index f6d3f747407..cb8e1cbbb53 100644 --- a/src/gallium/drivers/ilo/ilo_resource.c +++ b/src/gallium/drivers/ilo/ilo_resource.c @@ -608,7 +608,7 @@ tex_layout_init_hiz(struct tex_layout *layout) layout->hiz = true; /* no point in having HiZ */ - if (templ->usage & PIPE_USAGE_STAGING) + if (templ->usage == PIPE_USAGE_STAGING) layout->hiz = false; if (layout->dev->gen == ILO_GEN(6)) { -- 2.30.2