diff options
author | Kenneth Graunke <[email protected]> | 2012-06-16 13:50:03 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-07-12 14:17:44 -0700 |
commit | fe911c1d433c6fddc8f1e1226286b26d635d6ad4 (patch) | |
tree | e0480dd097cec6d1e4142cab93877c7b126d9b4c /src/mesa/drivers/dri/i965/brw_program.h | |
parent | 86e401b771ce4a6f9a728f76c5061c339f012d0a (diff) |
i965: Move loop over texture units into brw_populate_sampler_prog_key.
The whole reason I avoided this was because it might operate on a
brw_vertex_program or a brw_fragment_program. However, that isn't a
problem: all we need is the gl_program base type.
This avoids awkwardly passing the loop counter 'i' as a parameter,
simplifies both callers, and also plumbs prog in place for future use.
Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_program.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.h b/src/mesa/drivers/dri/i965/brw_program.h index 287994f5262..874238f2049 100644 --- a/src/mesa/drivers/dri/i965/brw_program.h +++ b/src/mesa/drivers/dri/i965/brw_program.h @@ -43,6 +43,7 @@ struct brw_sampler_prog_key_data { }; void brw_populate_sampler_prog_key_data(struct gl_context *ctx, - struct brw_sampler_prog_key_data *key, int i); + const struct gl_program *prog, + struct brw_sampler_prog_key_data *key); #endif |