[Mesa-dev] [PATCHv2 1/9] dri: add putImageShm and getImageShm to swrastLoader

2015-06-15 Thread Marc-André Lureau
Add new APIa to put and get an image using shared memory. Instead of only passing the data pointer, 3 arguments are given: the shmid, the data offset and the shmaddr. Bump interface version. --- include/GL/internal/dri_interface.h | 18 +- 1 file changed, 17 insertions(+), 1 delet

Re: [Mesa-dev] [PATCHv2 1/9] dri: add putImageShm and getImageShm to swrastLoader

2015-06-15 Thread Boyan Ding
On 06/15/2015 09:34 PM, Marc-André Lureau wrote: Add new APIa to put and get an image using shared memory. Instead of only passing the data pointer, 3 arguments are given: the shmid, the data offset and the shmaddr. Bump interface version. --- include/GL/internal/dri_interface.h | 18 +

Re: [Mesa-dev] [PATCHv2 1/9] dri: add putImageShm and getImageShm to swrastLoader

2015-06-15 Thread Boyan Ding
On 06/15/2015 10:09 PM, Boyan Ding wrote: > On 06/15/2015 09:34 PM, Marc-André Lureau wrote: >> Add new APIa to put and get an image using shared memory. Instead of >> only >> passing the data pointer, 3 arguments are given: the shmid, the data >> offset and the shmaddr. >> >> Bump interface vers

Re: [Mesa-dev] [PATCHv2 1/9] dri: add putImageShm and getImageShm to swrastLoader

2015-06-15 Thread Marc-André Lureau
Hi On Mon, Jun 15, 2015 at 4:51 PM, Boyan Ding wrote: > Sorry I was in a rush when replying this. After reading the rest of the > patches > I saw you checked if the functions added are really implemented. But I > do think > we should change the version of swrastLoader in egl/x11 to 2. > We coul

Re: [Mesa-dev] [PATCHv2 1/9] dri: add putImageShm and getImageShm to swrastLoader

2015-06-15 Thread Marek Olšák
Hi, FWIW, drivers shouldn't use the *_VERSION definitions from dri_interface.h. If they do, it's a bug. Marek On Mon, Jun 15, 2015 at 5:38 PM, Marc-André Lureau wrote: > Hi > > On Mon, Jun 15, 2015 at 4:51 PM, Boyan Ding wrote: >> >> Sorry I was in a rush when replying this. After reading the