Lines Matching refs:blit
622 struct pipe_blit_info blit;
626 memset(&blit, 0, sizeof(blit));
627 blit.src.resource = device->cursor.image;
628 blit.src.level = 0;
629 blit.src.format = device->cursor.image->format;
630 blit.src.box.x = 0;
631 blit.src.box.y = 0;
632 blit.src.box.z = 0;
633 blit.src.box.depth = 1;
634 blit.src.box.width = device->cursor.w;
635 blit.src.box.height = device->cursor.h;
637 blit.dst.resource = resource;
638 blit.dst.level = 0;
639 blit.dst.format = resource->format;
640 blit.dst.box.z = 0;
641 blit.dst.box.depth = 1;
643 blit.mask = PIPE_MASK_RGBA;
644 blit.filter = PIPE_TEX_FILTER_NEAREST;
645 blit.scissor_enable = FALSE;
647 /* NOTE: blit messes up when box.x + box.width < 0, fix driver
651 blit.dst.box.x = MAX2(device->cursor.pos.x, 0) - device->cursor.hotspot.x;
652 blit.dst.box.y = MAX2(device->cursor.pos.y, 0) - device->cursor.hotspot.y;
653 blit.dst.box.width = blit.src.box.width;
654 blit.dst.box.height = blit.src.box.height;
657 blit.src.box.width, blit.src.box.height,
658 blit.dst.box.x, blit.dst.box.y);
660 blit.alpha_blend = TRUE;
662 pipe->blit(pipe, &blit);
725 struct pipe_blit_info blit;
831 memset(&blit, 0, sizeof(blit));
832 blit.src.resource = resource;
833 blit.src.level = 0; /* Note: This->buffers[0]->level should always be 0 */
834 blit.src.format = resource->format;
835 blit.src.box.z = 0;
836 blit.src.box.depth = 1;
837 blit.src.box.x = 0;
838 blit.src.box.y = 0;
839 blit.src.box.width = resource->width0;
840 blit.src.box.height = resource->height0;
861 blit.dst.resource = resource;
862 blit.dst.level = 0;
863 blit.dst.format = resource->format;
864 blit
865 blit.dst.box.depth = 1;
866 blit.dst.box.x = 0;
867 blit.dst.box.y = 0;
868 blit.dst.box.width = resource->width0;
869 blit.dst.box.height = resource->height0;
871 blit.mask = PIPE_MASK_RGBA;
872 blit.filter = (blit.dst.box.width == blit.src.box.width &&
873 blit.dst.box.height == blit.src.box.height) ?
875 blit.scissor_enable = FALSE;
876 blit.alpha_blend = FALSE;
878 pipe->blit(pipe, &blit);