diff options
author | Kenneth Graunke <[email protected]> | 2011-11-01 15:41:48 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-11-10 22:51:18 -0800 |
commit | c3e3903a9089043b280c461a72dab5158dc25d32 (patch) | |
tree | dfac03c88011e4c01c509e9b96e888eeab03aadc /src/mesa/drivers/dri/i965/brw_vs_surface_state.c | |
parent | 5d448b42b7143a1a38911b23d94b5c5d5bfa79f0 (diff) |
i965: Use new vtable entries for surface state updating functions.
Now that we have vtable entries in place, we should use them. This
allows us to drop the cut and pasted Gen7 brw_tracked_state atoms as
they now do exactly the same thing as their brw_wm_surface_state
counterparts.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs_surface_state.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_surface_state.c b/src/mesa/drivers/dri/i965/brw_vs_surface_state.c index f838daa2b07..8c63db8a89b 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_vs_surface_state.c @@ -129,13 +129,9 @@ brw_update_vs_constant_surface( struct gl_context *ctx, return; } - if (intel->gen >= 7) { - gen7_create_constant_surface(brw, brw->vs.const_bo, params->NumParameters, - &brw->vs.surf_offset[surf]); - } else { - brw_create_constant_surface(brw, brw->vs.const_bo, params->NumParameters, - &brw->vs.surf_offset[surf]); - } + intel->vtbl.create_constant_surface(brw, brw->vs.const_bo, + params->NumParameters, + &brw->vs.surf_offset[surf]); } /** |