Mesa (gallium-integer-opcodes): gallium: Add signed/ unsigned int immediate data types.

Michał Król michal at kemper.freedesktop.org
Wed Dec 23 18:24:29 UTC 2009


Module: Mesa
Branch: gallium-integer-opcodes
Commit: 833d636a2b31c5fdbaf02bb30cc97e8fe7569366
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=833d636a2b31c5fdbaf02bb30cc97e8fe7569366

Author: Michal Krol <michal at vmware.com>
Date:   Wed Dec 23 18:17:34 2009 +0100

gallium: Add signed/unsigned int immediate data types.

---

 src/gallium/include/pipe/p_shader_tokens.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h
index ea42654..c287578 100644
--- a/src/gallium/include/pipe/p_shader_tokens.h
+++ b/src/gallium/include/pipe/p_shader_tokens.h
@@ -140,6 +140,8 @@ struct tgsi_declaration_semantic
 };
 
 #define TGSI_IMM_FLOAT32   0
+#define TGSI_IMM_UINT32    1
+#define TGSI_IMM_INT32     2
 
 struct tgsi_immediate
 {
@@ -152,6 +154,8 @@ struct tgsi_immediate
 union tgsi_immediate_data
 {
    float Float;
+   unsigned Uint;
+   int Int;
 };
 
 #define TGSI_PROPERTY_GS_INPUT_PRIM          0




More information about the mesa-commit mailing list