aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2017-05-09 10:22:14 -0600
committerTobin Ehlis <tobine@google.com>2017-05-09 10:32:37 -0600
commit449d28aab53abf93e97f860f33921d79e517c9a1 (patch)
tree63fb1f5f1ad09a7397a8616310ed6fee65223baf /layers/core_validation.cpp
parentfdc90a93e894c90656cc900b5ea8188381a57b71 (diff)
downloadusermoji-449d28aab53abf93e97f860f33921d79e517c9a1.tar.xz
layers:Fix cut-and-paste bug
From Mikko at Unity, there was a cut-and-paste bug here where color counts were being used to check input attachments. Use input counts instead.
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 7c6beeb8..1fb4b52d 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -1992,9 +1992,9 @@ static bool verify_renderpass_compatibility(const layer_data *dev_data, const Vk
uint32_t secondaryInputCount = secondaryRPCI->pSubpasses[spIndex].inputAttachmentCount;
uint32_t inputMax = std::max(primaryInputCount, secondaryInputCount);
for (uint32_t i = 0; i < inputMax; ++i) {
- if (!attachment_references_compatible(i, primaryRPCI->pSubpasses[spIndex].pInputAttachments, primaryColorCount,
+ if (!attachment_references_compatible(i, primaryRPCI->pSubpasses[spIndex].pInputAttachments, primaryInputCount,
primaryRPCI->pAttachments, secondaryRPCI->pSubpasses[spIndex].pInputAttachments,
- secondaryColorCount, secondaryRPCI->pAttachments)) {
+ secondaryInputCount, secondaryRPCI->pAttachments)) {
stringstream errorStr;
errorStr << "input attachments at index " << i << " of subpass index " << spIndex << " are not compatible.";
errorMsg = errorStr.str();