diff options
author | Eric Anholt <[email protected]> | 2012-02-13 10:00:14 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-02-21 11:53:37 -0800 |
commit | 9f3d3216cf25d8ffed4d72fbce6feacbc2990e4b (patch) | |
tree | 44ea9993bdd0726ac7adebffe0bb58b25b8667b6 /src/mesa/drivers/dri/i965/brw_vs_emit.c | |
parent | b5c409363cfd144b1caad50b77ccc7591de42af2 (diff) |
i965: Make the userclip flag for the VUE map come from VS prog data.
This reduces recomputation of state based on non-clipping-related
transform changes, and is a step toward removing VUE map
recomputation.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs_emit.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs_emit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c index 2b4b13a10d9..07fc0af6a9d 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_emit.c +++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c @@ -173,6 +173,7 @@ static inline bool can_use_direct_mrf(int vert_result, */ static void brw_vs_alloc_regs( struct brw_vs_compile *c ) { + struct brw_context *brw = c->func.brw; struct intel_context *intel = &c->func.brw->intel; GLuint i, reg = 0, slot; int attributes_in_vue; @@ -325,8 +326,7 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c ) /* Allocate outputs. The non-position outputs go straight into message regs. */ - brw_compute_vue_map(&c->vue_map, intel, c->key.userclip_active, - c->prog_data.outputs_written); + brw_compute_vue_map(&c->vue_map, intel, &c->prog_data); c->first_output = reg; first_reladdr_output = get_first_reladdr_output(&c->vp->program); |