Subversion Repositories Kolibri OS

Rev

Rev 3039 | Rev 3243 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3039 Rev 3120
Line 678... Line 678...
678
    /* Add a breadcrumb for the completion of the batch buffer */
678
    /* Add a breadcrumb for the completion of the batch buffer */
679
    (void)i915_add_request(ring, file, NULL);
679
    (void)i915_add_request(ring, file, NULL);
680
}
680
}
Line 681... Line 681...
681
 
681
 
682
int blit_video(u32 hbitmap, int  dst_x, int dst_y,
682
int srv_blit_bitmap(u32 hbitmap, int  dst_x, int dst_y,
683
               int src_x, int src_y, u32 w, u32 h)
683
               int src_x, int src_y, u32 w, u32 h)
684
{
684
{
685
    drm_i915_private_t *dev_priv = main_device->dev_private;
685
    drm_i915_private_t *dev_priv = main_device->dev_private;
686
    struct intel_ring_buffer *ring;
686
    struct intel_ring_buffer *ring;
Line 711... Line 711...
711
    if(unlikely(context == NULL))
711
    if(unlikely(context == NULL))
712
        return -1;
712
        return -1;
713
 
713
 
Line 714... Line 714...
714
    GetWindowRect(&winrc);
714
    GetWindowRect(&winrc);
-
 
715
    {
-
 
716
        static warn_count;
-
 
717
 
-
 
718
        if(warn_count < 1)
-
 
719
        {
-
 
720
            printf("left %d top %d right %d bottom %d\n",
-
 
721
                    winrc.left, winrc.top, winrc.right, winrc.bottom);
-
 
722
            printf("bitmap width %d height %d\n", w, h);
-
 
723
            warn_count++;
-
 
724
        };
-
 
725
    };
-
 
726
 
Line 715... Line 727...
715
 
727
 
716
    dst_clip.xmin   = 0;
728
    dst_clip.xmin   = 0;
717
    dst_clip.ymin   = 0;
729
    dst_clip.ymin   = 0;
718
    dst_clip.xmax   = winrc.right-winrc.left;
730
    dst_clip.xmax   = winrc.right-winrc.left;
Line 850... Line 862...
850
      safe_sti(ifl);
862
      safe_sti(ifl);
851
    }
863
    }
852
#endif
864
#endif
853
 
865
 
Line -... Line 866...
-
 
866
    {
-
 
867
        static warn_count;
-
 
868
 
-
 
869
        if(warn_count < 1)
-
 
870
        {
-
 
871
            printf("blit width %d height %d\n",
-
 
872
                    width, height);
-
 
873
            warn_count++;
-
 
874
        };
-
 
875
    };
-
 
876
 
-
 
877
 
854
    if((context->cmd_buffer & 0xFC0)==0xFC0)
878
    if((context->cmd_buffer & 0xFC0)==0xFC0)
855
        context->cmd_buffer&= 0xFFFFF000;
879
        context->cmd_buffer&= 0xFFFFF000;
Line 856... Line 880...
856
 
880