@@ -38,7 +38,6 @@ namespace opt {
38
38
39
39
namespace {
40
40
constexpr uint32_t kOpTypeFloatSizeIndex = 0 ;
41
- constexpr uint32_t kOpEntryPointExecutionModelIndex = 0 ;
42
41
constexpr uint32_t kOpTypePointerStorageClassIndex = 0 ;
43
42
constexpr uint32_t kTypeArrayTypeIndex = 0 ;
44
43
constexpr uint32_t kOpTypeScalarBitWidthIndex = 0 ;
@@ -169,30 +168,6 @@ static std::optional<spv::Capability> Handler_OpTypeFloat_Float64(
169
168
return size == 64 ? std::optional (spv::Capability::Float64) : std::nullopt ;
170
169
}
171
170
172
- static std::optional<spv::Capability> Handler_OpEntryPoint_Geometry (
173
- const Instruction* instruction) {
174
- assert (instruction->opcode () == spv::Op::OpEntryPoint &&
175
- " This handler only support OpEntryPoint opcodes." );
176
-
177
- auto execution_model = spv::ExecutionModel (
178
- instruction->GetSingleWordInOperand (kOpEntryPointExecutionModelIndex ));
179
- return execution_model == spv::ExecutionModel::Geometry
180
- ? std::optional (spv::Capability::Geometry)
181
- : std::nullopt ;
182
- }
183
-
184
- static std::optional<spv::Capability>
185
- Handler_OpConditionalEntryPointINTEL_Geometry (const Instruction* instruction) {
186
- assert (instruction->opcode () == spv::Op::OpConditionalEntryPointINTEL &&
187
- " This handler only support OpConditionalEntryPointINTEL opcodes." );
188
-
189
- auto execution_model =
190
- spv::ExecutionModel (instruction->GetSingleWordInOperand (1 ));
191
- return execution_model == spv::ExecutionModel::Geometry
192
- ? std::optional (spv::Capability::Geometry)
193
- : std::nullopt ;
194
- }
195
-
196
171
static std::optional<spv::Capability>
197
172
Handler_OpTypePointer_StorageInputOutput16 (const Instruction* instruction) {
198
173
assert (instruction->opcode () == spv::Op::OpTypePointer &&
@@ -466,8 +441,6 @@ constexpr std::array<std::pair<spv::Op, OpcodeHandler>, 16> kOpcodeHandlers{{
466
441
{spv::Op::OpTypePointer, Handler_OpTypePointer_StorageUniform16},
467
442
{spv::Op::OpTypePointer, Handler_OpTypePointer_StorageUniformBufferBlock16},
468
443
{spv::Op::OpTypePointer, Handler_OpTypePointer_StorageBuffer16BitAccess},
469
- {spv::Op::OpEntryPoint, Handler_OpEntryPoint_Geometry },
470
- {spv::Op::OpConditionalEntryPointINTEL, Handler_OpConditionalEntryPointINTEL_Geometry },
471
444
// clang-format on
472
445
}};
473
446
0 commit comments