v3d: add lowering for OpenGL logic operations