Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-06 Thread Ian Romanick
On 02/04/2014 01:29 AM, Rogovin, Kevin wrote: > > >> I don't believe our hardware can support GL_ARB_shader_stencil_export. >> The render target write message can take RGBA, depth, and sample masks, >> but not stencil. Without that, it's not at all obvious how to implement it. > > There is a te

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-04 Thread Marek Olšák
On Tue, Feb 4, 2014 at 9:06 PM, Roland Scheidegger wrote: > Am 04.02.2014 13:19, schrieb Marek Olšák: >> On Tue, Feb 4, 2014 at 10:29 AM, Rogovin, Kevin >> wrote: >>> >>> I don't believe our hardware can support GL_ARB_shader_stencil_export. The render target write message can take RGB

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-04 Thread Roland Scheidegger
Am 04.02.2014 13:19, schrieb Marek Olšák: > On Tue, Feb 4, 2014 at 10:29 AM, Rogovin, Kevin > wrote: >> >> >>> I don't believe our hardware can support GL_ARB_shader_stencil_export. >>> The render target write message can take RGBA, depth, and sample masks, >>> but not stencil. Without that, it'

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-04 Thread Marek Olšák
On Tue, Feb 4, 2014 at 10:29 AM, Rogovin, Kevin wrote: > > >> I don't believe our hardware can support GL_ARB_shader_stencil_export. >> The render target write message can take RGBA, depth, and sample masks, >> but not stencil. Without that, it's not at all obvious how to implement it. > > There

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-04 Thread Rogovin, Kevin
> I don't believe our hardware can support GL_ARB_shader_stencil_export. > The render target write message can take RGBA, depth, and sample masks, > but not stencil. Without that, it's not at all obvious how to implement it. There is a terrible hack-ish way to do it, but I stress the word terri

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-03 Thread Kenneth Graunke
On 02/03/2014 12:54 AM, Rogovin, Kevin wrote: > Hi, > >> We can't do stencil blits with GLSL because no driver that uses meta can >> do the GL_ARB_shader_stencil_export extension. For depth and color >> blits, we can always write the values from the shader, and disable >> writes to the buffers us

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-03 Thread Alex Deucher
rds, > -Kevin Rogovin > > From: Ian Romanick [i...@freedesktop.org] > Sent: Sunday, February 02, 2014 5:45 PM > To: Rogovin, Kevin; mesa-dev@lists.freedesktop.org > Subject: Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits > >

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-03 Thread Rogovin, Kevin
he number of samples? or possible fancier filtering kernels? Best Regards, -Kevin Rogovin From: Ian Romanick [i...@freedesktop.org] Sent: Sunday, February 02, 2014 5:45 PM To: Rogovin, Kevin; mesa-dev@lists.freedesktop.org Subject: Re: [Mesa-dev] [PATCH 26/

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-02 Thread Ian Romanick
On 01/30/2014 09:51 AM, Rogovin, Kevin wrote: >> @@ -487,6 +486,7 @@ setup_shader_for_sampler(struct gl_context *ctx, struct >> glsl_sampler >> *sampler) >> "void main()\n" >> "{\n" >> " gl_FragCo

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-01-30 Thread Rogovin, Kevin
> @@ -487,6 +486,7 @@ setup_shader_for_sampler(struct gl_context *ctx, struct > glsl_sampler > *sampler) > "void main()\n" > "{\n" > " gl_FragColor = %s(texSampler, %s);\n" > +

[Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-01-29 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/mesa/drivers/common/meta.c | 108 + 1 file changed, 13 insertions(+), 95 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 380ee32..363b1ac 100644 --- a/