Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc: Clear one copy destintation texture if size doesn't match content
Ever since crrev.com/c/3289549 landed and ANGLE robust resource init was disabled, GL shared images are strict about enforcing no uninitialized access. One copy raster doesn't explicitly clear its resources unlike GPU raster, which seems to cause an issue when non-exact resource reuse is enabled. Sometimes, we acquire a resource such that the tiles content rect is smaller than the resource size leading to the part outside the content rect being uninitialized. This CL fixes the issue by clearing the resource if its size doesn't match the full raster rect. Merely copying the difference from the staging buffer doesn't work since the staging buffer can also be of a different size than the destination resource due to a separate reuse mechanism. (cherry picked from commit ea7c4e5) Bug: 1313091 Change-Id: I460037038b68e1a404bbc474637f50405cd604fb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3574955 Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#989987} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3576712 Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Srinivas Sista <srinivassista@chromium.org> Auto-Submit: Srinivas Sista <srinivassista@chromium.org> Cr-Commit-Position: refs/branch-heads/4990@{#3} Cr-Branched-From: d749b19-refs/heads/main@{#989870}
- Loading branch information