diff options
author | Jason Ekstrand <[email protected]> | 2015-11-30 17:46:38 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-12-03 13:43:52 -0800 |
commit | 17486b86644688c4f295d189b354a6ea1d6a1471 (patch) | |
tree | 9a79b020340eb54543b4b4d1c32347d696a8269e /src/vulkan/anv_batch_chain.c | |
parent | f5ba1f994a3cf59ad942d09f689d8d0aab79b330 (diff) |
vk/0.210.0: More fun with flags fields
Diffstat (limited to 'src/vulkan/anv_batch_chain.c')
-rw-r--r-- | src/vulkan/anv_batch_chain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/anv_batch_chain.c b/src/vulkan/anv_batch_chain.c index 62189afec2f..34d7268631d 100644 --- a/src/vulkan/anv_batch_chain.c +++ b/src/vulkan/anv_batch_chain.c @@ -667,8 +667,8 @@ anv_cmd_buffer_end_batch_buffer(struct anv_cmd_buffer *cmd_buffer) * probably better of simply copying it into our batch. */ cmd_buffer->exec_mode = ANV_CMD_BUFFER_EXEC_MODE_EMIT; - } else if (cmd_buffer->opt_flags & - VK_CMD_BUFFER_OPTIMIZE_NO_SIMULTANEOUS_USE_BIT) { + } else if (!(cmd_buffer->usage_flags & + VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT)) { cmd_buffer->exec_mode = ANV_CMD_BUFFER_EXEC_MODE_CHAIN; /* When we chain, we need to add an MI_BATCH_BUFFER_START command |