Lines Matching refs:blit
625 struct pipe_blit_info blit; in handle_draw_cursor_and_hud() local
629 memset(&blit, 0, sizeof(blit)); in handle_draw_cursor_and_hud()
630 blit.src.resource = device->cursor.image; in handle_draw_cursor_and_hud()
631 blit.src.level = 0; in handle_draw_cursor_and_hud()
632 blit.src.format = device->cursor.image->format; in handle_draw_cursor_and_hud()
633 blit.src.box.x = 0; in handle_draw_cursor_and_hud()
634 blit.src.box.y = 0; in handle_draw_cursor_and_hud()
635 blit.src.box.z = 0; in handle_draw_cursor_and_hud()
636 blit.src.box.depth = 1; in handle_draw_cursor_and_hud()
637 blit.src.box.width = device->cursor.w; in handle_draw_cursor_and_hud()
638 blit.src.box.height = device->cursor.h; in handle_draw_cursor_and_hud()
640 blit.dst.resource = resource; in handle_draw_cursor_and_hud()
641 blit.dst.level = 0; in handle_draw_cursor_and_hud()
642 blit.dst.format = resource->format; in handle_draw_cursor_and_hud()
643 blit.dst.box.z = 0; in handle_draw_cursor_and_hud()
644 blit.dst.box.depth = 1; in handle_draw_cursor_and_hud()
646 blit.mask = PIPE_MASK_RGBA; in handle_draw_cursor_and_hud()
647 blit.filter = PIPE_TEX_FILTER_NEAREST; in handle_draw_cursor_and_hud()
648 blit.scissor_enable = FALSE; in handle_draw_cursor_and_hud()
654 blit.dst.box.x = MAX2(device->cursor.pos.x, 0) - device->cursor.hotspot.x; in handle_draw_cursor_and_hud()
655 blit.dst.box.y = MAX2(device->cursor.pos.y, 0) - device->cursor.hotspot.y; in handle_draw_cursor_and_hud()
656 blit.dst.box.width = blit.src.box.width; in handle_draw_cursor_and_hud()
657 blit.dst.box.height = blit.src.box.height; in handle_draw_cursor_and_hud()
660 blit.src.box.width, blit.src.box.height, in handle_draw_cursor_and_hud()
661 blit.dst.box.x, blit.dst.box.y); in handle_draw_cursor_and_hud()
663 blit.alpha_blend = TRUE; in handle_draw_cursor_and_hud()
665 pipe->blit(pipe, &blit); in handle_draw_cursor_and_hud()
728 struct pipe_blit_info blit; in present() local
834 memset(&blit, 0, sizeof(blit)); in present()
835 blit.src.resource = resource; in present()
836 blit.src.level = 0; /* Note: This->buffers[0]->level should always be 0 */ in present()
837 blit.src.format = resource->format; in present()
838 blit.src.box.z = 0; in present()
839 blit.src.box.depth = 1; in present()
840 blit.src.box.x = 0; in present()
841 blit.src.box.y = 0; in present()
842 blit.src.box.width = resource->width0; in present()
843 blit.src.box.height = resource->height0; in present()
864 blit.dst.resource = resource; in present()
865 blit.dst.level = 0; in present()
866 blit.dst.format = resource->format; in present()
867 blit.dst.box.z = 0; in present()
868 blit.dst.box.depth = 1; in present()
869 blit.dst.box.x = 0; in present()
870 blit.dst.box.y = 0; in present()
871 blit.dst.box.width = resource->width0; in present()
872 blit.dst.box.height = resource->height0; in present()
874 blit.mask = PIPE_MASK_RGBA; in present()
875 blit.filter = (blit.dst.box.width == blit.src.box.width && in present()
876 blit.dst.box.height == blit.src.box.height) ? in present()
878 blit.scissor_enable = FALSE; in present()
879 blit.alpha_blend = FALSE; in present()
881 pipe->blit(pipe, &blit); in present()