summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_program.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-07-09 15:17:15 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-08-19 13:17:00 -0700
commitc5fe7d063cc886ef1307f8ea58a301debed12fba (patch)
tree36230f8474166eb6f36c006a4ed37cdd9f14aec1 /src/mesa/drivers/dri/i965/brw_program.h
parentd0401d09ce19e47e01a3f1c86c10894515de26ad (diff)
downloadexternal_mesa3d-c5fe7d063cc886ef1307f8ea58a301debed12fba.zip
external_mesa3d-c5fe7d063cc886ef1307f8ea58a301debed12fba.tar.gz
external_mesa3d-c5fe7d063cc886ef1307f8ea58a301debed12fba.tar.bz2
i965: Shorten sampler loops in key setup.
Now that we have the number of samplers available, we don't need to iterate over all 16. This should be particularly helpful for vertex shaders. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_program.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_program.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.h b/src/mesa/drivers/dri/i965/brw_program.h
index 2a944a0..a2997e7 100644
--- a/src/mesa/drivers/dri/i965/brw_program.h
+++ b/src/mesa/drivers/dri/i965/brw_program.h
@@ -44,6 +44,7 @@ struct brw_sampler_prog_key_data {
void brw_populate_sampler_prog_key_data(struct gl_context *ctx,
const struct gl_program *prog,
+ unsigned sampler_count,
struct brw_sampler_prog_key_data *key);
bool brw_debug_recompile_sampler_key(struct brw_context *brw,
const struct brw_sampler_prog_key_data *old_key,