[Mesa-dev] [PATCH 2/2] i965: Make MIPTREE_LAYOUT_ALLOC_ANY_TILED an enum value.

Matt Turner mattst88 at gmail.com
Tue Aug 4 23:18:17 PDT 2015


---
 src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
index 89fdccb..540c655 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
@@ -538,12 +538,11 @@ enum {
 
    MIPTREE_LAYOUT_ALLOC_YTILED             = 1 << 5,
    MIPTREE_LAYOUT_ALLOC_XTILED             = 1 << 6,
+   MIPTREE_LAYOUT_ALLOC_ANY_TILED          = MIPTREE_LAYOUT_ALLOC_YTILED |
+                                             MIPTREE_LAYOUT_ALLOC_XTILED,
    MIPTREE_LAYOUT_ALLOC_LINEAR             = 1 << 7,
 };
 
-#define MIPTREE_LAYOUT_ALLOC_ANY_TILED (MIPTREE_LAYOUT_ALLOC_YTILED | \
-                                        MIPTREE_LAYOUT_ALLOC_XTILED)
-
 struct intel_mipmap_tree *intel_miptree_create(struct brw_context *brw,
                                                GLenum target,
 					       mesa_format format,
-- 
2.3.6



More information about the mesa-dev mailing list