749cbeb814
This should fix the Vulkan validation warnings about have a render pass with a 0 area bounds. There are times in Skia (when not doing reduced op list splitting), where we get a new offscreen surface, discard it, then get a second offscreen before submitting any draws to the first yet. This causes us to have an OpsTask for the first with a discard load but no ops. When we get back to this first surface to add real ops it will have a load load. Correctness wise we could drop the first OpsTask since it doesn't have any affect (what the validation warning in this bug is referring to). This original workaround was there to appease a different vulkan validation warning about loading unitialized memory at the start of a render pass. If we drop the discard then the validation would complain the load (on the second OpsTask) was happening on unitialized memory. However, with the workaround removed I no longer am getting such a warning both with and without reducedOpListSplitting. So either we are now avoiding this case via something else higher up or maybe this warning was removed from the validation. Or I just can't get a good test case for it. It does not repro running Skia gm or tests, or running chromes test case for the 0 area render pass bounds. Bug: chromium:1279794 Change-Id: I11ad5ce4e0000da74805a4cd9a0a9207d5adf60a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/484562 Auto-Submit: Greg Daniel <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com> |
||
---|---|---|
animations | ||
bazel | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
client_utils/android | ||
demos.skia.org | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
toolchain | ||
tools | ||
.bazelrc | ||
.bazelversion | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
.vpython | ||
AUTHORS | ||
BUILD.bazel | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
DIR_METADATA | ||
go_repositories.bzl | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt | ||
WORKSPACE.bazel |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.