Summary: | [Master of Orion] Shader compile error: no matching function for call to `texture2DLod(sampler2D, vec2, float)'; | ||
---|---|---|---|
Product: | Mesa | Reporter: | Andreas Schultes <andreas.schultes> |
Component: | glsl-compiler | Assignee: | mesa-dev |
Status: | RESOLVED NOTOURBUG | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=99419 | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | render_error |
Description
Andreas Schultes
2017-01-20 21:41:18 UTC
Are you sure that the GLSL version is 1.30? i.e. do those shaders have a #version 130 at the top? If not, they get GLSL version 1.10, which does not have those functions. You can force it globally with force_glsl_version=130 in case you're working around buggy shaders. GLSL 1.30 does not include texture2DLod(). The function is called textureLod() in #version 130. Sorry, nevermind that - it exists in 1.30, it's just deprecated. Should work though. Thanks, I did a new run with apitrace and the shader compile error didn't appear. This could be a missing #version 130. But still rendering errors in the game. I'll do further investigations. I think this bug could be closed. On the first apitrace with the error there was a GL state of a GLSL version, which says it is 130. I'll check that tomorrow. Inserting "#version 130" fix this bug. https://www.opengl.org/registry/doc/GLSLangSpec.Full.1.30.10.pdf on page 12. tells that a #version is required to use version 130. (In reply to Andreas Schultes from comment #5) > Inserting "#version 130" fix this bug. > https://www.opengl.org/registry/doc/GLSLangSpec.Full.1.30.10.pdf on page 12. > tells that a #version is required to use version 130. FWIW it should be available in vertex shaders starting with GLSL 1.10 (no #version) required. But to use in fragment shaders, you either need #version 130 or #extension ARB_shader_texture_lod: require. Does the shader failing to compile make any noticable rendering difference? I couldn't tell a difference... Created attachment 129089 [details]
render_error
I attached a screenshot of the render error, but I can't say if it belongs to this shader. I have problems to get running a apitrace with steam. Without steam the game stops before the main menu.
I got an apitrace now. The rendering error isn't related to this shader. Also it seems not to be a render error. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.