Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-11 Thread Zack Rusin
On Thursday 10 December 2009 16:26:33 Younes Manton wrote: On Thu, Dec 10, 2009 at 3:34 PM, Zack Rusin za...@vmware.com wrote: On Thursday 10 December 2009 15:14:46 Younes Manton wrote: OK, so we seem to be on the same page here, pipe_context will get some more functions. That's what I was

Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-10 Thread Zack Rusin
On Wednesday 09 December 2009 20:30:56 Igor Oliveira wrote: Hi Zack, 1) agreed. OpencCL is a complete different project and should exist in a different repository. 1.1) Well use Gallium as CPU backend is a software dilemma: All problems in computer science can be solved by another level of

Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-10 Thread Zack Rusin
On Thursday 10 December 2009 11:25:48 Younes Manton wrote: On Thu, Dec 10, 2009 at 5:32 AM, Zack Rusin za...@vmware.com wrote: On Wednesday 09 December 2009 20:30:56 Igor Oliveira wrote: Hi Zack, 1) agreed. OpencCL is a complete different project and should exist in a different

Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-10 Thread Younes Manton
On Thu, Dec 10, 2009 at 11:44 AM, Zack Rusin za...@vmware.com wrote: On Thursday 10 December 2009 11:25:48 Younes Manton wrote: On Thu, Dec 10, 2009 at 5:32 AM, Zack Rusin za...@vmware.com wrote: On Wednesday 09 December 2009 20:30:56 Igor Oliveira wrote: Hi Zack, 1) agreed. OpencCL is a

Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-10 Thread Zack Rusin
On Thursday 10 December 2009 14:35:47 Younes Manton wrote: Well how do we keep the compute state seperate from the 3D state, and how do you mix the two? It's really the same state. You bind a compute shader and execute it. It doesn't affect the rest of your state. Compute binds the buffers

Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-10 Thread Zack Rusin
On Thursday 10 December 2009 15:14:46 Younes Manton wrote: OK, so we seem to be on the same page here, pipe_context will get some more functions. That's what I was originally asking about, will pipe_context grow or will there be a new kind of context? From my POV we would end up in roughly the

Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-10 Thread Younes Manton
On Thu, Dec 10, 2009 at 3:34 PM, Zack Rusin za...@vmware.com wrote: On Thursday 10 December 2009 15:14:46 Younes Manton wrote: OK, so we seem to be on the same page here, pipe_context will get some more functions. That's what I was originally asking about, will pipe_context grow or will there

[Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-09 Thread Igor Oliveira
These patchs implements and implements stub context methods in OpenCL. Almost all operation in OpenCL use a context. The patch implements the gallium3d context and implements the methods below: -clCreateContext -clCreateContexFromType -clRetainContext -clReleaseContext ps: probably i show break

Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-09 Thread Zack Rusin
On Wednesday 09 December 2009 13:29:05 Igor Oliveira wrote: These patchs implements and implements stub context methods in OpenCL. Almost all operation in OpenCL use a context. The patch implements the gallium3d context and implements the methods below: -clCreateContext

Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-09 Thread Igor Oliveira
Hi Zack, 1) agreed. OpencCL is a complete different project and should exist in a different repository. 1.1) Well use Gallium as CPU backend is a software dilemma: All problems in computer science can be solved by another level of indirection...except for the problem of too many layers of