summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-02-20 16:59:24 +0800
committerChia-I Wu <[email protected]>2014-02-22 22:45:12 +0800
commite7307fe7088aeda0c3449104239562bbe1c6be46 (patch)
tree2139425549a6bcc0e5d66c6d58a3516747f6f1c0 /src/gallium/drivers/ilo
parentf8d19a58dcb4fbdc453549cfd3884145ae28f073 (diff)
ilo: pipe_texture::usage is not a bitfield
It happens to work because PIPE_USAGE_STAGING is 0x100.
Diffstat (limited to 'src/gallium/drivers/ilo')
-rw-r--r--src/gallium/drivers/ilo/ilo_resource.c2
1 files changed, 1 insertions, 1 deletions
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)) {