On Mon, Jan 4, 2010 at 11:12 PM, Luca Barbieri <l...@luca-barbieri.com> wrote:
> Currently DRI2 always calls texture_from_shared_handle on validate.
> This may cause problems due if it is called multiple times on the same 
> handle, since multiple struct pipe_texture pointing to the same GEM buffer 
> will be created.
> On some drivers, this results in pushbuffers being submitted with different 
> local GEM buffers pointing to the same kernel object, causing the kernel to 
> complain about duplicated buffer in pushbuffer submission.
> This scenario does not usually happen with the current code because it checks 
> whether the size changed before requesting textures.
> However, this check will be replaced in the next patch, because it doesn't 
> play well with having the same drawable bound to multiple contexts, and 
> doesn't play well with allowing the user to call ->validate directly through 
> eglGetGalliumTexturesMESA.
This looks good.  Do you mind re-create this patch without the
dependency on the depth/stencil patch?

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to