Skip to content

Commit

Permalink
SpirvShader: Handle OpTypeRuntimeArray in WalkAccessChain.
Browse files Browse the repository at this point in the history
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/+/26553
Tested-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
  • Loading branch information
ben-clayton committed Mar 11, 2019
1 parent f2ddde7 commit fa8603c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Pipeline/SpirvShader.cpp
Expand Up @@ -719,7 +719,9 @@ namespace sw
case spv::OpTypeVector:
case spv::OpTypeMatrix:
case spv::OpTypeArray:
case spv::OpTypeRuntimeArray:
{
// TODO: b/127950082: Check bounds.
auto stride = getType(type.element).sizeInComponents;
auto & obj = getObject(indexIds[i]);
if (obj.kind == Object::Kind::Constant)
Expand Down

0 comments on commit fa8603c

Please sign in to comment.