Store the correct number of samples in GrProgramInfo
Bug: skia:11396
Change-Id: I9480b89635bd7a6bdff8ab4876c8eeafdbc27c8b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/442096
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/ops/GrSimpleMeshDrawOpHelper.cpp b/src/gpu/ops/GrSimpleMeshDrawOpHelper.cpp
index a6fb1b2..538f305 100644
--- a/src/gpu/ops/GrSimpleMeshDrawOpHelper.cpp
+++ b/src/gpu/ops/GrSimpleMeshDrawOpHelper.cpp
@@ -166,6 +166,7 @@
const GrCaps* caps,
SkArenaAlloc* arena,
const GrSurfaceProxyView& writeView,
+ bool usesMSAASurface,
GrAppliedClip&& appliedClip,
const GrDstProxyView& dstProxyView,
GrGeometryProcessor* geometryProcessor,
@@ -183,19 +184,23 @@
std::move(processorSet),
pipelineFlags);
- return CreateProgramInfo(arena, pipeline, writeView, geometryProcessor, primitiveType,
- renderPassXferBarriers, colorLoadOp, stencilSettings);
+ return CreateProgramInfo(caps, arena, pipeline, writeView, usesMSAASurface, geometryProcessor,
+ primitiveType, renderPassXferBarriers, colorLoadOp, stencilSettings);
}
-GrProgramInfo* GrSimpleMeshDrawOpHelper::CreateProgramInfo(SkArenaAlloc* arena,
+GrProgramInfo* GrSimpleMeshDrawOpHelper::CreateProgramInfo(const GrCaps* caps,
+ SkArenaAlloc* arena,
const GrPipeline* pipeline,
const GrSurfaceProxyView& writeView,
+ bool usesMSAASurface,
GrGeometryProcessor* geometryProcessor,
GrPrimitiveType primitiveType,
GrXferBarrierFlags xferBarrierFlags,
GrLoadOp colorLoadOp,
const GrUserStencilSettings* stencilSettings) {
- auto tmp = arena->make<GrProgramInfo>(writeView,
+ auto tmp = arena->make<GrProgramInfo>(*caps,
+ writeView,
+ usesMSAASurface,
pipeline,
stencilSettings,
geometryProcessor,
@@ -210,6 +215,7 @@
const GrCaps* caps,
SkArenaAlloc* arena,
const GrSurfaceProxyView& writeView,
+ bool usesMSAASurface,
GrAppliedClip&& appliedClip,
const GrDstProxyView& dstProxyView,
GrGeometryProcessor* gp,
@@ -219,6 +225,7 @@
return CreateProgramInfo(caps,
arena,
writeView,
+ usesMSAASurface,
std::move(appliedClip),
dstProxyView,
gp,