[Mesa-dev] RFC: Increase gallium PIPE_MAX_SHADER_INPUTS/OUTPUTS

2010-07-08 Thread Brian Paul
PIPE_MAX_SHADER_INPUTS/OUTPUTS are currently set to 16 in p_state.h That's actually not enough to accomodate OpenGL's needs. For example, a Mesa vertex shader has these inputs: typedef enum { VERT_ATTRIB_POS = 0, VERT_ATTRIB_WEIGHT = 1, VERT_ATTRIB_NORMAL = 2, VERT_ATTRIB_COLOR0 =

Re: [Mesa-dev] RFC: Increase gallium PIPE_MAX_SHADER_INPUTS/OUTPUTS

2010-07-08 Thread Keith Whitwell
On Thu, 2010-07-08 at 08:36 -0700, Brian Paul wrote: > PIPE_MAX_SHADER_INPUTS/OUTPUTS are currently set to 16 in p_state.h > > That's actually not enough to accomodate OpenGL's needs. For example, > a Mesa vertex shader has these inputs: > > typedef enum > { > VERT_ATTRIB_POS = 0, > VER

Re: [Mesa-dev] RFC: Increase gallium PIPE_MAX_SHADER_INPUTS/OUTPUTS

2010-07-08 Thread Zack Rusin
On Thursday 08 July 2010 11:40:56 Keith Whitwell wrote: > On Thu, 2010-07-08 at 08:36 -0700, Brian Paul wrote: > > PIPE_MAX_SHADER_INPUTS/OUTPUTS are currently set to 16 in p_state.h > > > > That's actually not enough to accomodate OpenGL's needs. For example, > > a Mesa vertex shader has these i

[Mesa-dev] [Bug 10966] workaround to avoid the assert main/renderbuffer.c:2041: _mesa_add_renderbuffer:...

2010-07-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=10966 Andrey Melentyev changed: What|Removed |Added CC|r...@yandex.ru | -- Configure bugmail: https://bugs.

Re: [Mesa-dev] RFC: Increase gallium PIPE_MAX_SHADER_INPUTS/OUTPUTS

2010-07-08 Thread Corbin Simpson
On Thu, Jul 8, 2010 at 8:50 AM, Zack Rusin wrote: > On Thursday 08 July 2010 11:40:56 Keith Whitwell wrote: >> On Thu, 2010-07-08 at 08:36 -0700, Brian Paul wrote: >> > PIPE_MAX_SHADER_INPUTS/OUTPUTS are currently set to 16 in p_state.h >> > >> > That's actually not enough to accomodate OpenGL's n

[Mesa-dev] r300 compiler scheduler fixes

2010-07-08 Thread Tom Stellard
This patch and also http://lists.freedesktop.org/archives/mesa-dev/2010-July/001252.html should fix all the outstanding scheduler bugs. This patch adds a register rename pass that converts the code into quasi-SSA form, which makes it easier for the scheduler to schedule TEX blocks. This fixes: ht

[Mesa-dev] [PATCH] r300/compiler: Add a register rename pass.

2010-07-08 Thread Tom Stellard
This pass renames register in order to make it easier for the pair scheduler to group TEX instructions together. --- src/mesa/drivers/dri/r300/compiler/Makefile|1 + src/mesa/drivers/dri/r300/compiler/SConscript |1 + src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c | 11 +

Re: [Mesa-dev] [PATCH] r300/compiler: Add a register rename pass.

2010-07-08 Thread Matt Turner
On Thu, Jul 8, 2010 at 7:01 PM, Tom Stellard wrote: > This pass renames register in order to make it easier for the pair > scheduler to group TEX instructions together. > --- >  src/mesa/drivers/dri/r300/compiler/Makefile        |    1 + >  src/mesa/drivers/dri/r300/compiler/SConscript      |    1