mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 08:50:28 +01:00
i965: suppress repeat-emission of identical vertex elements
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
aac120977d
commit
60bb3e5614
1 changed files with 2 additions and 3 deletions
|
|
@ -444,7 +444,7 @@ static void brw_emit_vertices(struct brw_context *brw)
|
|||
(BRW_VE1_COMPONENT_STORE_0 << BRW_VE1_COMPONENT_1_SHIFT) |
|
||||
(BRW_VE1_COMPONENT_STORE_0 << BRW_VE1_COMPONENT_2_SHIFT) |
|
||||
(BRW_VE1_COMPONENT_STORE_1_FLT << BRW_VE1_COMPONENT_3_SHIFT));
|
||||
ADVANCE_BATCH();
|
||||
CACHED_BATCH();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -485,7 +485,6 @@ static void brw_emit_vertices(struct brw_context *brw)
|
|||
}
|
||||
ADVANCE_BATCH();
|
||||
|
||||
|
||||
BEGIN_BATCH(1 + brw->vb.nr_enabled * 2);
|
||||
OUT_BATCH((CMD_VERTEX_ELEMENT << 16) | ((1 + brw->vb.nr_enabled * 2) - 2));
|
||||
for (i = 0; i < brw->vb.nr_enabled; i++) {
|
||||
|
|
@ -531,7 +530,7 @@ static void brw_emit_vertices(struct brw_context *brw)
|
|||
(comp3 << BRW_VE1_COMPONENT_3_SHIFT) |
|
||||
((i * 4) << BRW_VE1_DST_OFFSET_SHIFT));
|
||||
}
|
||||
ADVANCE_BATCH();
|
||||
CACHED_BATCH();
|
||||
}
|
||||
|
||||
const struct brw_tracked_state brw_vertices = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue