summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965simple/brw_state.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-02-27 16:05:16 -0700
committerBrian <[email protected]>2008-02-27 16:05:16 -0700
commitea7e86dd4d1e7dbef2642da73bb1980723ae49ef (patch)
treed5fb0f559f20b339349f28151426a90608732a53 /src/gallium/drivers/i965simple/brw_state.c
parent6b9a7eb460fe0a9c958b837f2ed49c2d4e303ebc (diff)
gallium/i965: remove dependencies on pipe_shader_state's semantic info
The brw_shader_info struct is rendundant and could be removed...
Diffstat (limited to 'src/gallium/drivers/i965simple/brw_state.c')
-rw-r--r--src/gallium/drivers/i965simple/brw_state.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965simple/brw_state.c b/src/gallium/drivers/i965simple/brw_state.c
index 7466fdc403d..6e464652002 100644
--- a/src/gallium/drivers/i965simple/brw_state.c
+++ b/src/gallium/drivers/i965simple/brw_state.c
@@ -175,8 +175,10 @@ static void * brw_create_fs_state(struct pipe_context *pipe,
brw_fp->program = *shader;
brw_fp->id = brw_context(pipe)->program_id++;
+ tgsi_scan_shader(shader->tokens, &brw_fp->info);
+
brw_shader_info(shader->tokens,
- &brw_fp->info);
+ &brw_fp->info2);
tgsi_dump(shader->tokens, 0);
@@ -211,8 +213,11 @@ static void *brw_create_vs_state(struct pipe_context *pipe,
*/
brw_vp->program = *shader;
brw_vp->id = brw_context(pipe)->program_id++;
+
+ tgsi_scan_shader(shader->tokens, &brw_vp->info);
+
brw_shader_info(shader->tokens,
- &brw_vp->info);
+ &brw_vp->info2);
tgsi_dump(shader->tokens, 0);