Home | History | Annotate | Download | only in glsl

Lines Matching full:op_const

179    ir_constant *op_const[2] = {NULL, NULL};
189 op_const[i] = ir->operands[i]->constant_expression_value();
231 if (is_vec_zero(op_const[0])) {
235 if (is_vec_zero(op_const[1])) {
243 if (op_const[0] && !op_const[1])
244 reassociate_constant(ir, 0, op_const[0],
246 if (op_const[1] && !op_const[0])
247 reassociate_constant(ir, 1, op_const[1],
252 if (is_vec_zero(op_const[0])) {
260 if (is_vec_zero(op_const[1])) {
267 if (is_vec_one(op_const[0])) {
271 if (is_vec_one(op_const[1])) {
276 if (is_vec_zero(op_const[0]) || is_vec_zero(op_const[1])) {
284 if (op_const[0] && !op_const[1])
285 reassociate_constant(ir, 0, op_const[0],
287 if (op_const[1] && !op_const[0])
288 reassociate_constant(ir, 1, op_const[1],
294 if (is_vec_one(op_const[0]) && ir->type->base_type == GLSL_TYPE_FLOAT) {
302 if (is_vec_one(op_const[1])) {
310 if (is_vec_one(op_const[0])) {
313 } else if (is_vec_one(op_const[1])) {
316 } else if (is_vec_zero(op_const[0]) || is_vec_zero(op_const[1])) {
324 if (is_vec_zero(op_const[0])) {
327 } else if (is_vec_zero(op_const[1])) {
330 } else if (is_vec_one(op_const[0])) {
334 } else if (is_vec_one(op_const[1])) {
343 if (is_vec_zero(op_const[0])) {
346 } else if (is_vec_zero(op_const[1])) {
349 } else if (is_vec_one(op_const[0]) || is_vec_one(op_const[1])) {