From: Bas Nieuwenhuizen Date: Sun, 15 Sep 2019 11:36:58 +0000 (+0200) Subject: radv: Only break batch on framebuffer change with dfsm. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2dffb395f8f5d2aaea36a956ce158e7cbe64855;p=mesa.git radv: Only break batch on framebuffer change with dfsm. Reviewed-by: Samuel Pitoiset --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index f911af866be..6937eeacc49 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2019,7 +2019,7 @@ radv_emit_framebuffer_state(struct radv_cmd_buffer *cmd_buffer) S_028424_DISABLE_CONSTANT_ENCODE_REG(disable_constant_encode)); } - if (cmd_buffer->device->pbb_allowed) { + if (cmd_buffer->device->dfsm_allowed) { radeon_emit(cmd_buffer->cs, PKT3(PKT3_EVENT_WRITE, 0, 0)); radeon_emit(cmd_buffer->cs, EVENT_TYPE(V_028A90_BREAK_BATCH) | EVENT_INDEX(0)); }