aboutsummaryrefslogtreecommitdiff
path: root/layers
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2018-04-13 15:24:13 -0600
committerTobin Ehlis <tobine@google.com>2018-04-17 09:38:34 -0600
commit3d548f222fed040cdeb7f49ab69422f4f66fa64e (patch)
tree30efcb7c03d81ed9edadd24f58ee04a5082c2977 /layers
parentc83d6a377a91e496ccaf55dba78f29bf4e7c30ee (diff)
downloadusermoji-3d548f222fed040cdeb7f49ab69422f4f66fa64e.tar.xz
layers:Update comments to avoid compiler warnings
The simple "// fall through" comment causes the compiler to omit a warning.
Diffstat (limited to 'layers')
-rw-r--r--layers/buffer_validation.cpp10
-rw-r--r--layers/descriptor_sets.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/layers/buffer_validation.cpp b/layers/buffer_validation.cpp
index 6880e4c8..7be395e8 100644
--- a/layers/buffer_validation.cpp
+++ b/layers/buffer_validation.cpp
@@ -1175,10 +1175,10 @@ static bool RegionIntersects(const VkImageCopy *rgn0, const VkImageCopy *rgn1, V
switch (type) {
case VK_IMAGE_TYPE_3D:
result &= RangesIntersect(rgn0->srcOffset.z, rgn0->extent.depth, rgn1->dstOffset.z, rgn1->extent.depth);
- // Intentionally fall through to 2D case
+ // fall through
case VK_IMAGE_TYPE_2D:
result &= RangesIntersect(rgn0->srcOffset.y, rgn0->extent.height, rgn1->dstOffset.y, rgn1->extent.height);
- // Intentionally fall through to 1D case
+ // fall through
case VK_IMAGE_TYPE_1D:
result &= RangesIntersect(rgn0->srcOffset.x, rgn0->extent.width, rgn1->dstOffset.x, rgn1->extent.width);
break;
@@ -1365,11 +1365,11 @@ static inline bool CheckItgExtent(layer_data *device_data, const GLOBAL_CB_NODE
case VK_IMAGE_TYPE_3D:
z_ok = ((0 == SafeModulo(extent->depth, granularity->depth)) ||
(subresource_extent->depth == offset_extent_sum.depth));
- // Intentionally fall through to 2D case
+ // fall through
case VK_IMAGE_TYPE_2D:
y_ok = ((0 == SafeModulo(extent->height, granularity->height)) ||
(subresource_extent->height == offset_extent_sum.height));
- // Intentionally fall through to 1D case
+ // fall through
case VK_IMAGE_TYPE_1D:
x_ok = ((0 == SafeModulo(extent->width, granularity->width)) ||
(subresource_extent->width == offset_extent_sum.width));
@@ -2977,7 +2977,7 @@ bool ValidateLayouts(core_validation::layer_data *device_data, VkDevice device,
} else {
// Intentionally fall through to generic error message
}
-
+ // fall through
default:
// No other layouts are acceptable
skip |= log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, 0,
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp
index d9b23da3..f77af8fb 100644
--- a/layers/descriptor_sets.cpp
+++ b/layers/descriptor_sets.cpp
@@ -1884,8 +1884,8 @@ bool cvdescriptorset::DescriptorSet::VerifyWriteUpdateContents(const VkWriteDesc
return false;
}
}
- // Intentional fall-through to validate sampler
}
+ // fall through
case VK_DESCRIPTOR_TYPE_SAMPLER: {
for (uint32_t di = 0; di < update->descriptorCount; ++di) {
if (!descriptors_[index + di].get()->IsImmutableSampler()) {