Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upShader compilation error on some windows hardware #1206
Comments
Add the shader name to link errors. Very simple change that should help with figuring out issues like #1206. r? @kvark <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1214) <!-- Reviewable:end -->
|
This is compiled shader for void _write_color_float4(in float4 _color, in float _style, in bool _flip) |
|
Looks like ANGLE code generator generated s3 and s4 without type. |
|
ANGLE will replace declaration with symbol for statement of switch-case in 1 which I don't know why. I have a workaround that surround the statement by bracket. I'll upload patch. |
Surround the statement if switch-case block contains declarations. This fix #1206 . <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1285) <!-- Reviewable:end -->
In this try push the windows 8 mochitest-bc failures happen because WR fails to startup. The log has this shader compilation error:
Note however that this compilation failure happens pretty late in the log. AFAICT WebRender is initialized numerous times before that successfully. It might just be a shader that we're loading lazily and only gets loaded by particular tests.
Also note that the regular mochitest suite in the same try push must be running on different hardware because it seems to start WR just fine.