diff options
author | Jason Ekstrand <[email protected]> | 2017-02-20 11:04:12 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-02-21 12:26:35 -0800 |
commit | f31ed6d0cd3c6b66304bb060a0c204ecf8621e6a (patch) | |
tree | 14a3f2ba7984256b209405d0a43993795b62358e /src/intel/vulkan/gen7_cmd_buffer.c | |
parent | f408971deb7821cc140f1d373a104c2e1cb24eeb (diff) |
anv: Take a device parameter in anv_state_flush
This allows the helper to check for llc instead of having to do it
manually at all the call sites.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/gen7_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/gen7_cmd_buffer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/intel/vulkan/gen7_cmd_buffer.c b/src/intel/vulkan/gen7_cmd_buffer.c index 3f7376c9a7d..4ea3158a0f5 100644 --- a/src/intel/vulkan/gen7_cmd_buffer.c +++ b/src/intel/vulkan/gen7_cmd_buffer.c @@ -90,8 +90,7 @@ gen7_cmd_buffer_emit_scissor(struct anv_cmd_buffer *cmd_buffer) ssp.ScissorRectPointer = scissor_state.offset; } - if (!cmd_buffer->device->info.has_llc) - anv_state_flush(scissor_state); + anv_state_flush(cmd_buffer->device, scissor_state); } #endif @@ -191,8 +190,7 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer) .BackfaceStencilReferenceValue = d->stencil_reference.back & 0xff, }; GENX(COLOR_CALC_STATE_pack)(NULL, cc_state.map, &cc); - if (!cmd_buffer->device->info.has_llc) - anv_state_flush(cc_state); + anv_state_flush(cmd_buffer->device, cc_state); anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_CC_STATE_POINTERS), ccp) { ccp.ColorCalcStatePointer = cc_state.offset; |