Rev 3769 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3769 | Rev 4251 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | }; |
28 | }; |
Line 29... | Line 29... | ||
29 | 29 | ||
30 | struct sna_composite_op { |
30 | struct sna_composite_op { |
31 | fastcall void (*blt)(struct sna *sna, const struct sna_composite_op *op, |
31 | fastcall void (*blt)(struct sna *sna, const struct sna_composite_op *op, |
32 | const struct sna_composite_rectangles *r); |
- | |
33 | fastcall void (*box)(struct sna *sna, |
- | |
34 | const struct sna_composite_op *op, |
- | |
35 | const BoxRec *box); |
- | |
36 | void (*boxes)(struct sna *sna, const struct sna_composite_op *op, |
- | |
- | 32 | const struct sna_composite_rectangles *r); |
|
37 | const BoxRec *box, int nbox); |
33 | |
Line 38... | Line 34... | ||
38 | void (*done)(struct sna *sna, const struct sna_composite_op *op); |
34 | void (*done)(struct sna *sna, const struct sna_composite_op *op); |
Line 39... | Line 35... | ||
39 | 35 | ||
Line 190... | Line 186... | ||
190 | 186 | ||
191 | bool (*video)(struct sna *sna, |
187 | bool (*video)(struct sna *sna, |
192 | struct sna_video *video, |
188 | struct sna_video *video, |
193 | struct sna_video_frame *frame, |
189 | struct sna_video_frame *frame, |
194 | RegionPtr dstRegion, |
- | |
195 | short src_w, short src_h, |
- | |
196 | short drw_w, short drw_h, |
- | |
197 | short dx, short dy, |
190 | RegionPtr dstRegion, |
Line 198... | Line 191... | ||
198 | PixmapPtr pixmap); |
191 | PixmapPtr pixmap); |
199 | 192 | ||
200 | bool (*fill_boxes)(struct sna *sna, |
193 | bool (*fill_boxes)(struct sna *sna, |
Line 356... | Line 349... | ||
356 | uint32_t cc; |
349 | uint32_t cc; |
Line 357... | Line 350... | ||
357 | 350 | ||
358 | int ve_id; |
351 | int ve_id; |
359 | uint32_t drawrect_offset; |
352 | uint32_t drawrect_offset; |
- | 353 | uint32_t drawrect_limit; |
|
360 | uint32_t drawrect_limit; |
354 | uint32_t last_pipelined_pointers; |
361 | uint16_t last_primitive; |
355 | uint16_t last_primitive; |
362 | int16_t floats_per_vertex; |
356 | int16_t floats_per_vertex; |
363 | uint16_t surface_table; |
- | |
Line 364... | Line 357... | ||
364 | uint16_t last_pipelined_pointers; |
357 | uint16_t surface_table; |
365 | 358 | ||
Line 366... | Line 359... | ||
366 | bool needs_invariant; |
359 | bool needs_invariant; |
Line 503... | Line 496... | ||
503 | uint16_t *blue, |
496 | uint16_t *blue, |
504 | uint16_t *alpha, |
497 | uint16_t *alpha, |
505 | uint32_t format); |
498 | uint32_t format); |
506 | bool sna_picture_is_solid(PicturePtr picture, uint32_t *color); |
499 | bool sna_picture_is_solid(PicturePtr picture, uint32_t *color); |
Line 507... | Line 500... | ||
507 | 500 | ||
508 | void no_render_init(struct sna *sna); |
- | |
509 | 501 | const char *no_render_init(struct sna *sna); |
|
510 | bool gen2_render_init(struct sna *sna); |
502 | const char *gen2_render_init(struct sna *sna, const char *backend); |
511 | bool gen3_render_init(struct sna *sna); |
503 | const char *gen3_render_init(struct sna *sna, const char *backend); |
512 | bool gen4_render_init(struct sna *sna); |
504 | const char *gen4_render_init(struct sna *sna, const char *backend); |
513 | bool gen5_render_init(struct sna *sna); |
505 | const char *gen5_render_init(struct sna *sna, const char *backend); |
514 | bool gen6_render_init(struct sna *sna); |
506 | const char *gen6_render_init(struct sna *sna, const char *backend); |
Line 515... | Line 507... | ||
515 | bool gen7_render_init(struct sna *sna); |
507 | const char *gen7_render_init(struct sna *sna, const char *backend); |
516 | - | ||
517 | #if 0 |
508 | |
518 | 509 | #if 0 |
|
519 | bool sna_tiling_composite(uint32_t op, |
510 | bool sna_tiling_composite(uint32_t op, |
520 | PicturePtr src, |
511 | PicturePtr src, |
521 | PicturePtr mask, |
512 | PicturePtr mask, |
Line 681... | Line 672... | ||
681 | } |
672 | } |
Line 682... | Line 673... | ||
682 | 673 | ||
683 | bool |
674 | bool |
684 | sna_render_composite_redirect(struct sna *sna, |
675 | sna_render_composite_redirect(struct sna *sna, |
685 | struct sna_composite_op *op, |
676 | struct sna_composite_op *op, |
- | 677 | int x, int y, int width, int height, |
|
Line 686... | Line 678... | ||
686 | int x, int y, int width, int height); |
678 | bool partial); |
687 | 679 | ||
688 | void |
680 | void |
Line 689... | Line 681... | ||
689 | sna_render_composite_redirect_done(struct sna *sna, |
681 | sna_render_composite_redirect_done(struct sna *sna, |
690 | const struct sna_composite_op *op); |
682 | const struct sna_composite_op *op); |
691 | - | ||
692 | bool |
683 | |
- | 684 | bool |
|
693 | sna_composite_mask_is_opaque(PicturePtr mask); |
685 | sna_composite_mask_is_opaque(PicturePtr mask); |
Line 694... | Line 686... | ||
694 | 686 | #endif |
|
695 | #endif |
687 | |
696 | void sna_vertex_init(struct sna *sna); |
688 | void sna_vertex_init(struct sna *sna); |
Line 724... | Line 716... | ||
724 | // while (r->active) |
716 | // while (r->active) |
725 | // pthread_cond_wait(&r->wait, &r->lock); |
717 | // pthread_cond_wait(&r->wait, &r->lock); |
726 | return was_active; |
718 | return was_active; |
727 | } |
719 | } |
Line -... | Line 720... | ||
- | 720 | ||
- | 721 | #define alphaless(format) PICT_FORMAT(PICT_FORMAT_BPP(format), \ |
|
- | 722 | PICT_FORMAT_TYPE(format), \ |
|
- | 723 | 0, \ |
|
- | 724 | PICT_FORMAT_R(format), \ |
|
- | 725 | PICT_FORMAT_G(format), \ |
|
- | 726 | PICT_FORMAT_B(format)) |
|
- | 727 | static bool |
|
- | 728 | gen3_blit_tex(struct sna *sna, |
|
- | 729 | uint8_t op, bool scale, |
|
- | 730 | PixmapPtr src, struct kgem_bo *src_bo, |
|
- | 731 | PixmapPtr mask,struct kgem_bo *mask_bo, |
|
- | 732 | PixmapPtr dst, struct kgem_bo *dst_bo, |
|
- | 733 | int32_t src_x, int32_t src_y, |
|
- | 734 | int32_t msk_x, int32_t msk_y, |
|
- | 735 | int32_t dst_x, int32_t dst_y, |
|
- | 736 | int32_t width, int32_t height, |
|
- | 737 | struct sna_composite_op *tmp); |
|
- | 738 | static bool |
|
- | 739 | gen4_blit_tex(struct sna *sna, |
|
- | 740 | uint8_t op, bool scale, |
|
- | 741 | PixmapPtr src, struct kgem_bo *src_bo, |
|
- | 742 | PixmapPtr mask,struct kgem_bo *mask_bo, |
|
- | 743 | PixmapPtr dst, struct kgem_bo *dst_bo, |
|
- | 744 | int32_t src_x, int32_t src_y, |
|
- | 745 | int32_t msk_x, int32_t msk_y, |
|
- | 746 | int32_t dst_x, int32_t dst_y, |
|
- | 747 | int32_t width, int32_t height, |
|
- | 748 | struct sna_composite_op *tmp); |
|
- | 749 | ||
- | 750 | static bool |
|
- | 751 | gen5_blit_tex(struct sna *sna, |
|
- | 752 | uint8_t op, bool scale, |
|
- | 753 | PixmapPtr src, struct kgem_bo *src_bo, |
|
- | 754 | PixmapPtr mask,struct kgem_bo *mask_bo, |
|
- | 755 | PixmapPtr dst, struct kgem_bo *dst_bo, |
|
- | 756 | int32_t src_x, int32_t src_y, |
|
- | 757 | int32_t msk_x, int32_t msk_y, |
|
- | 758 | int32_t dst_x, int32_t dst_y, |
|
- | 759 | int32_t width, int32_t height, |
|
- | 760 | struct sna_composite_op *tmp); |
|
- | 761 | ||
- | 762 | static bool |
|
- | 763 | gen6_blit_tex(struct sna *sna, |
|
- | 764 | uint8_t op, bool scale, |
|
- | 765 | PixmapPtr src, struct kgem_bo *src_bo, |
|
- | 766 | PixmapPtr mask,struct kgem_bo *mask_bo, |
|
- | 767 | PixmapPtr dst, struct kgem_bo *dst_bo, |
|
- | 768 | int32_t src_x, int32_t src_y, |
|
- | 769 | int32_t msk_x, int32_t msk_y, |
|
- | 770 | int32_t dst_x, int32_t dst_y, |
|
- | 771 | int32_t width, int32_t height, |
|
- | 772 | struct sna_composite_op *tmp); |
|
- | 773 | ||
- | 774 | static bool |
|
- | 775 | gen7_blit_tex(struct sna *sna, |
|
- | 776 | uint8_t op, bool scale, |
|
- | 777 | PixmapPtr src, struct kgem_bo *src_bo, |
|
- | 778 | PixmapPtr mask,struct kgem_bo *mask_bo, |
|
- | 779 | PixmapPtr dst, struct kgem_bo *dst_bo, |
|
- | 780 | int32_t src_x, int32_t src_y, |
|
- | 781 | int32_t msk_x, int32_t msk_y, |
|
- | 782 | int32_t dst_x, int32_t dst_y, |
|
- | 783 | int32_t width, int32_t height, |
|
- | 784 | struct sna_composite_op *tmp); |
|
728 | 785 |