Module: Mesa Branch: arb_geometry_shader4 Commit: 2d487cabf7188fd9a93e067f64875a5440ee2a6b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2d487cabf7188fd9a93e067f64875a5440ee2a6b
Author: Zack Rusin <za...@vmware.com> Date: Wed May 20 00:19:58 2009 -0400 gs: make tgsi translation code treat geometry progs a lot like vertex progs --- src/mesa/state_tracker/st_mesa_to_tgsi.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 3d7cf62..b5d12c6 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -905,7 +905,8 @@ st_translate_mesa_program( GLint wposTemp = -1, winHeightConst = -1; assert(procType == TGSI_PROCESSOR_FRAGMENT || - procType == TGSI_PROCESSOR_VERTEX); + procType == TGSI_PROCESSOR_VERTEX || + procType == TGSI_PROCESSOR_GEOMETRY); find_temporaries(program, tempsUsed); @@ -953,7 +954,7 @@ st_translate_mesa_program( } } else { - /* vertex prog */ + /* vertex/geometry prog */ /* XXX: this could probaby be merged with the clause above. * the only difference is the semantic tags. */ @@ -1003,7 +1004,7 @@ st_translate_mesa_program( } } else { - /* vertex prog */ + /* vertex/geometry prog */ for (i = 0; i < numOutputs; i++) { struct tgsi_full_declaration fulldecl; fulldecl = make_output_decl(i, _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit