Re: [Mesa-dev] [PATCH 2/4] st/dri2: Add shared flag to missing locations

2015-10-22 Thread Erik Faye-Lund
On Thu, Oct 22, 2015 at 12:18 PM, Marek Olšák wrote: > On Thu, Oct 22, 2015 at 10:56 AM, Erik Faye-Lund wrote: >> On Thu, Oct 22, 2015 at 10:54 AM, Marek Olšák wrote: >>> On Thu, Oct 22, 2015 at 10:22 AM, Erik Faye-Lund >>> wrote: On Wed, Oct 21, 2015 at 10:34 PM, Marek Olšák wrote:

Re: [Mesa-dev] [PATCH 2/4] st/dri2: Add shared flag to missing locations

2015-10-22 Thread Marek Olšák
On Thu, Oct 22, 2015 at 10:56 AM, Erik Faye-Lund wrote: > On Thu, Oct 22, 2015 at 10:54 AM, Marek Olšák wrote: >> On Thu, Oct 22, 2015 at 10:22 AM, Erik Faye-Lund wrote: >>> On Wed, Oct 21, 2015 at 10:34 PM, Marek Olšák wrote: On Wed, Oct 21, 2015 at 12:28 PM, Axel Davy wrote: > The P

Re: [Mesa-dev] [PATCH 2/4] st/dri2: Add shared flag to missing locations

2015-10-22 Thread Erik Faye-Lund
On Thu, Oct 22, 2015 at 10:54 AM, Marek Olšák wrote: > On Thu, Oct 22, 2015 at 10:22 AM, Erik Faye-Lund wrote: >> On Wed, Oct 21, 2015 at 10:34 PM, Marek Olšák wrote: >>> On Wed, Oct 21, 2015 at 12:28 PM, Axel Davy wrote: The PIPE_BIND_SHARED flag should be added whenever the resource

Re: [Mesa-dev] [PATCH 2/4] st/dri2: Add shared flag to missing locations

2015-10-22 Thread Marek Olšák
On Thu, Oct 22, 2015 at 10:22 AM, Erik Faye-Lund wrote: > On Wed, Oct 21, 2015 at 10:34 PM, Marek Olšák wrote: >> On Wed, Oct 21, 2015 at 12:28 PM, Axel Davy wrote: >>> The PIPE_BIND_SHARED flag should be added whenever >>> the resource may be shared with another process. >>> >>> In particular i

Re: [Mesa-dev] [PATCH 2/4] st/dri2: Add shared flag to missing locations

2015-10-22 Thread Erik Faye-Lund
On Wed, Oct 21, 2015 at 10:34 PM, Marek Olšák wrote: > On Wed, Oct 21, 2015 at 12:28 PM, Axel Davy wrote: >> The PIPE_BIND_SHARED flag should be added whenever >> the resource may be shared with another process. >> >> In particular if the resource is imported, or may >> be exported, the flag shou

Re: [Mesa-dev] [PATCH 2/4] st/dri2: Add shared flag to missing locations

2015-10-21 Thread Marek Olšák
On Wed, Oct 21, 2015 at 12:28 PM, Axel Davy wrote: > The PIPE_BIND_SHARED flag should be added whenever > the resource may be shared with another process. > > In particular if the resource is imported, or may > be exported, the flag should be used. This can't be enforced. EGL_MESA_image_dma_buf_e

[Mesa-dev] [PATCH 2/4] st/dri2: Add shared flag to missing locations

2015-10-21 Thread Axel Davy
The PIPE_BIND_SHARED flag should be added whenever the resource may be shared with another process. In particular if the resource is imported, or may be exported, the flag should be used. Signed-off-by: Axel Davy --- src/gallium/state_trackers/dri/dri2.c | 9 +++-- src/gallium/state