Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix the max vertex shader input limit

2013-05-02 Thread Marek Olšák
There is a single limit in OpenGL - GL_MAX_VERTEX_ATTRIBS, and there is one-to-one mapping between vertex array bindings and vertex shader inputs. Anyway, the core Mesa limit is 16 at the moment and I don't plan to change it (the vbo module has to analyze all available vertex attribs no matter how

Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix the max vertex shader input limit

2013-05-02 Thread Vadim Girlin
On 05/02/2013 07:55 PM, Marek Olšák wrote: AFAIK, there are 16 fetch shader resources. These are the resource slots for r600: Ah, you are right (though it's higher on EG as Alex wrote). Anyway, I'm not against your patch, I just wanted to understand where this limit comes from. I think this ca

Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix the max vertex shader input limit

2013-05-02 Thread Alex Deucher
On Thu, May 2, 2013 at 11:55 AM, Marek Olšák wrote: > AFAIK, there are 16 fetch shader resources. These are the resource > slots for r600: > > [offset .. +count] > PS: 0 .. +160 > VS: 160 .. +160 > FS: 320 .. +16 > GS: 336 .. +160 It's bigger on evergreen: PS: 0.. +176 VS: 176.. +160 GS: 336..

Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix the max vertex shader input limit

2013-05-02 Thread Marek Olšák
AFAIK, there are 16 fetch shader resources. These are the resource slots for r600: [offset .. +count] PS: 0 .. +160 VS: 160 .. +160 FS: 320 .. +16 GS: 336 .. +160 Marek On Thu, May 2, 2013 at 5:04 PM, Vadim Girlin wrote: > On 05/02/2013 11:06 AM, Michel Dänzer wrote: >> >> On Don, 2013-05-02

Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix the max vertex shader input limit

2013-05-02 Thread Vadim Girlin
On 05/02/2013 11:06 AM, Michel Dänzer wrote: On Don, 2013-05-02 at 05:45 +0200, Marek Olšák wrote: --- src/gallium/drivers/radeonsi/radeonsi_pipe.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeon

Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix the max vertex shader input limit

2013-05-02 Thread Marek Olšák
Alright. I'm deleting the patch. Marek On Thu, May 2, 2013 at 9:06 AM, Michel Dänzer wrote: > On Don, 2013-05-02 at 05:45 +0200, Marek Olšák wrote: >> --- >> src/gallium/drivers/radeonsi/radeonsi_pipe.c |2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/src/gallium/d

Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix the max vertex shader input limit

2013-05-02 Thread Christian König
Am 02.05.2013 09:06, schrieb Michel Dänzer: On Don, 2013-05-02 at 05:45 +0200, Marek Olšák wrote: --- src/gallium/drivers/radeonsi/radeonsi_pipe.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeons

Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix the max vertex shader input limit

2013-05-02 Thread Michel Dänzer
On Don, 2013-05-02 at 05:45 +0200, Marek Olšák wrote: > --- > src/gallium/drivers/radeonsi/radeonsi_pipe.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c > b/src/gallium/drivers/radeonsi/radeonsi_pipe.c > index c923c67..3

[Mesa-dev] [PATCH 3/3] radeonsi: fix the max vertex shader input limit

2013-05-01 Thread Marek Olšák
--- src/gallium/drivers/radeonsi/radeonsi_pipe.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c index c923c67..3b9be54 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c +++