Module: Mesa Branch: nvfx-next-6 Commit: 75621df59a259b9d697be191c7f3aee3c0f5f2b3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=75621df59a259b9d697be191c7f3aee3c0f5f2b3
Author: Luca Barbieri <[email protected]> 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 */ _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
