glamor: Don't forbid GLES contexts#1853
Conversation
|
@notbabaisyou ping |
If this ever causes problems, we can fix this code then. The "error case" that this code is trying to prevent happens even when using GL contexts. From my testing, all this code does is forbid GLES contexts, which work just fine without this filter. See: https://gitlab.freedesktop.org/xorg/xserver/-/commit/8702c938b33b9ec180d64754eb922515c7c4a98b for the commit that introduced this code. Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
22bb8b5 to
422ea6f
Compare
|
Which error case was being triggered on a GLES context? And what hardware was this on? |
There is hardly any info about this in the commit that added this check. |
|
Was rather asking which error you were getting printed in that codeblock... |
This is with the modesetting driver, with GLES context forced: GLES contexts work fine with this pr, and regular GL contexts also create such mismatch errors if I patch the check to force regular GL contexts them to also be checked. Btw, glamor's sw fallback is broken. |
|
This seems to be a NVIDIA specific issue, as they are returning You might just need to add a workaround that uses the GL format path instead. |
You mean something like this? This also works, but it just seems like it would be adding hacks. |
|
Had something like notbabaisyou@2a5e17a in mind. Could also have the code just flip the expected format for NVIDIA only on the GLES path like: |
That would be a vendor-specific hack, and would only work with the xfree86 X server. |
Yes, it would be, GLAMOR already has vendor-specific hacks.
Huh? What do you mean by this? |
The "main" X server, the one at |
|
Ah, I see what you mean, you could just have the |
If this ever causes problems, we can fix this code then.
The "error case" that this code is trying to prevent happens even when using GL contexts.
From my testing, all this code does is forbid GLES contexts, which work just fine without this filter.
See: https://gitlab.freedesktop.org/xorg/xserver/-/commit/8702c938b33b9ec180d64754eb922515c7c4a98b for the commit that introduced this code.