radv: Only break batch on framebuffer change with dfsm.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 15 Sep 2019 11:36:58 +0000 (13:36 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 18 Sep 2019 21:28:51 +0000 (21:28 +0000)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_cmd_buffer.c

index f911af866bec6946371a789ab70008b8da09c4a5..6937eeacc49b567463dabc3782b66154c6483276 100644 (file)
@@ -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));
        }