glslang
glslang copied to clipboard
Support constant expression calculated by matrixCompMult.
glslang report error for "const mat2 cval = matrixCompMult(mat2(1.0), mat2(1.0));". Spec says: The value returned by certain built-in function calls whose arguments are all constant expressions is also constant expressions.
@ncesario-lunarg Please review this PR.
@arcady-lunarg Please help review this PR.
Actually, have you seen the discussion in #925? From reading it, it sounds like matrixCompMult is not supposed to be constant-folded.
@arcady-lunarg glslcompiler in mesa support matrixCompMult constant fold. I have made some modifications based on your feedback.
I've rebased your branch, as soon as it clears CI I will do a squash and merge.