[Mesa-dev] [PATCH 1/2] gallium: add PIPE_RESOURCE_FLAG_UNNORMALIZED_COORDS_HINT

Luca Barbieri luca at luca-barbieri.com
Thu Apr 15 00:36:53 PDT 2010


This allows the OpenGL state tracker to inform the driver that we
are using GL_TEXTURE_RECTANGLE as opposed to GL_TEXTURE_2D.
---
 src/gallium/include/pipe/p_defines.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 0a4bd58..54e1b4c 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -313,6 +313,12 @@ enum pipe_transfer_usage {
 /* Flags for the driver about resource behaviour:
  */
 #define PIPE_RESOURCE_FLAG_GEN_MIPS    (1 << 0)  /* Driver performs autogen mips */
+
+/* This texture will typically be used with sampler states having unnormalized coords
+ * For instance, OpenGL rectangle textures will have this set.
+ */
+#define PIPE_RESOURCE_FLAG_UNNORMALIZED_COORDS_HINT (1 << 1)
+
 #define PIPE_RESOURCE_FLAG_DRV_PRIV    (1 << 16) /* driver/winsys private */
 #define PIPE_RESOURCE_FLAG_ST_PRIV     (1 << 24) /* state-tracker/winsys private */
 
-- 
1.7.0.1.147.g6d84b



More information about the mesa-dev mailing list