Skip to content

Commit 71ee2ee

Browse files
committed
more s2s fixes
1 parent cff286e commit 71ee2ee

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/frontend/spirv/s2s.c

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,14 @@ static AddressSpace convert_storage_class(SpvStorageClass class) {
219219
break;
220220
case SpvStorageClassStorageBuffer: return AsShaderStorageBufferObject;
221221
case SpvStorageClassUniformConstant:
222-
case SpvStorageClassUniform: return AsGlobal; // TODO: should probably depend on CL/VK flavours!
222+
case SpvStorageClassUniform: return AsUniform; // TODO: should probably depend on CL/VK flavours!
223223
case SpvStorageClassCallableDataKHR:
224224
case SpvStorageClassIncomingCallableDataKHR:
225225
case SpvStorageClassRayPayloadKHR:
226226
case SpvStorageClassHitAttributeKHR:
227227
case SpvStorageClassIncomingRayPayloadKHR:
228228
case SpvStorageClassShaderRecordBufferKHR:
229+
return AsGeneric;
229230
break;
230231
case SpvStorageClassCodeSectionINTEL:
231232
case SpvStorageClassDeviceOnlyINTEL:
@@ -572,6 +573,24 @@ static size_t parse_spv_instruction_at(SpvParser* parser, size_t instruction_off
572573
case SpvExecutionModelTaskEXT:
573574
type = "Task";
574575
break;
576+
case SpvExecutionModelRayGenerationKHR:
577+
type = "RayGeneration";
578+
break;
579+
case SpvExecutionModelIntersectionKHR:
580+
type = "Intersection";
581+
break;
582+
case SpvExecutionModelAnyHitKHR:
583+
type = "AnyHit";
584+
break;
585+
case SpvExecutionModelClosestHitKHR:
586+
type = "ClosestHit";
587+
break;
588+
case SpvExecutionModelMissKHR:
589+
type = "Miss";
590+
break;
591+
case SpvExecutionModelCallableKHR:
592+
type = "Callable";
593+
break;
575594
default:
576595
shd_error("Unsupported execution model %d", instruction[1])
577596
}

0 commit comments

Comments
 (0)