DirectGLES: emulate a same-image glBlitFramebuffer through a scratch copy (red-once: without it ATextureBlittedWithinItselfIsSampledByTheNextDraw fails on DirectGLES and DirectGLES.Split).

This commit is contained in:
2026-10-09 12:54:22 -04:00
parent db346f2844
commit 2bbb67e528
2 changed files with 319 additions and 3 deletions
@@ -217,9 +217,7 @@ TEST_F(PassOrderScenario, ATextureCopiedIntoIsSampledByTheNextDraw) {
TEST_F(PassOrderScenario, ATextureBlittedWithinItselfIsSampledByTheNextDraw) {
if (!Ready() || IsSkipped()) return;
// GL allows a blit between non-overlapping regions of one image; ES 3.x makes identical read
// and draw buffers GL_INVALID_OPERATION, and DirectGLES forwards the blit to the driver as is,
// so the blit is dropped there (a DirectGLES conformance gap of its own, not this case's subject).
if (Gl().BackendName() == "DirectGLES") GTEST_SKIP() << "DirectGLES does not emulate a same-image blit";
// and draw buffers GL_INVALID_OPERATION, so DirectGLES stages the source through a scratch copy.
const GLuint texture = NewTexture(kSize, kSize, red);
const GLuint fbo = NewFramebuffer(texture);
glFinish();