Lines Matching refs:CLAMP

494 #define SRC_CONVERT(x) CLAMP((int)x, -32768, 32767)
510 #define SRC_CONVERT(x) CLAMP((int)x, -128, 127)
560 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) << 5) in _mesa_pack_rgba_span_from_uints()
561 | (CLAMP(rgba[i][GCOMP], 0, 7) << 2) in _mesa_pack_rgba_span_from_uints()
562 | (CLAMP(rgba[i][BCOMP], 0, 3) ); in _mesa_pack_rgba_span_from_uints()
572 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) ) in _mesa_pack_rgba_span_from_uints()
573 | (CLAMP(rgba[i][GCOMP], 0, 7) << 3) in _mesa_pack_rgba_span_from_uints()
574 | (CLAMP(rgba[i][BCOMP], 0, 3) << 6); in _mesa_pack_rgba_span_from_uints()
584 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_uints()
585 | (CLAMP(rgba[i][GCOMP], 0, 63) << 5) in _mesa_pack_rgba_span_from_uints()
586 | (CLAMP(rgba[i][BCOMP], 0, 31) ); in _mesa_pack_rgba_span_from_uints()
596 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) ) in _mesa_pack_rgba_span_from_uints()
597 | (CLAMP(rgba[i][GCOMP], 0, 63) << 5) in _mesa_pack_rgba_span_from_uints()
598 | (CLAMP(rgba[i][BCOMP], 0, 31) << 11); in _mesa_pack_rgba_span_from_uints()
608 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 15) << 12) in _mesa_pack_rgba_span_from_uints()
609 | (CLAMP(rgba[i][GCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
610 | (CLAMP(rgba[i][BCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
611 | (CLAMP(rgba[i][ACOMP], 0, 15) ); in _mesa_pack_rgba_span_from_uints()
617 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 15) << 12) in _mesa_pack_rgba_span_from_uints()
618 | (CLAMP(rgba[i][GCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
619 | (CLAMP(rgba[i][RCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
620 | (CLAMP(rgba[i][ACOMP], 0, 15) ); in _mesa_pack_rgba_span_from_uints()
626 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) << 12) in _mesa_pack_rgba_span_from_uints()
627 | (CLAMP(rgba[i][BCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
628 | (CLAMP(rgba[i][GCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
629 | (CLAMP(rgba[i][RCOMP], 0, 15) ); in _mesa_pack_rgba_span_from_uints()
639 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 15) ) in _mesa_pack_rgba_span_from_uints()
640 | (CLAMP(rgba[i][GCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
641 | (CLAMP(rgba[i][BCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
642 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); in _mesa_pack_rgba_span_from_uints()
648 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 15) ) in _mesa_pack_rgba_span_from_uints()
649 | (CLAMP(rgba[i][GCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
650 | (CLAMP(rgba[i][RCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
651 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); in _mesa_pack_rgba_span_from_uints()
657 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) ) in _mesa_pack_rgba_span_from_uints()
658 | (CLAMP(rgba[i][BCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_uints()
659 | (CLAMP(rgba[i][GCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_uints()
660 | (CLAMP(rgba[i][RCOMP], 0, 15) << 12); in _mesa_pack_rgba_span_from_uints()
670 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_uints()
671 | (CLAMP(rgba[i][GCOMP], 0, 31) << 6) in _mesa_pack_rgba_span_from_uints()
672 | (CLAMP(rgba[i][BCOMP], 0, 31) << 1) in _mesa_pack_rgba_span_from_uints()
673 | (CLAMP(rgba[i][ACOMP], 0, 1) ); in _mesa_pack_rgba_span_from_uints()
679 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_uints()
680 | (CLAMP(rgba[i][GCOMP], 0, 31) << 6) in _mesa_pack_rgba_span_from_uints()
681 | (CLAMP(rgba[i][RCOMP], 0, 31) << 1) in _mesa_pack_rgba_span_from_uints()
682 | (CLAMP(rgba[i][ACOMP], 0, 1) ); in _mesa_pack_rgba_span_from_uints()
688 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_uints()
689 | (CLAMP(rgba[i][BCOMP], 0, 31) << 6) in _mesa_pack_rgba_span_from_uints()
690 | (CLAMP(rgba[i][GCOMP], 0, 31) << 1) in _mesa_pack_rgba_span_from_uints()
691 | (CLAMP(rgba[i][RCOMP], 0, 1) ); in _mesa_pack_rgba_span_from_uints()
701 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) ) in _mesa_pack_rgba_span_from_uints()
702 | (CLAMP(rgba[i][GCOMP], 0, 31) << 5) in _mesa_pack_rgba_span_from_uints()
703 | (CLAMP(rgba[i][BCOMP], 0, 31) << 10) in _mesa_pack_rgba_span_from_uints()
704 | (CLAMP(rgba[i][ACOMP], 0, 1) << 15); in _mesa_pack_rgba_span_from_uints()
710 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 31) ) in _mesa_pack_rgba_span_from_uints()
711 | (CLAMP(rgba[i][GCOMP], 0, 31) << 5) in _mesa_pack_rgba_span_from_uints()
712 | (CLAMP(rgba[i][RCOMP], 0, 31) << 10) in _mesa_pack_rgba_span_from_uints()
713 | (CLAMP(rgba[i][ACOMP], 0, 1) << 15); in _mesa_pack_rgba_span_from_uints()
719 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 31) ) in _mesa_pack_rgba_span_from_uints()
720 | (CLAMP(rgba[i][BCOMP], 0, 31) << 5) in _mesa_pack_rgba_span_from_uints()
721 | (CLAMP(rgba[i][GCOMP], 0, 31) << 10) in _mesa_pack_rgba_span_from_uints()
722 | (CLAMP(rgba[i][RCOMP], 0, 1) << 15); in _mesa_pack_rgba_span_from_uints()
732 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 255) << 24) in _mesa_pack_rgba_span_from_uints()
733 | (CLAMP(rgba[i][GCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_uints()
734 | (CLAMP(rgba[i][BCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_uints()
735 | (CLAMP(rgba[i][ACOMP], 0, 255) ); in _mesa_pack_rgba_span_from_uints()
741 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 255) << 24) in _mesa_pack_rgba_span_from_uints()
742 | (CLAMP(rgba[i][GCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_uints()
743 | (CLAMP(rgba[i][RCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_uints()
744 | (CLAMP(rgba[i][ACOMP], 0, 255) ); in _mesa_pack_rgba_span_from_uints()
750 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 255) << 24) in _mesa_pack_rgba_span_from_uints()
751 | (CLAMP(rgba[i][BCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_uints()
752 | (CLAMP(rgba[i][GCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_uints()
753 | (CLAMP(rgba[i][RCOMP], 0, 255) ); in _mesa_pack_rgba_span_from_uints()
763 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 255) ) in _mesa_pack_rgba_span_from_uints()
764 | (CLAMP(rgba[i][GCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_uints()
765 | (CLAMP(rgba[i][BCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_uints()
766 | (CLAMP(rgba[i][ACOMP], 0, 255) << 24); in _mesa_pack_rgba_span_from_uints()
772 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 255) ) in _mesa_pack_rgba_span_from_uints()
773 | (CLAMP(rgba[i][GCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_uints()
774 | (CLAMP(rgba[i][RCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_uints()
775 | (CLAMP(rgba[i][ACOMP], 0, 255) << 24); in _mesa_pack_rgba_span_from_uints()
781 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 255) ) in _mesa_pack_rgba_span_from_uints()
782 | (CLAMP(rgba[i][BCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_uints()
783 | (CLAMP(rgba[i][GCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_uints()
784 | (CLAMP(rgba[i][RCOMP], 0, 255) << 24); in _mesa_pack_rgba_span_from_uints()
794 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 1023) << 22) in _mesa_pack_rgba_span_from_uints()
795 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 12) in _mesa_pack_rgba_span_from_uints()
796 | (CLAMP(rgba[i][BCOMP], 0, 1023) << 2) in _mesa_pack_rgba_span_from_uints()
797 | (CLAMP(rgba[i][ACOMP], 0, 3) ); in _mesa_pack_rgba_span_from_uints()
803 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 1023) << 22) in _mesa_pack_rgba_span_from_uints()
804 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 12) in _mesa_pack_rgba_span_from_uints()
805 | (CLAMP(rgba[i][RCOMP], 0, 1023) << 2) in _mesa_pack_rgba_span_from_uints()
806 | (CLAMP(rgba[i][ACOMP], 0, 3) ); in _mesa_pack_rgba_span_from_uints()
812 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 1023) << 22) in _mesa_pack_rgba_span_from_uints()
813 | (CLAMP(rgba[i][BCOMP], 0, 1023) << 12) in _mesa_pack_rgba_span_from_uints()
814 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 2) in _mesa_pack_rgba_span_from_uints()
815 | (CLAMP(rgba[i][RCOMP], 0, 3) ); in _mesa_pack_rgba_span_from_uints()
825 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 1023) ) in _mesa_pack_rgba_span_from_uints()
826 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 10) in _mesa_pack_rgba_span_from_uints()
827 | (CLAMP(rgba[i][BCOMP], 0, 1023) << 20) in _mesa_pack_rgba_span_from_uints()
828 | (CLAMP(rgba[i][ACOMP], 0, 3) << 30); in _mesa_pack_rgba_span_from_uints()
834 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 1023) ) in _mesa_pack_rgba_span_from_uints()
835 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 10) in _mesa_pack_rgba_span_from_uints()
836 | (CLAMP(rgba[i][RCOMP], 0, 1023) << 20) in _mesa_pack_rgba_span_from_uints()
837 | (CLAMP(rgba[i][ACOMP], 0, 3) << 30); in _mesa_pack_rgba_span_from_uints()
843 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 1023) ) in _mesa_pack_rgba_span_from_uints()
844 | (CLAMP(rgba[i][BCOMP], 0, 1023) << 10) in _mesa_pack_rgba_span_from_uints()
845 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 20) in _mesa_pack_rgba_span_from_uints()
846 | (CLAMP(rgba[i][RCOMP], 0, 3) << 30); in _mesa_pack_rgba_span_from_uints()
880 #define SRC_CONVERT(x) CLAMP(x, -0x8000, 0x7fff)
896 #define SRC_CONVERT(x) CLAMP(x, -0x80, 0x7f)
947 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) << 5) in _mesa_pack_rgba_span_from_ints()
948 | (CLAMP(rgba[i][GCOMP], 0, 7) << 2) in _mesa_pack_rgba_span_from_ints()
949 | (CLAMP(rgba[i][BCOMP], 0, 3) ); in _mesa_pack_rgba_span_from_ints()
959 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) ) in _mesa_pack_rgba_span_from_ints()
960 | (CLAMP(rgba[i][GCOMP], 0, 7) << 3) in _mesa_pack_rgba_span_from_ints()
961 | (CLAMP(rgba[i][BCOMP], 0, 3) << 6); in _mesa_pack_rgba_span_from_ints()
971 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_ints()
972 | (CLAMP(rgba[i][GCOMP], 0, 63) << 5) in _mesa_pack_rgba_span_from_ints()
973 | (CLAMP(rgba[i][BCOMP], 0, 31) ); in _mesa_pack_rgba_span_from_ints()
983 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) ) in _mesa_pack_rgba_span_from_ints()
984 | (CLAMP(rgba[i][GCOMP], 0, 63) << 5) in _mesa_pack_rgba_span_from_ints()
985 | (CLAMP(rgba[i][BCOMP], 0, 31) << 11); in _mesa_pack_rgba_span_from_ints()
995 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 15) << 12) in _mesa_pack_rgba_span_from_ints()
996 | (CLAMP(rgba[i][GCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_ints()
997 | (CLAMP(rgba[i][BCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_ints()
998 | (CLAMP(rgba[i][ACOMP], 0, 15) ); in _mesa_pack_rgba_span_from_ints()
1004 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 15) << 12) in _mesa_pack_rgba_span_from_ints()
1005 | (CLAMP(rgba[i][GCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_ints()
1006 | (CLAMP(rgba[i][RCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_ints()
1007 | (CLAMP(rgba[i][ACOMP], 0, 15) ); in _mesa_pack_rgba_span_from_ints()
1013 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) << 12) in _mesa_pack_rgba_span_from_ints()
1014 | (CLAMP(rgba[i][BCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_ints()
1015 | (CLAMP(rgba[i][GCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_ints()
1016 | (CLAMP(rgba[i][RCOMP], 0, 15) ); in _mesa_pack_rgba_span_from_ints()
1026 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 15) ) in _mesa_pack_rgba_span_from_ints()
1027 | (CLAMP(rgba[i][GCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_ints()
1028 | (CLAMP(rgba[i][BCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_ints()
1029 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); in _mesa_pack_rgba_span_from_ints()
1035 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 15) ) in _mesa_pack_rgba_span_from_ints()
1036 | (CLAMP(rgba[i][GCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_ints()
1037 | (CLAMP(rgba[i][RCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_ints()
1038 | (CLAMP(rgba[i][ACOMP], 0, 15) << 12); in _mesa_pack_rgba_span_from_ints()
1044 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 15) ) in _mesa_pack_rgba_span_from_ints()
1045 | (CLAMP(rgba[i][BCOMP], 0, 15) << 4) in _mesa_pack_rgba_span_from_ints()
1046 | (CLAMP(rgba[i][GCOMP], 0, 15) << 8) in _mesa_pack_rgba_span_from_ints()
1047 | (CLAMP(rgba[i][RCOMP], 0, 15) << 12); in _mesa_pack_rgba_span_from_ints()
1057 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_ints()
1058 | (CLAMP(rgba[i][GCOMP], 0, 31) << 6) in _mesa_pack_rgba_span_from_ints()
1059 | (CLAMP(rgba[i][BCOMP], 0, 31) << 1) in _mesa_pack_rgba_span_from_ints()
1060 | (CLAMP(rgba[i][ACOMP], 0, 1) ); in _mesa_pack_rgba_span_from_ints()
1066 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_ints()
1067 | (CLAMP(rgba[i][GCOMP], 0, 31) << 6) in _mesa_pack_rgba_span_from_ints()
1068 | (CLAMP(rgba[i][RCOMP], 0, 31) << 1) in _mesa_pack_rgba_span_from_ints()
1069 | (CLAMP(rgba[i][ACOMP], 0, 1) ); in _mesa_pack_rgba_span_from_ints()
1075 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 31) << 11) in _mesa_pack_rgba_span_from_ints()
1076 | (CLAMP(rgba[i][BCOMP], 0, 31) << 6) in _mesa_pack_rgba_span_from_ints()
1077 | (CLAMP(rgba[i][GCOMP], 0, 31) << 1) in _mesa_pack_rgba_span_from_ints()
1078 | (CLAMP(rgba[i][RCOMP], 0, 1) ); in _mesa_pack_rgba_span_from_ints()
1088 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 31) ) in _mesa_pack_rgba_span_from_ints()
1089 | (CLAMP(rgba[i][GCOMP], 0, 31) << 5) in _mesa_pack_rgba_span_from_ints()
1090 | (CLAMP(rgba[i][BCOMP], 0, 31) << 10) in _mesa_pack_rgba_span_from_ints()
1091 | (CLAMP(rgba[i][ACOMP], 0, 1) << 15); in _mesa_pack_rgba_span_from_ints()
1097 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 31) ) in _mesa_pack_rgba_span_from_ints()
1098 | (CLAMP(rgba[i][GCOMP], 0, 31) << 5) in _mesa_pack_rgba_span_from_ints()
1099 | (CLAMP(rgba[i][RCOMP], 0, 31) << 10) in _mesa_pack_rgba_span_from_ints()
1100 | (CLAMP(rgba[i][ACOMP], 0, 1) << 15); in _mesa_pack_rgba_span_from_ints()
1106 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 31) ) in _mesa_pack_rgba_span_from_ints()
1107 | (CLAMP(rgba[i][BCOMP], 0, 31) << 5) in _mesa_pack_rgba_span_from_ints()
1108 | (CLAMP(rgba[i][GCOMP], 0, 31) << 10) in _mesa_pack_rgba_span_from_ints()
1109 | (CLAMP(rgba[i][RCOMP], 0, 1) << 15); in _mesa_pack_rgba_span_from_ints()
1119 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 255) << 24) in _mesa_pack_rgba_span_from_ints()
1120 | (CLAMP(rgba[i][GCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_ints()
1121 | (CLAMP(rgba[i][BCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_ints()
1122 | (CLAMP(rgba[i][ACOMP], 0, 255) ); in _mesa_pack_rgba_span_from_ints()
1128 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 255) << 24) in _mesa_pack_rgba_span_from_ints()
1129 | (CLAMP(rgba[i][GCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_ints()
1130 | (CLAMP(rgba[i][RCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_ints()
1131 | (CLAMP(rgba[i][ACOMP], 0, 255) ); in _mesa_pack_rgba_span_from_ints()
1137 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 255) << 24) in _mesa_pack_rgba_span_from_ints()
1138 | (CLAMP(rgba[i][BCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_ints()
1139 | (CLAMP(rgba[i][GCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_ints()
1140 | (CLAMP(rgba[i][RCOMP], 0, 255) ); in _mesa_pack_rgba_span_from_ints()
1150 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 255) ) in _mesa_pack_rgba_span_from_ints()
1151 | (CLAMP(rgba[i][GCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_ints()
1152 | (CLAMP(rgba[i][BCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_ints()
1153 | (CLAMP(rgba[i][ACOMP], 0, 255) << 24); in _mesa_pack_rgba_span_from_ints()
1159 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 255) ) in _mesa_pack_rgba_span_from_ints()
1160 | (CLAMP(rgba[i][GCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_ints()
1161 | (CLAMP(rgba[i][RCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_ints()
1162 | (CLAMP(rgba[i][ACOMP], 0, 255) << 24); in _mesa_pack_rgba_span_from_ints()
1168 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 255) ) in _mesa_pack_rgba_span_from_ints()
1169 | (CLAMP(rgba[i][BCOMP], 0, 255) << 8) in _mesa_pack_rgba_span_from_ints()
1170 | (CLAMP(rgba[i][GCOMP], 0, 255) << 16) in _mesa_pack_rgba_span_from_ints()
1171 | (CLAMP(rgba[i][RCOMP], 0, 255) << 24); in _mesa_pack_rgba_span_from_ints()
1181 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 1023) << 22) in _mesa_pack_rgba_span_from_ints()
1182 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 12) in _mesa_pack_rgba_span_from_ints()
1183 | (CLAMP(rgba[i][BCOMP], 0, 1023) << 2) in _mesa_pack_rgba_span_from_ints()
1184 | (CLAMP(rgba[i][ACOMP], 0, 3) ); in _mesa_pack_rgba_span_from_ints()
1190 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 1023) << 22) in _mesa_pack_rgba_span_from_ints()
1191 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 12) in _mesa_pack_rgba_span_from_ints()
1192 | (CLAMP(rgba[i][RCOMP], 0, 1023) << 2) in _mesa_pack_rgba_span_from_ints()
1193 | (CLAMP(rgba[i][ACOMP], 0, 3) ); in _mesa_pack_rgba_span_from_ints()
1199 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 1023) << 22) in _mesa_pack_rgba_span_from_ints()
1200 | (CLAMP(rgba[i][BCOMP], 0, 1023) << 12) in _mesa_pack_rgba_span_from_ints()
1201 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 2) in _mesa_pack_rgba_span_from_ints()
1202 | (CLAMP(rgba[i][RCOMP], 0, 3) ); in _mesa_pack_rgba_span_from_ints()
1212 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 1023) ) in _mesa_pack_rgba_span_from_ints()
1213 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 10) in _mesa_pack_rgba_span_from_ints()
1214 | (CLAMP(rgba[i][BCOMP], 0, 1023) << 20) in _mesa_pack_rgba_span_from_ints()
1215 | (CLAMP(rgba[i][ACOMP], 0, 3) << 30); in _mesa_pack_rgba_span_from_ints()
1221 dst[i] = (CLAMP(rgba[i][BCOMP], 0, 1023) ) in _mesa_pack_rgba_span_from_ints()
1222 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 10) in _mesa_pack_rgba_span_from_ints()
1223 | (CLAMP(rgba[i][RCOMP], 0, 1023) << 20) in _mesa_pack_rgba_span_from_ints()
1224 | (CLAMP(rgba[i][ACOMP], 0, 3) << 30); in _mesa_pack_rgba_span_from_ints()
1230 dst[i] = (CLAMP(rgba[i][ACOMP], 0, 1023) ) in _mesa_pack_rgba_span_from_ints()
1231 | (CLAMP(rgba[i][BCOMP], 0, 1023) << 10) in _mesa_pack_rgba_span_from_ints()
1232 | (CLAMP(rgba[i][GCOMP], 0, 1023) << 20) in _mesa_pack_rgba_span_from_ints()
1233 | (CLAMP(rgba[i][RCOMP], 0, 3) << 30); in _mesa_pack_rgba_span_from_ints()
1303 rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], min, max); in _mesa_pack_rgba_span_float()
1304 rgba[i][GCOMP] = CLAMP(rgba[i][GCOMP], min, max); in _mesa_pack_rgba_span_float()
1305 rgba[i][BCOMP] = CLAMP(rgba[i][BCOMP], min, max); in _mesa_pack_rgba_span_float()
1306 rgba[i][ACOMP] = CLAMP(rgba[i][ACOMP], min, max); in _mesa_pack_rgba_span_float()
1315 luminance[i] = CLAMP(sum, 0.0F, 1.0F); in _mesa_pack_rgba_span_float()
5598 depthValues[i] = (GLfloat)CLAMP(depthValues[i], 0.0, 1.0); in _mesa_unpack_depth_span()