aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2017-07-19 13:47:58 -0600
committerTobin Ehlis <tobine@google.com>2017-07-19 15:25:08 -0600
commit071ee0516183ae9d7e992efe73ec0d3c91bf1921 (patch)
treeb0f76507e8dd22e3d0fad658de8a89c2d66baf27 /layers/core_validation.cpp
parentd66529005c4095ce524ce298c97447942abe89b2 (diff)
downloadusermoji-071ee0516183ae9d7e992efe73ec0d3c91bf1921.tar.xz
tests:Test invalid renderPass bufferMemoryBarrier
Test case where VkBufferMemoryBarrier is incorrectly issued within a renderPass. Kill old code that was doing the same check/test w/o the VUID.
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 1f7ff3b0..19c68420 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -6354,11 +6354,6 @@ static bool ValidateBarriers(layer_data *device_data, const char *funcName, GLOB
for (uint32_t i = 0; i < bufferBarrierCount; ++i) {
auto mem_barrier = &pBufferMemBarriers[i];
- if (cb_state->activeRenderPass) {
- skip |= log_msg(device_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT,
- HandleToUint64(cb_state->commandBuffer), __LINE__, DRAWSTATE_INVALID_BARRIER, "DS",
- "%s: Buffer Barriers cannot be used during a render pass.", funcName);
- }
if (!mem_barrier) continue;
// Validate buffer barrier queue family indices