Commit a1924739 by Ben Clayton

SpirvShader: Fix variable construction of non input/output storage.

I incorrectly (9a16248d) added an UNIMPLEMENTED to variables that have a storage type that is neither Input or Output. However, other storage types do actually work. Revert that change. Change-Id: I5ec36e9d6d536dcdd085c93e9f00782310e118d4 Reviewed-on: https://swiftshader-review.googlesource.com/c/25848Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent cff8c00a
......@@ -133,14 +133,9 @@ namespace sw
object.pointerBase = insn.word(2); // base is itself
// Register builtins
switch (storageClass)
if (storageClass == spv::StorageClassInput || storageClass == spv::StorageClassOutput)
{
case spv::StorageClassInput:
case spv::StorageClassOutput:
ProcessInterfaceVariable(object);
break;
default:
UNIMPLEMENTED("Unhandled storage class %d for OpVariable", (int)storageClass);
ProcessInterfaceVariable(object);
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment