diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-09-12 14:22:48 -0700 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-09-14 17:09:15 +0100 |
commit | 4295b34d25f40f38b8cfd3ebdc64aef29d0666db (patch) | |
tree | 518a347f82bfdf8dcf90cc717fe451dcc7311062 /src/mesa/state_tracker/st_mesa_to_tgsi.h | |
parent | d8a191e314922735bfe0e7cf1906eb556a659f59 (diff) |
st/mesa: convert to new tgsi_ureg mechanism for shader emit
Should be easier to read and work with than the older ways of emitting
TGSI tokens.
Also, emit simpler TGSI than previously:
- translate away source and dest extended modifiers
- translate away the SWZ opcode
Diffstat (limited to 'src/mesa/state_tracker/st_mesa_to_tgsi.h')
-rw-r--r-- | src/mesa/state_tracker/st_mesa_to_tgsi.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.h b/src/mesa/state_tracker/st_mesa_to_tgsi.h index b465b3bddc..679d0ddd41 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.h +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.h @@ -39,7 +39,7 @@ extern "C" { struct tgsi_token; struct gl_program; -GLuint +const struct tgsi_token * st_translate_mesa_program( GLcontext *ctx, uint procType, @@ -54,9 +54,7 @@ st_translate_mesa_program( const GLuint outputMapping[], const ubyte outputSemanticName[], const ubyte outputSemanticIndex[], - const GLbitfield outputFlags[], - struct tgsi_token *tokens, - GLuint maxTokens ); + const GLbitfield outputFlags[] ); #if defined __cplusplus |