i965: Update gen6 paths for the streaming rework.

This commit is contained in:
Eric Anholt
2010-06-11 15:35:52 -07:00
parent 7ad26b0030
commit 0f59b9a95d
3 changed files with 4 additions and 31 deletions
-1
View File
@@ -95,7 +95,6 @@ const struct brw_tracked_state brw_index_buffer;
const struct brw_tracked_state gen6_binding_table_pointers;
const struct brw_tracked_state gen6_blend_state;
const struct brw_tracked_state gen6_cc_state_pointers;
const struct brw_tracked_state gen6_cc_vp;
const struct brw_tracked_state gen6_clip_state;
const struct brw_tracked_state gen6_clip_vp;
const struct brw_tracked_state gen6_color_calc_state;
+4 -1
View File
@@ -116,7 +116,6 @@ const struct brw_tracked_state *gen6_atoms[] =
&gen6_clip_vp,
&gen6_sf_vp,
&gen6_cc_vp,
/* Command packets: */
&brw_invarient_state,
@@ -129,9 +128,13 @@ const struct brw_tracked_state *gen6_atoms[] =
&gen6_depth_stencil_state, /* must do before cc unit */
&gen6_cc_state_pointers,
&brw_vs_constants, /* Before vs_surfaces and constant_buffer */
&brw_wm_constants, /* Before wm_surfaces and constant_buffer */
&brw_vs_surfaces, /* must do before unit */
&brw_wm_constant_surface, /* must do before wm surfaces/bind bo */
&brw_wm_surfaces, /* must do before samplers and unit */
&brw_wm_binding_table,
&brw_wm_samplers,
&gen6_sampler_state,
@@ -106,35 +106,6 @@ const struct brw_tracked_state gen6_sf_vp = {
.prepare = prepare_sf_vp,
};
static void
prepare_cc_vp(struct brw_context *brw)
{
GLcontext *ctx = &brw->intel.ctx;
struct brw_cc_viewport ccv;
/* _NEW_TRANSOFORM */
if (ctx->Transform.DepthClamp) {
/* _NEW_VIEWPORT */
ccv.min_depth = MIN2(ctx->Viewport.Near, ctx->Viewport.Far);
ccv.max_depth = MAX2(ctx->Viewport.Near, ctx->Viewport.Far);
} else {
ccv.min_depth = 0.0;
ccv.max_depth = 1.0;
}
drm_intel_bo_unreference(brw->cc.vp_bo);
brw->cc.vp_bo = brw_cache_data(&brw->cache, BRW_CC_VP, &ccv, sizeof(ccv));
}
const struct brw_tracked_state gen6_cc_vp = {
.dirty = {
.mesa = _NEW_VIEWPORT | _NEW_TRANSFORM,
.brw = 0,
.cache = 0,
},
.prepare = prepare_cc_vp,
};
static void prepare_viewport_state_pointers(struct brw_context *brw)
{
brw_add_validated_bo(brw, brw->sf.state_bo);