[Mesa-dev] GLSL error

Brian Paul brianp at vmware.com
Thu Feb 18 22:44:30 UTC 2016


On 02/18/2016 03:01 PM, Fu, Sheng wrote:
> Hi all,
>
> I ran into a GLSL error when run my GLSL shader. I use Mesa llvm driver.
>
> The following is the error message I got:
>
>  > src/mesa/state_tracker/st_glsl_to_tgsi.cpp:2194: virtual void
>
>  > glsl_to_tgsi_visitor::visit(ir_expression*): Assertion `!"Invalid ir
>
>  > opcode in glsl_to_tgsi_visitor::visit()"' failed.
>
>  >
>
> Any idea how to track down the problem? Is it possible to generate TGSI
> IR code with Mesa glsl_compiler?

The GLSL code is translated to an IR which is then translated to TGSI. 
Hard to say what the problem is without seeing your shader code.

Can you file a bug which includes your shader code?  If you could set it 
up in a piglit shader_runner file that'd help.

-Brian



More information about the mesa-dev mailing list