From ed68f1b00ae7c0fb3be1f0e758b3683f3c26675b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 12 Nov 2011 11:13:59 +0000 Subject: sna/gen7: Fix PRIMITIVE command The topology is now an extra dword rather than an embedded field in the command. Signed-off-by: Chris Wilson --- src/sna/gen7_render.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/sna/gen7_render.c') diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c index d0bd5453..5fe25991 100644 --- a/src/sna/gen7_render.c +++ b/src/sna/gen7_render.c @@ -991,8 +991,7 @@ static void gen7_magic_ca_pass(struct sna *sna, OUT_BATCH(MI_FLUSH | MI_INHIBIT_RENDER_CACHE_FLUSH); OUT_BATCH(GEN7_3DPRIMITIVE | (7- 2)); - OUT_BATCH(GEN7_3DPRIMITIVE_VERTEX_SEQUENTIAL | - _3DPRIM_RECTLIST << GEN7_3DPRIMITIVE_TOPOLOGY_SHIFT); + OUT_BATCH(GEN7_3DPRIMITIVE_VERTEX_SEQUENTIAL | _3DPRIM_RECTLIST); OUT_BATCH(sna->render.vertex_index - sna->render.vertex_start); OUT_BATCH(sna->render.vertex_start); OUT_BATCH(1); /* single instance */ @@ -1540,11 +1539,8 @@ static void gen7_emit_primitive(struct sna *sna) return; } - OUT_BATCH(GEN7_3DPRIMITIVE | - GEN7_3DPRIMITIVE_VERTEX_SEQUENTIAL | - _3DPRIM_RECTLIST << GEN7_3DPRIMITIVE_TOPOLOGY_SHIFT | - 0 << 9 | - 4); + OUT_BATCH(GEN7_3DPRIMITIVE | (7- 2)); + OUT_BATCH(GEN7_3DPRIMITIVE_VERTEX_SEQUENTIAL | _3DPRIM_RECTLIST); sna->render_state.gen7.vertex_offset = sna->kgem.nbatch; OUT_BATCH(0); /* vertex count, to be filled in later */ OUT_BATCH(sna->render.vertex_index); -- cgit v1.2.3