Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-30 Thread Erik Faye-Lund
On Mon, Sep 28, 2015 at 4:39 PM, Roland Scheidegger wrote: > > In short, for simplicity, only things were sharable which were really > required to be shared (pretty much just actual resources - and yes that > doesn't work too well for GL neither as you can't share sampler/rt >

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-30 Thread Roland Scheidegger
Am 30.09.2015 um 11:41 schrieb Erik Faye-Lund: > On Mon, Sep 28, 2015 at 4:39 PM, Roland Scheidegger > wrote: >> >> In short, for simplicity, only things were sharable which were really >> required to be shared (pretty much just actual resources - and yes that >> doesn't work

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-30 Thread Marek Olšák
On Wed, Sep 30, 2015 at 3:53 PM, Roland Scheidegger wrote: > Am 30.09.2015 um 11:41 schrieb Erik Faye-Lund: >> On Mon, Sep 28, 2015 at 4:39 PM, Roland Scheidegger >> wrote: >>> >>> In short, for simplicity, only things were sharable which were really >>>

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Rob Clark
On Mon, Sep 28, 2015 at 8:55 AM, Jose Fonseca wrote: > > >> I see only 2 options out of this: >> >> 1) Removing the context pointer from the shader keys. If drivers need >> this, they should handle it by themselves. This will simplify st/mesa, >> because TCS, TES, GS won't

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Roland Scheidegger
Am 28.09.2015 um 15:51 schrieb Marek Olšák: > On Mon, Sep 28, 2015 at 2:55 PM, Jose Fonseca wrote: >> On 27/09/15 19:14, Marek Olšák wrote: >>> >>> Hi, >>> >>> For some reason, st/mesa assumes that shaders can't be shared by >>> multiple contexts and therefore has a context

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Jose Fonseca
On 28/09/15 15:30, Rob Clark wrote: On Mon, Sep 28, 2015 at 8:55 AM, Jose Fonseca wrote: I see only 2 options out of this: 1) Removing the context pointer from the shader keys. If drivers need this, they should handle it by themselves. This will simplify st/mesa,

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Marek Olšák
On Mon, Sep 28, 2015 at 11:59 PM, Jose Fonseca wrote: > On 28/09/15 21:21, Marek Olšák wrote: >> >> On Mon, Sep 28, 2015 at 9:28 PM, Jose Fonseca wrote: >>> >>> On 28/09/15 14:51, Marek Olšák wrote: On Mon, Sep 28, 2015 at 2:55 PM, Jose

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Jose Fonseca
On 28/09/15 21:21, Marek Olšák wrote: On Mon, Sep 28, 2015 at 9:28 PM, Jose Fonseca wrote: On 28/09/15 14:51, Marek Olšák wrote: On Mon, Sep 28, 2015 at 2:55 PM, Jose Fonseca wrote: On 27/09/15 19:14, Marek Olšák wrote: Hi, For some reason,

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Jose Fonseca
On 28/09/15 14:51, Marek Olšák wrote: On Mon, Sep 28, 2015 at 2:55 PM, Jose Fonseca wrote: On 27/09/15 19:14, Marek Olšák wrote: Hi, For some reason, st/mesa assumes that shaders can't be shared by multiple contexts and therefore has a context pointer in shader keys.

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Jose Fonseca
On 27/09/15 19:14, Marek Olšák wrote: Hi, For some reason, st/mesa assumes that shaders can't be shared by multiple contexts and therefore has a context pointer in shader keys. I'd like to get rid of this dependency, because there is no reason why shaders would need to be tied to a context. In

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Marek Olšák
On Mon, Sep 28, 2015 at 9:28 PM, Jose Fonseca wrote: > On 28/09/15 14:51, Marek Olšák wrote: >> >> On Mon, Sep 28, 2015 at 2:55 PM, Jose Fonseca wrote: >>> >>> On 27/09/15 19:14, Marek Olšák wrote: Hi, For some reason, st/mesa

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Marek Olšák
On Mon, Sep 28, 2015 at 2:55 PM, Jose Fonseca wrote: > On 27/09/15 19:14, Marek Olšák wrote: >> >> Hi, >> >> For some reason, st/mesa assumes that shaders can't be shared by >> multiple contexts and therefore has a context pointer in shader keys. >> I'd like to get rid of

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-27 Thread Ilia Mirkin
On Sun, Sep 27, 2015 at 2:14 PM, Marek Olšák wrote: > Hi, > > For some reason, st/mesa assumes that shaders can't be shared by > multiple contexts and therefore has a context pointer in shader keys. > I'd like to get rid of this dependency, because there is no reason why >

[Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-27 Thread Marek Olšák
Hi, For some reason, st/mesa assumes that shaders can't be shared by multiple contexts and therefore has a context pointer in shader keys. I'd like to get rid of this dependency, because there is no reason why shaders would need to be tied to a context. In fact, shaders don't even need a device,

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-27 Thread Marek Olšák
On Sun, Sep 27, 2015 at 8:21 PM, Ilia Mirkin wrote: > On Sun, Sep 27, 2015 at 2:14 PM, Marek Olšák wrote: >> Hi, >> >> For some reason, st/mesa assumes that shaders can't be shared by >> multiple contexts and therefore has a context pointer in shader keys.

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-27 Thread Marek Olšák
On Sun, Sep 27, 2015 at 10:41 PM, Ilia Mirkin wrote: > On Sun, Sep 27, 2015 at 2:25 PM, Marek Olšák wrote: >> On Sun, Sep 27, 2015 at 8:21 PM, Ilia Mirkin wrote: >>> On Sun, Sep 27, 2015 at 2:14 PM, Marek Olšák

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-27 Thread Ilia Mirkin
On Sun, Sep 27, 2015 at 2:25 PM, Marek Olšák wrote: > On Sun, Sep 27, 2015 at 8:21 PM, Ilia Mirkin wrote: >> On Sun, Sep 27, 2015 at 2:14 PM, Marek Olšák wrote: >>> Hi, >>> >>> For some reason, st/mesa assumes that shaders can't be