diff options
author | Eric Anholt <[email protected]> | 2012-02-15 13:33:07 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-02-21 11:54:12 -0800 |
commit | 07e00b3040d6da381595c65db5afe597f20d99fc (patch) | |
tree | a6fcc905b8a51cee1c8e78f1136c9217b898c912 /src/mesa/drivers/dri/i965/brw_vs.c | |
parent | 83871566207d6692d1f20e4b666adb5dd0628dc3 (diff) |
i965: Split the VS binding table to a separate table.
This is a step toward making the samplers/binding tables reflect
sampler uniform mappings instead of embedding those in the programs.
No significant performance difference on the microbenchmark (n=10).
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index ca205cdf79a..bd703c7389a 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -247,6 +247,11 @@ do_vs_prog(struct brw_context *brw, brw_old_vs_emit(&c); } + if (c.prog_data.nr_pull_params) + c.prog_data.num_surfaces = 1; + if (c.vp->program.Base.SamplersUsed) + c.prog_data.num_surfaces = BRW_MAX_VS_SURFACES; + /* Scratch space is used for register spilling */ if (c.last_scratch) { c.prog_data.total_scratch = brw_get_scratch_size(c.last_scratch); |