[cairo] Information required for cairo gl backend regarding CAIRO_OPERATOR_SOURCE

Yuanhan Liu yuanhan.liu at linux.intel.com
Tue May 29 19:50:59 PDT 2012


On Tue, May 29, 2012 at 09:34:28AM +0000, SUMIT PANWAR wrote:
> Hi,
> 
> I have attached the sample code for the issue. It takes command line argument
> to execute for OPERATOR SRC /OPERATOR OVER and to use cairo_paint or cairo_fill
> like
> 
> ./sample  ------->>>> EGL_BACKEND, ROP OVER WITH CLIP (works)
> ./sample  -rop_source ------> ROP_SOURCE  (NOT working)

Works fine here ;) 


Due to it's a gl error you got, I guess it would be good if you can
share some info about your gl driver. Here it worked well with the
latest mesa and cairo code.

Thanks,
Yuanhan Liu


> ./sample  -rop_source  -cairo_fill ------> ROP_SOURCE WITH FILL (works)
> 
> The attached code uses X window to render the final output.
> 
> Please let me know if there is any issue in the sample.
> 
>  
> 
> Thanks,
> 
> Sumit
> 
>  
> 
> ------- Original Message -------
> 
> Sender : Yuanhan Liu<yuanhan.liu at linux.intel.com>
> 
> Date : May 29, 2012 10:51 (GMT+09:00)
> 
> Title : Re: [cairo] Information required for cairo gl backend regarding
> CAIRO_OPERATOR_SOURCE
> 
>  
> 
> On Mon, May 28, 2012 at 02:05:22PM +0000, SUMIT PANWAR wrote:
> > Hi,
> >
> > We are writing some test cases to compare cairo gl backend with cairo image
> > backend.
> >
> > 1) Image clipping does not work for CAIRO_OPERATOR_SOURCE.
> >
> > Though it works with bounded rectangle with cairo_fill.
> >
> > Below applicaiton code does NOT work. It throws gl error 1282(Invalid
> > Operation)
> >
> > ---------------------------------------------------------
> > cairo_rectangle(m_cr, 0, 0, width,height);
> > cairo_clip(m_cr);
> > cairo_set_source_surface(m_cr,glSrcSurface, 0 , 0);
> > cairo_paint(m_cr);
> > ---------------------------------------------------------
> > What works is below:
> > -------------------------
> > cairo_rectangle(m_cr, 0, 0, width,height);
> > cairo_set_source_surface(m_cr, glSrcSurface, 0 , 0);
> > cairo_fill(m_cr);
> > -------------------------
> 
> Hi,
> 
> It would be good if you attach a full test code that can produce your
> issue here.
> 
> Thanks,
> Yuanhan Liu
> 
> >
> > Image clipping with image surface works well.
> >
> > Please suggest waht could be the issue.
> >
> > Thanks in advance,
> >
> > Sumit
> >
> >  
> >
> >  
> >
> > [cid]
> >
> > *
> 
> 
> 
> > --
> > cairo mailing list
> > cairo at cairographics.org
> > http://lists.cairographics.org/mailman/listinfo/cairo
> 
> 
>  
> 
>  
> 
>  
> 
> [cid]
> 
> *






More information about the cairo mailing list