break;
case SpvDecorationPatch:
- unreachable("Tessellation not yet supported");
+ vtn_warn("Tessellation not yet supported");
+ break;
case SpvDecorationSpecId:
case SpvDecorationBlock:
case SpvDecorationDescriptorSet:
case SpvDecorationNoContraction:
case SpvDecorationInputAttachmentIndex:
- unreachable("Decoration not allowed on struct members");
+ vtn_warn("Decoration not allowed on struct members: %s",
+ spirv_decoration_to_string(dec->decoration));
+ break;
case SpvDecorationXfbBuffer:
case SpvDecorationXfbStride:
- unreachable("Vulkan does not have transform feedback");
+ vtn_warn("Vulkan does not have transform feedback");
+ break;
case SpvDecorationCPacked:
case SpvDecorationSaturatedConversion:
case SpvDecorationFPRoundingMode:
case SpvDecorationFPFastMathMode:
case SpvDecorationAlignment:
- unreachable("Decoraiton only allowed for CL-style kernels");
+ vtn_warn("Decoraiton only allowed for CL-style kernels: %s",
+ spirv_decoration_to_string(dec->decoration));
+ break;
default:
unreachable("Unhandled member decoration");
case SpvDecorationOffset:
case SpvDecorationXfbBuffer:
case SpvDecorationXfbStride:
- unreachable("Decoraiton only allowed for struct members");
+ vtn_warn("Decoraiton only allowed for struct members: %s",
+ spirv_decoration_to_string(dec->decoration));
+ break;
case SpvDecorationRelaxedPrecision:
case SpvDecorationSpecId:
case SpvDecorationLinkageAttributes:
case SpvDecorationNoContraction:
case SpvDecorationInputAttachmentIndex:
- unreachable("Decoraiton not allowed on types");
+ vtn_warn("Decoraiton not allowed on types: %s",
+ spirv_decoration_to_string(dec->decoration));
+ break;
case SpvDecorationCPacked:
case SpvDecorationSaturatedConversion:
case SpvDecorationFPRoundingMode:
case SpvDecorationFPFastMathMode:
case SpvDecorationAlignment:
- unreachable("Decoraiton only allowed for CL-style kernels");
+ vtn_warn("Decoraiton only allowed for CL-style kernels: %s",
+ spirv_decoration_to_string(dec->decoration));
+ break;
}
}
case SpvCapabilityInterpolationFunction:
case SpvCapabilityMultiViewport:
break;
+
case SpvCapabilityClipDistance:
case SpvCapabilityCullDistance:
case SpvCapabilityGeometryStreams:
- /* glslang sometimes throws these at us even though it doesn't
- * actually use the associated variable.
- */
- fprintf(stderr, "WARNING: Unsupported SPIR-V Capability\n");
- break;
case SpvCapabilityTessellation:
case SpvCapabilityTessellationPointSize:
case SpvCapabilityLinkage:
case SpvCapabilityTransformFeedback:
case SpvCapabilityStorageImageReadWithoutFormat:
case SpvCapabilityStorageImageWriteWithoutFormat:
- unreachable("Unsupported SPIR-V Capability");
+ vtn_warn("Unsupported SPIR-V capability: %s",
+ spirv_capability_to_string(cap));
break;
case SpvCapabilityAddresses:
case SpvCapabilityDeviceEnqueue:
case SpvCapabilityLiteralSampler:
case SpvCapabilityGenericPointer:
- unreachable("Unsupported OpenCL-style Capability");
+ vtn_warn("Unsupported OpenCL-style SPIR-V capability: %s",
+ spirv_capability_to_string(cap));
break;
}
break;
*/
#include "vtn_private.h"
+#include "spirv_info.h"
static struct vtn_access_chain *
vtn_access_chain_extend(struct vtn_builder *b, struct vtn_access_chain *old,
break; /* Do nothing with these here */
case SpvDecorationPatch:
- unreachable("Tessellation not yet supported");
+ vtn_warn("Tessellation not yet supported");
+ break;
case SpvDecorationLocation:
unreachable("Handled above");
case SpvDecorationDescriptorSet:
case SpvDecorationNoContraction:
case SpvDecorationInputAttachmentIndex:
- unreachable("Decoration not allowed for variable or structure member");
+ vtn_warn("Decoration not allowed for variable or structure member: %s",
+ spirv_decoration_to_string(dec->decoration));
+ break;
case SpvDecorationXfbBuffer:
case SpvDecorationXfbStride:
- unreachable("Vulkan does not have transform feedback");
+ vtn_warn("Vulkan does not have transform feedback: %s",
+ spirv_decoration_to_string(dec->decoration));
+ break;
case SpvDecorationCPacked:
case SpvDecorationSaturatedConversion:
case SpvDecorationFPRoundingMode:
case SpvDecorationFPFastMathMode:
case SpvDecorationAlignment:
- unreachable("Decoraiton only allowed for CL-style kernels");
+ vtn_warn("Decoraiton only allowed for CL-style kernels: %s",
+ spirv_decoration_to_string(dec->decoration));
+ break;
}
}