[Mesa-dev] [PATCH 06/10] gallium: swap TGSI_PROCESSOR_VERTEX and TGSI_PROCESSOR_FRAGMENT

Luca Barbieri luca at luca-barbieri.com
Sun Sep 5 18:30:48 PDT 2010


These didn't match PIPE_SHADER_*, and it seems much better to make
all such indices match.

Vertex is first because cards with vertex shaders came first.
---
 src/gallium/include/pipe/p_shader_tokens.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h
index c4bd17e..636e7f0 100644
--- a/src/gallium/include/pipe/p_shader_tokens.h
+++ b/src/gallium/include/pipe/p_shader_tokens.h
@@ -40,8 +40,8 @@ struct tgsi_header
    unsigned BodySize   : 24;
 };
 
-#define TGSI_PROCESSOR_FRAGMENT  0
-#define TGSI_PROCESSOR_VERTEX    1
+#define TGSI_PROCESSOR_VERTEX    0
+#define TGSI_PROCESSOR_FRAGMENT  1
 #define TGSI_PROCESSOR_GEOMETRY  2
 
 struct tgsi_processor
-- 
1.7.0.4



More information about the mesa-dev mailing list