[Mesa-dev] [PATCH] compiler/spirv: reject invalid shader code properly

2018-06-04 Thread Martin Pelikán
After bebe3d626e5, b->fail_jump is prepared after vtn_create_builder which can longjmp(3) to it through its vtx_assert()s. This corrupts the stack and creates confusing core dumps, so we need to avoid it. While there, I decided to print the offending values for debugability. ---

[Mesa-dev] [PATCH] compiler/spirv: reject invalid shader code properly

2018-05-14 Thread Martin Pelikán
After bebe3d626e5, b->fail_jump is prepared after vtn_create_builder which can longjmp(3) to it through its vtx_assert()s. This corrupts the stack and creates confusing core dumps, so we need to avoid it. While there, I decided to print the offending values for debugability. ---