Update GrVkRenderTarget to store both stencil & non-stencil render passes (for real)
This is to allow reuse of a Vk render target in both stencil and non-stencil use cases.
Change-Id: Ic35285e66c173db7c0bf6440d95549cf1371ed43
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/291077
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrProgramInfo.h b/src/gpu/GrProgramInfo.h
index 373b3bb..f8ce3fc 100644
--- a/src/gpu/GrProgramInfo.h
+++ b/src/gpu/GrProgramInfo.h
@@ -49,6 +49,7 @@
int numSamples() const { return fNumSamples; }
int numStencilSamples() const { return fNumStencilSamples; }
+ bool isStencilEnabled() const { return fPipeline->isStencilEnabled(); }
int numRasterSamples() const {
return fPipeline->isStencilEnabled() ? fNumStencilSamples : fNumSamples;