Mesa (nvfx-next-6): gallium: add PIPE_RESOURCE_FLAG_UNNORMALIZED_COORDS_HINT

Luca Barbieri lb at kemper.freedesktop.org
Sun Apr 18 14:25:32 UTC 2010


Module: Mesa
Branch: nvfx-next-6
Commit: 75621df59a259b9d697be191c7f3aee3c0f5f2b3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=75621df59a259b9d697be191c7f3aee3c0f5f2b3

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Thu Apr 15 09:02:29 2010 +0200

gallium: add PIPE_RESOURCE_FLAG_UNNORMALIZED_COORDS_HINT

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 */
 




More information about the mesa-commit mailing list