ir validation assert on valid GLSL
Submitted by Dave Airlie
Assigned to mes..@..op.org
Created attachment 133219 test to demonstrate error.
I've written a cut down test that shows a problem virgl hits.
It triggers an assert in the validation that the ir->type and ir->operands->type for an abs op are the same and they aren't.
temp0.x = float(inversesqrt( abs(temp0).x)); temp0.y = float(inversesqrt( abs(temp0).y));
is the construct that the compiler squashes incorrectly.
Not sure what pass is responsible for this yet.
Attachment 133219, "test to demonstrate error.":