Lines Matching refs:operands

231       assert(ir->operands[0]->type == ir->type);
235 assert(ir->operands[0]->type->base_type == GLSL_TYPE_BOOL);
244 assert(ir->type == ir->operands[0]->type);
251 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
252 assert(ir->type == ir->operands[0]->type);
256 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
260 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
264 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
268 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
272 assert(ir->operands[0]->type->base_type == GLSL_TYPE_BOOL);
276 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
280 assert(ir->operands[0]->type->base_type == GLSL_TYPE_BOOL);
284 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT);
288 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
292 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT);
296 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
300 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
304 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT);
308 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
313 assert(ir->operands[0]->type->base_type == GLSL_TYPE_BOOL);
328 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
329 assert(ir->operands[0]->type == ir->type);
344 if (ir->operands[0]->type->is_scalar())
345 assert(ir->operands[1]->type == ir->type);
346 else if (ir->operands[1]->type->is_scalar())
347 assert(ir->operands[0]->type == ir->type);
348 else if (ir->operands[0]->type->is_vector() &&
349 ir->operands[1]->type->is_vector()) {
350 assert(ir->operands[0]->type == ir->operands[1]->type);
351 assert(ir->operands[0]->type == ir->type);
367 assert(ir->operands[0]->type == ir->operands[1]->type);
368 assert(ir->operands[0]->type->is_vector()
369 || ir->operands[0]->type->is_scalar());
370 assert(ir->operands[0]->type->vector_elements
380 assert(ir->operands[0]->type == ir->operands[1]->type);
385 assert(ir->operands[0]->type->is_integer() &&
386 ir->operands[1]->type->is_integer());
387 if (ir->operands[0]->type->is_scalar()) {
388 assert(ir->operands[1]->type->is_scalar());
390 if (ir->operands[0]->type->is_vector() &&
391 ir->operands[1]->type->is_vector()) {
392 assert(ir->operands[0]->type->components() ==
393 ir->operands[1]->type->components());
395 assert(ir->type == ir->operands[0]->type);
401 assert(ir->operands[0]->type->base_type ==
402 ir->operands[1]->type->base_type);
404 if (ir->operands[0]->type->is_vector() &&
405 ir->operands[1]->type->is_vector()) {
406 assert(ir->operands[0]->type->vector_elements ==
407 ir->operands[1]->type->vector_elements);
415 assert(ir->operands[0]->type == glsl_type::bool_type);
416 assert(ir->operands[1]->type == glsl_type::bool_type);
421 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
422 assert(ir->operands[0]->type->is_vector());
423 assert(ir->operands[0]->type == ir->operands[1]->type);
427 assert(ir->operands[0]->as_constant());
428 assert(ir->operands[0]->type == glsl_type::uint_type);
430 assert(ir->operands[1]->type == glsl_type::uint_type);
437 * - All of the operands must be scalar.
438 * - Number of operands must matche the size of the resulting vector.
439 * - Base type of the operands must match the base type of the result.
444 assert(ir->operands[0]->type->is_scalar());
445 assert(ir->operands[0]->type->base_type == ir->type->base_type);
446 assert(ir->operands[1]->type->is_scalar());
447 assert(ir->operands[1]->type->base_type == ir->type->base_type);
448 assert(ir->operands[2] == NULL);
449 assert(ir->operands[3] == NULL);
452 assert(ir->operands[0]->type->is_scalar());
453 assert(ir->operands[0]->type->base_type == ir->type->base_type);
454 assert(ir->operands[1]->type->is_scalar());
455 assert(ir->operands[1]->type->base_type == ir->type->base_type);
456 assert(ir->operands[2]->type->is_scalar());
457 assert(ir->operands[2]->type->base_type == ir->type->base_type);
458 assert(ir->operands[3] == NULL);
461 assert(ir->operands[0]->type->is_scalar());
462 assert(ir->operands[0]->type->base_type == ir->type->base_type);
463 assert(ir->operands[1]->type->is_scalar());
464 assert(ir->operands[1]->type->base_type == ir->type->base_type);
465 assert(ir->operands[2]->type->is_scalar());
466 assert(ir->operands[2]->type->base_type == ir->type->base_type);
467 assert(ir->operands[3]->type->is_scalar());
468 assert(ir->operands[3]->type->base_type == ir->type->base_type);