diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2018-05-11 13:16:03 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-11 17:56:47 +0000 |
commit | 811b944a89602d4466ea273b565642639d2a95c0 (patch) | |
tree | 99c8dcd8a63455bc015ece1c7e76dba89d553449 /src/sksl | |
parent | 79bf7ac3f439b3fa8d6b807ebb5d44f9969fa60c (diff) |
fixed incorrect index in SPIR-V matrix construction
Bug: skia:7908
Change-Id: I990e5f6e84afdc81d340f433d93a9061b9dd67ef
Reviewed-on: https://skia-review.googlesource.com/127397
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl')
-rw-r--r-- | src/sksl/SkSLSPIRVCodeGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sksl/SkSLSPIRVCodeGenerator.cpp b/src/sksl/SkSLSPIRVCodeGenerator.cpp index 1cbe4c0920..0e20b93c44 100644 --- a/src/sksl/SkSLSPIRVCodeGenerator.cpp +++ b/src/sksl/SkSLSPIRVCodeGenerator.cpp @@ -1252,7 +1252,7 @@ SpvId SPIRVCodeGenerator::writeMatrixConstructor(const Constructor& c, OutputStr currentColumn.push_back(arguments[i]); } else { SpvId componentType = this->getType(c.fArguments[i]->fType.componentType()); - for (int j = 0; j < c.fArguments[j]->fType.columns(); ++j) { + for (int j = 0; j < c.fArguments[i]->fType.columns(); ++j) { SpvId swizzle = this->nextId(); this->writeInstruction(SpvOpCompositeExtract, componentType, swizzle, arguments[i], j, out); |