-
Notifications
You must be signed in to change notification settings - Fork 219
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
Glsl override for nouveau #681
base: rolling
Are you sure you want to change the base?
Conversation
Signed-off-by: Piotr Jaroszek <piotr.jaroszek@robotec.ai>
Signed-off-by: Piotr Jaroszek <piotr.jaroszek@robotec.ai>
Looks like the The question rises, are nvidia drivers working as they intended to (GL 4.6 with GLSL>=150) and the other drivers are somewhat misleading (GL 4.6 but without GLSL>=150) - or - nvidia do what it shouldn't be able to and other drivers are actually working correctly? I'm still looking into it. |
Signed-off-by: Piotr Jaroszek <piotr.jaroszek@robotec.ai>
Since this is still being looked into, I'm actually going to convert it to a draft. Feel free to convert back when it is ready. |
|
||
#ifdef __linux__ | ||
// TODO(pijaro): Nouveanu and Intel drivers don't support glsl150 even if they "should". | ||
// We fix version to 120 since this is the one we are currently using in materials. |
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.
There is an issue with Nouveau drivers with glsl150 shaders (introduced in PR #668).
It looks like Nouveau can't use GLSL 1.50 programs, even if the driver reports that it supports even newer version of GLSL.
Proposed piece of code is a workaround for Nouveau driver users in linux. It sets the rviz glsl version to 1.20 which works fine (but is slower than 1.50).