commit | 455c212410c3a394ba2aefe38d321f858bb9affd | [log] [tgz] |
---|---|---|
author | Peter McNeeley <petermcneeley@chromium.org> | Thu Oct 13 21:49:12 2022 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Mon Oct 17 14:40:31 2022 +0000 |
tree | 52b24e4696313dde57d1864899d1c98d5938587f | |
parent | 49bd5690be4a53377625724fa4e56495ede46a80 [diff] |
Limit multi-sampling when using implicit resolve This is a case where Angle validation caught a misuse by skia. The error is triggered when trying to allocate a render buffer storage with greater number of samples than the format allows. We determine the max multisample count in skia [2] via per format caps. The incorrect usage case is that multisampling of implicit buffers uses a different set of caps than the per format multisample [3]. [1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/angle/src/libANGLE/validationES2.cpp;drc=b44e2b7a8a0df47f5a2d114d82ff8d5375e13bd7;bpv=1;bpt=1;l=6469?q=%22Samples%20must%20not%20be%20greater%20than%20maximum%20supported%20value%20for%20the%20format%22 [2] https://source.chromium.org/chromium/chromium/src/+/main:third_party/skia/src/gpu/ganesh/GrDynamicAtlas.cpp;drc=b44e2b7a8a0df47f5a2d114d82ff8d5375e13bd7;bpv=1;bpt=1;l=65?q=GrCaps.h&ss=chromium%2Fchromium%2Fsrc [3] https://developer.download.nvidia.com/opengl/specs/GL_EXT_framebuffer_multisample.txt Bug: 1353374 Change-Id: Idc686c5abe55f1dc4722eca2238a2dd9f8893878 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/590540 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>