Home | History | Annotate | Download | only in glsl

Lines Matching full:op_const

189    ir_constant *op_const[2] = {NULL, NULL};
199 op_const[i] = ir->operands[i]->constant_expression_value();
241 if (is_vec_zero(op_const[0])) {
245 if (is_vec_zero(op_const[1])) {
253 if (op_const[0] && !op_const[1])
254 reassociate_constant(ir, 0, op_const[0],
256 if (op_const[1] && !op_const[0])
257 reassociate_constant(ir, 1, op_const[1],
262 if (is_vec_zero(op_const[0])) {
270 if (is_vec_zero(op_const[1])) {
277 if (is_vec_one(op_const[0])) {
281 if (is_vec_one(op_const[1])) {
286 if (is_vec_zero(op_const[0]) || is_vec_zero(op_const[1])) {
294 if (op_const[0] && !op_const[1])
295 reassociate_constant(ir, 0, op_const[0],
297 if (op_const[1] && !op_const[0])
298 reassociate_constant(ir, 1, op_const[1],
304 if (is_vec_one(op_const[0]) && ir->type->base_type == GLSL_TYPE_FLOAT) {
312 if (is_vec_one(op_const[1])) {
319 if (is_vec_zero(op_const[0]) || is_vec_zero(op_const[1])) {
323 if (is_vec_basis(op_const[0])) {
326 for (unsigned c = 0; c < op_const[0]->type->vector_elements; c++) {
327 if (op_const[0]->value.f[c] == 1.0)
332 if (is_vec_basis(op_const[1])) {
335 for (unsigned c = 0; c < op_const[1]->type->vector_elements; c++) {
336 if (op_const[1]->value.f[c] == 1.0)
345 if (is_vec_one(op_const[0])) {
348 } else if (is_vec_one(op_const[1])) {
351 } else if (is_vec_zero(op_const[0]) || is_vec_zero(op_const[1])) {
359 if (is_vec_zero(op_const[0])) {
362 } else if (is_vec_zero(op_const[1])) {
365 } else if (is_vec_one(op_const[0])) {
369 } else if (is_vec_one(op_const[1])) {
378 if (is_vec_zero(op_const[0])) {
381 } else if (is_vec_zero(op_const[1])) {
384 } else if (is_vec_one(op_const[0]) || is_vec_one(op_const[1])) {