summaryrefslogtreecommitdiff
path: root/src/sna/gen7_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-01 20:53:12 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-02 11:52:58 +0000
commit8582c6f0bbe1bf01324b46933ff2f50c65f2a82d (patch)
treebb6dc504e253e61ba090be1a58750d22fa9d853b /src/sna/gen7_render.c
parent24264af2912f9abae5aff2a6fb5a50383d9e33be (diff)
sna/gen6+: Remove vestigial CC viewport state
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen7_render.c')
-rw-r--r--src/sna/gen7_render.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 0cbbf80e..ca688d4e 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -624,9 +624,9 @@ gen7_emit_cc_invariant(struct sna *sna)
OUT_BATCH(0);
#endif
- assert(is_aligned(sna->render_state.gen7.cc_vp, 32));
+ /* XXX clear to be safe */
OUT_BATCH(GEN7_3DSTATE_VIEWPORT_STATE_POINTERS_CC | (2 - 2));
- OUT_BATCH(sna->render_state.gen7.cc_vp);
+ OUT_BATCH(0);
}
static void
@@ -1165,16 +1165,6 @@ sampler_fill_init(struct gen7_sampler_state *ss)
sampler_state_init(ss+1, SAMPLER_FILTER_NEAREST, SAMPLER_EXTEND_NONE);
}
-static uint32_t gen7_create_cc_viewport(struct sna_static_stream *stream)
-{
- struct gen7_cc_viewport vp;
-
- vp.min_depth = -1.e35;
- vp.max_depth = 1.e35;
-
- return sna_static_stream_add(stream, &vp, sizeof(vp), 32);
-}
-
static uint32_t
gen7_tiling_bits(uint32_t tiling)
{
@@ -3753,7 +3743,6 @@ static bool gen7_render_setup(struct sna *sna)
}
}
- state->cc_vp = gen7_create_cc_viewport(&general);
state->cc_blend = gen7_composite_create_blend_state(&general);
state->general_bo = sna_static_stream_fini(sna, &general);