From fa21ddf7b1a672f05fc10f91a15215d607a7a873 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Thu, 25 Jan 2018 17:13:26 -0800 Subject: [PATCH] anv/cmd_buffer: Emit PIPE_CONTROL with ISP bit on older platforms. Emit it on all platforms since gen7. Signed-off-by: Rafael Antognolli Reviewed-by: Jason Ekstrand --- src/intel/vulkan/genX_cmd_buffer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 3691b4bdec9..fc1b6ffe0f5 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -975,8 +975,7 @@ genX(BeginCommandBuffer)( * emit push constants again before any rendering operation. So we * flag them dirty here to make sure they get emitted. */ - if (GEN_GEN == 10) - cmd_buffer->state.push_constants_dirty |= VK_SHADER_STAGE_ALL_GRAPHICS; + cmd_buffer->state.push_constants_dirty |= VK_SHADER_STAGE_ALL_GRAPHICS; VkResult result = VK_SUCCESS; if (cmd_buffer->usage_flags & @@ -1074,8 +1073,7 @@ genX(EndCommandBuffer)( genX(cmd_buffer_apply_pipe_flushes)(cmd_buffer); - if (GEN_GEN == 10) - emit_isp_disable(cmd_buffer); + emit_isp_disable(cmd_buffer); anv_cmd_buffer_end_batch_buffer(cmd_buffer); -- 2.30.2