summaryrefslogtreecommitdiff
path: root/src/sna/gen7_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-12 11:13:59 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-12 11:54:52 +0000
commited68f1b00ae7c0fb3be1f0e758b3683f3c26675b (patch)
treec9c9d224e8ea2e99443f0ad233bb491a999ef392 /src/sna/gen7_render.c
parent991ffcb60a15f08ebb396d4d4ec86d5aff0ded31 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen7_render.c')
-rw-r--r--src/sna/gen7_render.c10
1 files changed, 3 insertions, 7 deletions
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);