Summary: | Compiler diagnostic for sampler declared as "out" parameter of function is terrible | ||
---|---|---|---|
Product: | Mesa | Reporter: | xinghua <xinghua.cao> |
Component: | glsl-compiler | Assignee: | mesa-dev |
Status: | RESOLVED MOVED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | sergii.romantsov, yunchao.he |
Version: | 17.1 | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | source code |
Description
xinghua
2018-06-22 07:51:40 UTC
Created attachment 140273 [details]
source code
The problem is dst is marked as an "out" parameter of the function. sampler variables cannot be assigned, so it's impossible for it to be an out parameter. Deleting "out" allows the shader to compile. Sadly, the compiler error message is useless for debugging that problem. (In reply to Ian Romanick from comment #2) > sampler variables cannot be assigned, so it's impossible for it to be an out > parameter. FWIW they can be with bindless. But then the expectation would be that the function does something like "dst = src" or something. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/818. |
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.