diff options
author | Samuel Pitoiset <[email protected]> | 2018-01-05 18:00:31 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-01-08 21:24:56 +0100 |
commit | b09b3f88341b7cd31eb8b1921d8d2b29fd0bfaa3 (patch) | |
tree | c226ae72b873dc7eab938c74fc9624212d517e11 /src/amd/vulkan/radv_cmd_buffer.c | |
parent | b462ceb482471dd4aacdd5fa7cef9fe25f823d70 (diff) |
radv: add has_scissor_bug for Vega10 and Raven
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index b0bddd16b39..665ee876a9d 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1122,8 +1122,7 @@ radv_emit_scissor(struct radv_cmd_buffer *cmd_buffer) * scissor registers are changed. There is also a more efficient but * more involved alternative workaround. */ - if (cmd_buffer->device->physical_device->rad_info.family == CHIP_VEGA10 || - cmd_buffer->device->physical_device->rad_info.family == CHIP_RAVEN) { + if (cmd_buffer->device->physical_device->has_scissor_bug) { cmd_buffer->state.flush_bits |= RADV_CMD_FLAG_PS_PARTIAL_FLUSH; si_emit_cache_flush(cmd_buffer); } |