diff options
author | Lionel Landwerlin <[email protected]> | 2019-01-03 16:14:50 +0000 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2019-01-04 11:18:51 +0000 |
commit | da634a4acbf096549e24e4b152cd2286172db672 (patch) | |
tree | 685f0ce4cc0b17bbfa63da96007d46135e0a128a /src/intel/blorp/blorp_genX_exec.h | |
parent | e5ed217545198088673440f5e2e5ee435d8072fd (diff) |
intel/blorp: emit VF caching workaround before 3DSTATE_VERTEX_BUFFERS
Probably no difference but it's nice to have i965 & blorp emit things
in the same order.
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/blorp/blorp_genX_exec.h')
-rw-r--r-- | src/intel/blorp/blorp_genX_exec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index 42494ffbc86..9010b03fb67 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -347,13 +347,13 @@ blorp_emit_vertex_buffers(struct blorp_batch *batch, blorp_emit_input_varying_data(batch, params, &addrs[1], &size); blorp_fill_vertex_buffer_state(batch, vb, 1, addrs[1], size, 0); + blorp_vf_invalidate_for_vb_48b_transitions(batch, addrs, num_vbs); + const unsigned num_dwords = 1 + num_vbs * GENX(VERTEX_BUFFER_STATE_length); uint32_t *dw = blorp_emitn(batch, GENX(3DSTATE_VERTEX_BUFFERS), num_dwords); if (!dw) return; - blorp_vf_invalidate_for_vb_48b_transitions(batch, addrs, num_vbs); - for (unsigned i = 0; i < num_vbs; i++) { GENX(VERTEX_BUFFER_STATE_pack)(batch, dw, &vb[i]); dw += GENX(VERTEX_BUFFER_STATE_length); |