Commit fa8603c6 by Ben Clayton

SpirvShader: Handle OpTypeRuntimeArray in WalkAccessChain.

Fixes tests that turned from PASS -> CRASH by adding compute shader support. Bug: b/120799499 Change-Id: I72190eef98223851cba3d61a98d54ab2f6e2a0a7 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26553Tested-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com>
parent f2ddde73
...@@ -719,7 +719,9 @@ namespace sw ...@@ -719,7 +719,9 @@ namespace sw
case spv::OpTypeVector: case spv::OpTypeVector:
case spv::OpTypeMatrix: case spv::OpTypeMatrix:
case spv::OpTypeArray: case spv::OpTypeArray:
case spv::OpTypeRuntimeArray:
{ {
// TODO: b/127950082: Check bounds.
auto stride = getType(type.element).sizeInComponents; auto stride = getType(type.element).sizeInComponents;
auto & obj = getObject(indexIds[i]); auto & obj = getObject(indexIds[i]);
if (obj.kind == Object::Kind::Constant) if (obj.kind == Object::Kind::Constant)
......
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