summaryrefslogtreecommitdiff
path: root/source/val/validate_image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/val/validate_image.cpp')
-rw-r--r--source/val/validate_image.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/val/validate_image.cpp b/source/val/validate_image.cpp
index f2be9dca..3f3f623a 100644
--- a/source/val/validate_image.cpp
+++ b/source/val/validate_image.cpp
@@ -118,7 +118,7 @@ bool IsImplicitLod(SpvOp opcode) {
return true;
default:
break;
- };
+ }
return false;
}
@@ -135,7 +135,7 @@ bool IsExplicitLod(SpvOp opcode) {
return true;
default:
break;
- };
+ }
return false;
}
@@ -154,7 +154,7 @@ bool IsProj(SpvOp opcode) {
return true;
default:
break;
- };
+ }
return false;
}
@@ -227,7 +227,7 @@ spv_result_t ValidateImageOperands(ValidationState_t& _,
return _.diag(SPV_ERROR_INVALID_DATA, inst)
<< "Image Operands Offset, ConstOffset, ConstOffsets cannot be used "
<< "together";
- };
+ }
const bool is_implicit_lod = IsImplicitLod(opcode);
const bool is_explicit_lod = IsExplicitLod(opcode);
@@ -238,7 +238,7 @@ spv_result_t ValidateImageOperands(ValidationState_t& _,
if (!is_implicit_lod) {
return _.diag(SPV_ERROR_INVALID_DATA, inst)
<< "Image Operand Bias can only be used with ImplicitLod opcodes";
- };
+ }
const uint32_t type_id = _.GetTypeId(inst->word(word_index++));
if (!_.IsFloatScalarType(type_id)) {
@@ -265,7 +265,7 @@ spv_result_t ValidateImageOperands(ValidationState_t& _,
return _.diag(SPV_ERROR_INVALID_DATA, inst)
<< "Image Operand Lod can only be used with ExplicitLod opcodes "
<< "and OpImageFetch";
- };
+ }
if (mask & SpvImageOperandsGradMask) {
return _.diag(SPV_ERROR_INVALID_DATA, inst)
@@ -305,7 +305,7 @@ spv_result_t ValidateImageOperands(ValidationState_t& _,
if (!is_explicit_lod) {
return _.diag(SPV_ERROR_INVALID_DATA, inst)
<< "Image Operand Grad can only be used with ExplicitLod opcodes";
- };
+ }
const uint32_t dx_type_id = _.GetTypeId(inst->word(word_index++));
const uint32_t dy_type_id = _.GetTypeId(inst->word(word_index++));
@@ -465,7 +465,7 @@ spv_result_t ValidateImageOperands(ValidationState_t& _,
return _.diag(SPV_ERROR_INVALID_DATA, inst)
<< "Image Operand MinLod can only be used with ImplicitLod "
<< "opcodes or together with Image Operand Grad";
- };
+ }
const uint32_t type_id = _.GetTypeId(inst->word(word_index++));
if (!_.IsFloatScalarType(type_id)) {
@@ -1281,7 +1281,7 @@ spv_result_t ValidateImageQuerySizeLod(ValidationState_t& _,
default:
return _.diag(SPV_ERROR_INVALID_DATA, inst)
<< "Image 'Dim' must be 1D, 2D, 3D or Cube";
- };
+ }
if (info.multisampled != 0) {
return _.diag(SPV_ERROR_INVALID_DATA, inst) << "Image 'MS' must be 0";
@@ -1352,7 +1352,7 @@ spv_result_t ValidateImageQuerySize(ValidationState_t& _,
default:
return _.diag(SPV_ERROR_INVALID_DATA, inst)
<< "Image 'Dim' must be Buffer, 2D, 3D or Rect";
- };
+ }
if (info.multisampled != 0) {