-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autodetect GLES version #9655
base: main
Are you sure you want to change the base?
Autodetect GLES version #9655
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a horrible idea, don't do this.
I know that this is a terrible idea.. But at least this would increase compatibility. Any particular reason you're against this? (Other than unpredictability) |
this is just wrong, and there is no reason to put version to 320 if the shader does well at 300. Instead, just make it 300 if we don't use any 310 / 320 features. |
You could do that, But PR guidelines state "no hacks" imo that's not a solution but a hack |
That being said i've just tested these changes with some shaders on a few of my hardware and it works on all of them so i'm gonna say this works afaik. Tested on: Orange Pi 5 Plus OnePlus 6T So as far as i'm aware shaders and color management should work fine everywhere. |
Does it solve any issue caused by "incorrect" version? "Works fine" or "we hope it'll work fine" doesn't mean it'll work better. |
Yes it allows the use of shaders on non 3.2 capable machines
I mean so far this got rid of that annoying warning, Prevents compilation errors, And allows for shader usage which i guess is better than not having that.
As stated above, I've tested this on a few devices that have different versions of supported GLES. If you were talking about the performance hit then yeah sure idrc about forcing 3.0 if 3.2 is supported. |
Isn't this the same as setting |
Fine, Screw it. |
Use GLES 3.0 for compatibility reasons.
I went to buy milk but now i'm back with the commit. Dear @vaxerski have a look will ya? |
this is still wrong. You can't change the gles version we run, as we offer 320 compat for screen shaders. |
Seems to work fine with 300 es #9600. 320 was picked because it was already used for custom screen shaders. |
Describe your PR, what does it fix/add?
This should automatically use the highest available version of GLES.
Should be fine for GLES 3.x es since nothing major changed between the versions, IE it should be compatible.
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Haven't tested screen shaders or cm since i don't have one available on hand but should be all good according to logs.
I feel like this could be done better, LMK if there's any changes needed.
Is it ready for merging, or does it need work?
Ready to be merged.
Final words:
Vaxry if you're going to do Embedded System stuff at least support it properly.
As a man who plays with this stuff daily i feel like i have a say on this.