Lines Matching refs:operands
241 assert(ir->operands[i] == NULL); in visit_leave()
245 assert(ir->operands[i] != NULL); in visit_leave()
250 assert(ir->operands[0]->type == ir->type); in visit_leave()
254 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
258 assert(ir->type == ir->operands[0]->type); in visit_leave()
263 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT || in visit_leave()
264 ir->operands[0]->type->is_float() || in visit_leave()
265 ir->operands[0]->type->is_double() || in visit_leave()
266 ir->operands[0]->type->base_type == GLSL_TYPE_INT64); in visit_leave()
267 assert(ir->type == ir->operands[0]->type); in visit_leave()
275 assert(ir->type == ir->operands[0]->type); in visit_leave()
283 assert(ir->operands[0]->type->is_float()); in visit_leave()
284 assert(ir->type == ir->operands[0]->type); in visit_leave()
288 assert(ir->operands[0]->type->is_float()); in visit_leave()
292 assert(ir->operands[0]->type->is_float()); in visit_leave()
296 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT); in visit_leave()
300 assert(ir->operands[0]->type->is_float()); in visit_leave()
304 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
308 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT); in visit_leave()
312 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
316 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT); in visit_leave()
320 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT); in visit_leave()
324 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT); in visit_leave()
328 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT); in visit_leave()
332 assert(ir->operands[0]->type->is_float()); in visit_leave()
336 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT); in visit_leave()
340 assert(ir->operands[0]->type->is_float()); in visit_leave()
345 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64); in visit_leave()
349 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64); in visit_leave()
353 assert(ir->operands[0]->type->is_double()); in visit_leave()
357 assert(ir->operands[0]->type->is_double()); in visit_leave()
361 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64); in visit_leave()
365 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64); in visit_leave()
369 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64); in visit_leave()
373 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64); in visit_leave()
377 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64); in visit_leave()
381 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64); in visit_leave()
385 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64); in visit_leave()
389 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64); in visit_leave()
393 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64); in visit_leave()
397 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT); in visit_leave()
401 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT); in visit_leave()
405 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
409 assert(ir->operands[0]->type->is_float()); in visit_leave()
413 assert(ir->operands[0]->type->is_double()); in visit_leave()
417 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT); in visit_leave()
421 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT); in visit_leave()
425 assert(ir->operands[0]->type->is_float()); in visit_leave()
429 assert(ir->operands[0]->type->is_double()); in visit_leave()
433 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64); in visit_leave()
437 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64); in visit_leave()
445 assert(ir->operands[0]->type->is_float() || in visit_leave()
446 ir->operands[0]->type->is_double()); in visit_leave()
447 assert(ir->operands[0]->type == ir->type); in visit_leave()
457 assert(ir->operands[0]->type->is_float()); in visit_leave()
458 assert(ir->operands[0]->type == ir->type); in visit_leave()
465 assert(ir->operands[0]->type == glsl_type::vec2_type); in visit_leave()
471 assert(ir->operands[0]->type == glsl_type::vec4_type); in visit_leave()
476 assert(ir->operands[0]->type == glsl_type::uvec2_type); in visit_leave()
481 assert(ir->operands[0]->type == glsl_type::ivec2_type); in visit_leave()
486 assert(ir->operands[0]->type == glsl_type::uvec2_type); in visit_leave()
491 assert(ir->operands[0]->type == glsl_type::uvec2_type); in visit_leave()
496 assert(ir->operands[0]->type == glsl_type::uvec2_type); in visit_leave()
503 assert(ir->operands[0]->type == glsl_type::uint_type); in visit_leave()
509 assert(ir->operands[0]->type == glsl_type::uint_type); in visit_leave()
514 assert(ir->operands[0]->type == glsl_type::double_type); in visit_leave()
519 assert(ir->operands[0]->type == glsl_type::int64_t_type); in visit_leave()
524 assert(ir->operands[0]->type == glsl_type::uint64_t_type); in visit_leave()
529 assert(ir->operands[0]->type->is_sampler()); in visit_leave()
534 assert(ir->operands[0]->type->is_image()); in visit_leave()
538 assert(ir->operands[0]->type == ir->type); in visit_leave()
545 assert(ir->operands[0]->type->vector_elements == ir->type->vector_elements); in visit_leave()
546 assert(ir->operands[0]->type->is_integer()); in visit_leave()
555 assert(ir->operands[0]->type == ir->type); in visit_leave()
556 assert(ir->operands[0]->type->is_float()); in visit_leave()
561 assert(ir->operands[0]->type == glsl_type::uint_type); in visit_leave()
566 assert(ir->operands[0]->type->is_array()); in visit_leave()
567 assert(ir->operands[0]->type->is_unsized_array()); in visit_leave()
571 assert(ir->operands[0]->type->is_double()); in visit_leave()
575 assert(ir->operands[0]->type->is_float()); in visit_leave()
579 assert(ir->operands[0]->type->is_double()); in visit_leave()
583 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT); in visit_leave()
587 assert(ir->operands[0]->type->is_double()); in visit_leave()
591 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT); in visit_leave()
595 assert(ir->operands[0]->type->is_double()); in visit_leave()
600 assert(ir->operands[0]->type->is_float() || in visit_leave()
601 ir->operands[0]->type->is_double()); in visit_leave()
605 assert(ir->operands[0]->type->is_float() || in visit_leave()
606 ir->operands[0]->type->is_double()); in visit_leave()
610 assert(ir->operands[0]->type->base_type == GLSL_TYPE_SUBROUTINE); in visit_leave()
622 assert(ir->operands[0]->type->base_type == in visit_leave()
623 ir->operands[1]->type->base_type); in visit_leave()
625 if (ir->operands[0]->type->is_scalar()) in visit_leave()
626 assert(ir->operands[1]->type == ir->type); in visit_leave()
627 else if (ir->operands[1]->type->is_scalar()) in visit_leave()
628 assert(ir->operands[0]->type == ir->type); in visit_leave()
629 else if (ir->operands[0]->type->is_vector() && in visit_leave()
630 ir->operands[1]->type->is_vector()) { in visit_leave()
631 assert(ir->operands[0]->type == ir->operands[1]->type); in visit_leave()
632 assert(ir->operands[0]->type == ir->type); in visit_leave()
637 assert(ir->type == ir->operands[0]->type); in visit_leave()
638 assert(ir->type == ir->operands[1]->type); in visit_leave()
644 assert(ir->type == ir->operands[0]->type); in visit_leave()
645 assert(ir->type == ir->operands[1]->type); in visit_leave()
659 assert(ir->operands[0]->type == ir->operands[1]->type); in visit_leave()
660 assert(ir->operands[0]->type->is_vector() in visit_leave()
661 || ir->operands[0]->type->is_scalar()); in visit_leave()
662 assert(ir->operands[0]->type->vector_elements in visit_leave()
672 assert(ir->operands[0]->type == ir->operands[1]->type); in visit_leave()
677 assert(ir->operands[0]->type->is_integer_32_64() && in visit_leave()
678 ir->operands[1]->type->is_integer()); in visit_leave()
679 if (ir->operands[0]->type->is_scalar()) { in visit_leave()
680 assert(ir->operands[1]->type->is_scalar()); in visit_leave()
682 if (ir->operands[0]->type->is_vector() && in visit_leave()
683 ir->operands[1]->type->is_vector()) { in visit_leave()
684 assert(ir->operands[0]->type->components() == in visit_leave()
685 ir->operands[1]->type->components()); in visit_leave()
687 assert(ir->type == ir->operands[0]->type); in visit_leave()
693 assert(ir->operands[0]->type->base_type == in visit_leave()
694 ir->operands[1]->type->base_type); in visit_leave()
696 if (ir->operands[0]->type->is_vector() && in visit_leave()
697 ir->operands[1]->type->is_vector()) { in visit_leave()
698 assert(ir->operands[0]->type->vector_elements == in visit_leave()
699 ir->operands[1]->type->vector_elements); in visit_leave()
707 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
708 assert(ir->operands[1]->type->is_boolean()); in visit_leave()
714 assert(ir->operands[0]->type->is_float() || in visit_leave()
715 ir->operands[0]->type->is_double()); in visit_leave()
716 assert(ir->operands[0]->type->is_vector()); in visit_leave()
717 assert(ir->operands[0]->type == ir->operands[1]->type); in visit_leave()
721 assert(ir->operands[0]->type == glsl_type::uint_type); in visit_leave()
723 assert(ir->operands[1]->type == glsl_type::uint_type); in visit_leave()
727 assert(ir->operands[0]->type == ir->type); in visit_leave()
728 assert(ir->operands[0]->type->is_float() || in visit_leave()
729 ir->operands[0]->type->is_double()); in visit_leave()
730 assert(ir->operands[1]->type->base_type == GLSL_TYPE_INT); in visit_leave()
731 assert(ir->operands[0]->type->components() == in visit_leave()
732 ir->operands[1]->type->components()); in visit_leave()
736 assert(ir->operands[0]->type->is_vector()); in visit_leave()
737 assert(ir->operands[1]->type->is_scalar() in visit_leave()
738 && ir->operands[1]->type->is_integer()); in visit_leave()
742 assert(ir->operands[0]->type == ir->type); in visit_leave()
743 assert(ir->operands[0]->type->is_float()); in visit_leave()
744 assert(ir->operands[1]->type->components() == 2); in visit_leave()
745 assert(ir->operands[1]->type->is_float()); in visit_leave()
749 assert(ir->operands[0]->type == ir->type); in visit_leave()
750 assert(ir->operands[0]->type->is_float()); in visit_leave()
751 assert(ir->operands[1]->type == glsl_type::int_type); in visit_leave()
757 assert(ir->type == ir->operands[0]->type); in visit_leave()
758 assert(ir->type == ir->operands[1]->type); in visit_leave()
759 assert(ir->type == ir->operands[2]->type); in visit_leave()
763 assert(ir->operands[0]->type->is_float() || in visit_leave()
764 ir->operands[0]->type->is_double()); in visit_leave()
765 assert(ir->operands[0]->type == ir->operands[1]->type); in visit_leave()
766 assert(ir->operands[2]->type == ir->operands[0]->type || in visit_leave()
767 ir->operands[2]->type == glsl_type::float_type || in visit_leave()
768 ir->operands[2]->type == glsl_type::double_type); in visit_leave()
772 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
773 assert(ir->type->vector_elements == ir->operands[0]->type->vector_elements); in visit_leave()
774 assert(ir->type == ir->operands[1]->type); in visit_leave()
775 assert(ir->type == ir->operands[2]->type); in visit_leave()
780 assert(ir->operands[0]->type == ir->type); in visit_leave()
781 assert(ir->operands[1]->type == ir->type); in visit_leave()
782 assert(ir->operands[2]->type == ir->type); in visit_leave()
786 assert(ir->operands[0]->type->is_vector()); in visit_leave()
787 assert(ir->operands[1]->type->is_scalar()); in visit_leave()
788 assert(ir->operands[0]->type->base_type == ir->operands[1]->type->base_type); in visit_leave()
789 assert(ir->operands[2]->type->is_scalar() in visit_leave()
790 && ir->operands[2]->type->is_integer()); in visit_leave()
791 assert(ir->type == ir->operands[0]->type); in visit_leave()
796 assert(ir->operands[0]->type == ir->type); in visit_leave()
797 assert(ir->operands[1]->type == ir->type); in visit_leave()
798 assert(ir->operands[2]->type == ir->type); in visit_leave()
799 assert(ir->operands[3]->type == ir->type); in visit_leave()
813 assert(ir->operands[0]->type->is_scalar()); in visit_leave()
814 assert(ir->operands[0]->type->base_type == ir->type->base_type); in visit_leave()
815 assert(ir->operands[1]->type->is_scalar()); in visit_leave()
816 assert(ir->operands[1]->type->base_type == ir->type->base_type); in visit_leave()
817 assert(ir->operands[2] == NULL); in visit_leave()
818 assert(ir->operands[3] == NULL); in visit_leave()
821 assert(ir->operands[0]->type->is_scalar()); in visit_leave()
822 assert(ir->operands[0]->type->base_type == ir->type->base_type); in visit_leave()
823 assert(ir->operands[1]->type->is_scalar()); in visit_leave()
824 assert(ir->operands[1]->type->base_type == ir->type->base_type); in visit_leave()
825 assert(ir->operands[2]->type->is_scalar()); in visit_leave()
826 assert(ir->operands[2]->type->base_type == ir->type->base_type); in visit_leave()
827 assert(ir->operands[3] == NULL); in visit_leave()
830 assert(ir->operands[0]->type->is_scalar()); in visit_leave()
831 assert(ir->operands[0]->type->base_type == ir->type->base_type); in visit_leave()
832 assert(ir->operands[1]->type->is_scalar()); in visit_leave()
833 assert(ir->operands[1]->type->base_type == ir->type->base_type); in visit_leave()
834 assert(ir->operands[2]->type->is_scalar()); in visit_leave()
835 assert(ir->operands[2]->type->base_type == ir->type->base_type); in visit_leave()
836 assert(ir->operands[3]->type->is_scalar()); in visit_leave()
837 assert(ir->operands[3]->type->base_type == ir->type->base_type); in visit_leave()