Texture views on blits ignore formats
Calling BlitFramebuffer
(and DSA friends) ignores the attached texture views format and seems to use the underlying texture format. Here is a WGL apitrace reproducing the issue and a Windows executable. Here's the source for anyone interested, I can write a glx equivalent if it's needed.
We managed to reproduce the issue with radeonsi, llvmpipe, and zink-wip. I haven't tried it on other proprietary drivers aside from Nvidia, mostly because Intel and AMD proprietary drivers always get texture view formats wrong.
This repro case tries to be a reduced version of https://github.com/yuzu-emu/yuzu/issues/5145
The expected output is something like:
the current output is:
Thanks to toastUnlimited for helping me test this on mesa.