aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLSPIRVCodeGenerator.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-03-30 14:11:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-30 19:39:20 +0000
commit8feeff929e57ea63914213f3b14d8f00b287a0ad (patch)
tree862f9e61d90514df70a0ce6eda3bcb03aac36c81 /src/sksl/SkSLSPIRVCodeGenerator.h
parentc9807b84285c10da66130d367fc7f1dae5c73f51 (diff)
fixed skslc SPIR-V memory error
BUG=skia:6446 Change-Id: Ibc55124db60d6a05964ddcd02d285e313379f93e Reviewed-on: https://skia-review.googlesource.com/10756 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLSPIRVCodeGenerator.h')
-rw-r--r--src/sksl/SkSLSPIRVCodeGenerator.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sksl/SkSLSPIRVCodeGenerator.h b/src/sksl/SkSLSPIRVCodeGenerator.h
index 1cdc653c85..ea160b195d 100644
--- a/src/sksl/SkSLSPIRVCodeGenerator.h
+++ b/src/sksl/SkSLSPIRVCodeGenerator.h
@@ -74,7 +74,8 @@ public:
, fBoolTrue(0)
, fBoolFalse(0)
, fSetupFragPosition(false)
- , fCurrentBlock(0) {
+ , fCurrentBlock(0)
+ , fSynthetics(nullptr, errors) {
this->setupIntrinsics();
}
@@ -299,6 +300,8 @@ private:
std::stack<SpvId> fContinueTarget;
SpvId fRTHeightStructId = (SpvId) -1;
SpvId fRTHeightFieldIndex = (SpvId) -1;
+ // holds variables synthesized during output, for lifetime purposes
+ SymbolTable fSynthetics;
friend class PointerLValue;
friend class SwizzleLValue;