Mesa (master): ilo: pipe_texture::usage is not a bitfield

Chia-I Wu olv at kemper.freedesktop.org
Sat Feb 22 14:48:33 UTC 2014


Module: Mesa
Branch: master
Commit: e7307fe7088aeda0c3449104239562bbe1c6be46
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7307fe7088aeda0c3449104239562bbe1c6be46

Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Thu Feb 20 16:59:24 2014 +0800

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 f6d3f74..cb8e1cb 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)) {




More information about the mesa-commit mailing list