diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2011-07-13 22:19:21 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2011-07-28 15:00:53 -0700 |
commit | 4e491a1f6d7a15009904cb79e2c0b13cf2d9d6ec (patch) | |
tree | c06f95d5f875588f2e1252d5114b708edada389f /src/i965_render.c | |
parent | 2787cd66f0d2907110f774392370537df63a96fa (diff) |
render: Set Address Modify Enable in 3DSTATE_VERTEX_BUFFERS on Gen7.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Eric Anholt <eric@anholt.net>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i965_render.c')
-rw-r--r-- | src/i965_render.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i965_render.c b/src/i965_render.c index 1dfdde46..ec10392d 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -2167,10 +2167,14 @@ i965_prepare_composite(int op, PicturePtr source_picture, static void i965_select_vertex_buffer(struct intel_screen_private *intel) { int id = intel->gen4_render_state->composite_op.vertex_id; + int modifyenable = 0; if (intel->vertex_id & (1 << id)) return; + if (INTEL_INFO(intel)->gen >= 70) + modifyenable = GEN7_VB0_ADDRESS_MODIFYENABLE; + /* Set up the pointer to our (single) vertex buffer */ OUT_BATCH(BRW_3DSTATE_VERTEX_BUFFERS | 3); @@ -2180,6 +2184,7 @@ static void i965_select_vertex_buffer(struct intel_screen_private *intel) if (INTEL_INFO(intel)->gen >= 60) { OUT_BATCH((id << GEN6_VB0_BUFFER_INDEX_SHIFT) | GEN6_VB0_VERTEXDATA | + modifyenable | (4*intel->floats_per_vertex << VB0_BUFFER_PITCH_SHIFT)); } else { OUT_BATCH((id << VB0_BUFFER_INDEX_SHIFT) | |