Mesa (arb_geometry_shader4): gs: geometry shader inputs have semantics ( they're not inerpolated though)
Zack Rusin
zack at kemper.freedesktop.org
Thu Jul 16 03:53:23 UTC 2009
Module: Mesa
Branch: arb_geometry_shader4
Commit: 67502adfb7a274e0b7d0365b2825d88ee48e724a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=67502adfb7a274e0b7d0365b2825d88ee48e724a
Author: Zack Rusin <zackr at vmware.com>
Date: Wed Jul 15 23:57:08 2009 -0400
gs: geometry shader inputs have semantics (they're not inerpolated though)
---
src/mesa/state_tracker/st_mesa_to_tgsi.c | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index 7a54a0b..4adbfcd 100644
--- a/src/mesa/state_tracker/st_mesa_to_tgsi.c
+++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c
@@ -986,8 +986,26 @@ st_translate_mesa_program(
maxTokens - ti );
}
}
+ else if (procType == TGSI_PROCESSOR_GEOMETRY) {
+ /* XXX: this could probaby be merged with the clause above.
+ * the only difference is the interpMode .
+ */
+ for (i = 0; i < numInputs; i++) {
+ struct tgsi_full_declaration fulldecl;
+ fulldecl = make_input_decl(i,
+ GL_FALSE, 0,
+ TGSI_WRITEMASK_XYZW,
+ GL_TRUE, inputSemanticName[i],
+ inputSemanticIndex[i],
+ inputFlags[i]);
+ ti += tgsi_build_full_declaration(&fulldecl,
+ &tokens[ti],
+ header,
+ maxTokens - ti );
+ }
+ }
else {
- /* vertex/geometry prog */
+ /* vertex prog */
/* XXX: this could probaby be merged with the clause above.
* the only difference is the semantic tags.
*/
More information about the mesa-commit
mailing list