From e03b9d14a1f1d35d127ca60df2471b59d1eb4625 Mon Sep 17 00:00:00 2001 From: Jim Van Verth Date: Fri, 11 Feb 2022 12:44:00 -0500 Subject: [PATCH] [graphite] Store isFBOnly flag in samplesKey Change-Id: I409dbac3d8548551722e74e86e67bc7b3620f506 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/507838 Reviewed-by: Robert Phillips Commit-Queue: Jim Van Verth Reviewed-by: Greg Daniel --- experimental/graphite/src/mtl/MtlCaps.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experimental/graphite/src/mtl/MtlCaps.mm b/experimental/graphite/src/mtl/MtlCaps.mm index 0e5bf21c2b..a7145b4be7 100644 --- a/experimental/graphite/src/mtl/MtlCaps.mm +++ b/experimental/graphite/src/mtl/MtlCaps.mm @@ -455,7 +455,7 @@ void Caps::buildKeyForTexture(SkISize dimensions, (static_cast(isProtected) << 4) | (static_cast(mtlSpec.fUsage) << 5) | (static_cast(mtlSpec.fStorageMode) << 10)| - (static_cast(mtlSpec.fStorageMode) << 12); + (static_cast(isFBOnly) << 12); }