diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2016-04-27 11:25:26 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2016-05-16 00:11:49 -0700 |
commit | 7b70a12e1c6dffc63fbcec6a89af3e02ba9a1a1d (patch) | |
tree | 6ac2042d5066ca102b23cd8fb4ecc4163b09da31 /src/mesa/drivers/dri/i965/brw_state_upload.c | |
parent | b23b099a0bc3ea0c6857b342b6d75f0dbfc334bd (diff) | |
download | external_mesa3d-7b70a12e1c6dffc63fbcec6a89af3e02ba9a1a1d.zip external_mesa3d-7b70a12e1c6dffc63fbcec6a89af3e02ba9a1a1d.tar.gz external_mesa3d-7b70a12e1c6dffc63fbcec6a89af3e02ba9a1a1d.tar.bz2 |
i965: Move Gen4-5 programs to brw_upload_programs() too.
This way all the programs are in one place again, and it also should
make some future STATE_BASE_ADDRESS related changes possible.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state_upload.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_upload.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c index 56bb95c..a70b246 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upload.c +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c @@ -45,11 +45,6 @@ static const struct brw_tracked_state *gen4_atoms[] = { - &brw_interpolation_map, - - &brw_clip_prog, /* must do before state base address */ - &brw_sf_prog, /* must do before state base address */ - /* Once all the programs are done, we know how large urb entry * sizes need to be and can decide if we need to change the urb * layout. @@ -749,6 +744,12 @@ brw_upload_programs(struct brw_context *brw, old_separate != brw->vue_map_geom_out.separate) brw->ctx.NewDriverState |= BRW_NEW_VUE_MAP_GEOM_OUT; + if (brw->gen < 6) { + brw_setup_vue_interpolation(brw); + brw_upload_clip_prog(brw); + brw_upload_sf_prog(brw); + } + brw_upload_wm_prog(brw); } else if (pipeline == BRW_COMPUTE_PIPELINE) { brw_upload_cs_prog(brw); |