Lines Matching refs:weight
648 xf86SetWeight(ScrnInfoPtr scrp, rgb weight, rgb mask) in xf86SetWeight() argument
652 scrp->weight.red = 0; in xf86SetWeight()
653 scrp->weight.green = 0; in xf86SetWeight()
654 scrp->weight.blue = 0; in xf86SetWeight()
657 scrp->weight = xf86Weight; in xf86SetWeight()
660 else if (scrp->display->weight.red > 0 && scrp->display->weight.green > 0 in xf86SetWeight()
661 && scrp->display->weight.blue > 0) { in xf86SetWeight()
662 scrp->weight = scrp->display->weight; in xf86SetWeight()
665 else if (weight.red > 0 && weight.green > 0 && weight.blue > 0) { in xf86SetWeight()
666 scrp->weight = weight; in xf86SetWeight()
673 scrp->weight.red = scrp->weight.green = in xf86SetWeight()
674 scrp->weight.blue = scrp->rgbBits; in xf86SetWeight()
677 scrp->weight.red = scrp->weight.green = scrp->weight.blue = 5; in xf86SetWeight()
680 scrp->weight.red = scrp->weight.blue = 5; in xf86SetWeight()
681 scrp->weight.green = 6; in xf86SetWeight()
684 scrp->weight.red = scrp->weight.green = scrp->weight.blue = 6; in xf86SetWeight()
687 scrp->weight.red = scrp->weight.green = scrp->weight.blue = 8; in xf86SetWeight()
690 scrp->weight.red = scrp->weight.green = scrp->weight.blue = 10; in xf86SetWeight()
695 if (scrp->weight.red) in xf86SetWeight()
697 (int) scrp->weight.red, (int) scrp->weight.green, in xf86SetWeight()
698 (int) scrp->weight.blue); in xf86SetWeight()
701 (scrp->depth != scrp->weight.red + scrp->weight.green + in xf86SetWeight()
702 scrp->weight.blue)) { in xf86SetWeight()
706 (int) scrp->weight.red, (int) scrp->weight.green, in xf86SetWeight()
707 (int) scrp->weight.blue, scrp->depth); in xf86SetWeight()
710 if (scrp->depth > MAX_PSEUDO_DEPTH && scrp->weight.red) { in xf86SetWeight()
716 scrp->rgbBits = scrp->weight.red; in xf86SetWeight()
717 if (scrp->weight.green > scrp->rgbBits) in xf86SetWeight()
718 scrp->rgbBits = scrp->weight.green; in xf86SetWeight()
719 if (scrp->weight.blue > scrp->rgbBits) in xf86SetWeight()
720 scrp->rgbBits = scrp->weight.blue; in xf86SetWeight()
726 scrp->offset.red = scrp->weight.green + scrp->weight.blue; in xf86SetWeight()
727 scrp->offset.green = scrp->weight.blue; in xf86SetWeight()
729 scrp->mask.red = ((1 << scrp->weight.red) - 1) << scrp->offset.red; in xf86SetWeight()
730 scrp->mask.green = ((1 << scrp->weight.green) - 1) in xf86SetWeight()
732 scrp->mask.blue = (1 << scrp->weight.blue) - 1; in xf86SetWeight()