I'm not even sure what you're trying to fix. As far as I can tell, that test is making a perfectly valid sequence of calls. If a particular driver fails on that, it is a bug in the driver.
On 08/25/2018 12:29 PM, Ernestas Kulik wrote: > Actually, scratch that, I must have been high when I wrote the commit > message. > > Even though the fix for BadMatch is probably correct, glClear() is > obviously called for both drawables, but switching them between drawing > and reading seems to result in discarded framebuffers or somesuch (in > i965 they are straight up null, unlike swrast, but the issue manifests > there as well). > > _______________________________________________ > Piglit mailing list > Piglit@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/piglit _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit