From: Chia-I Wu Date: Thu, 20 Feb 2014 08:59:24 +0000 (+0800) Subject: ilo: pipe_texture::usage is not a bitfield X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7307fe7088aeda0c3449104239562bbe1c6be46;p=mesa.git ilo: pipe_texture::usage is not a bitfield It happens to work because PIPE_USAGE_STAGING is 0x100. --- 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)) {