[Mesa-dev] GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB on r300g

Tom Stellard tstellar at gmail.com
Fri Apr 22 22:02:33 PDT 2011


On Fri, Apr 22, 2011 at 07:19:36PM +0200, Sven Arvidsson wrote:
> On Fri, 2011-04-22 at 16:46 +0200, Marek Olšák wrote:
> > That page seems to lie.
> > 
> > The R500 limits are:
> > - 1024 vertex shader instructions
> > - 512 fragment shader instructions
> 
> I remembered that I still have an XP partition around, so I ran GLinfo
> myself, and it seems to report the same:
> http://whiz.se/temp/x1950pro.htm
> 
> I guess the application itself could be buggy though, is there any other
> way of confirming the number of instructions?
> 
> > You should get these values from 'glxinfo -l'.
> 
> Right, that was what I compared the GLinfo output with:
> 
>     GL_FRAGMENT_PROGRAM_ARB:
>         GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 16384
>         GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 512
>         GL_MAX_PROGRAM_TEMPORARIES_ARB = 256
>         GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 128
>         GL_MAX_PROGRAM_PARAMETERS_ARB = 64
>         GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 256
>         GL_MAX_PROGRAM_ATTRIBS_ARB = 12
>         GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 10
>         GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0
>         GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0
>         GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 1024
>         GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 256
>         GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 16384
>         GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 16384
>         GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 16384
>         GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 512
>         GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 512
>         GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 511
>

R500 cards do support 1024 fragment shader instructions (512 ALU + 512 TEX), so I
think the value of GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB should be 1024.

-Tom


More information about the mesa-dev mailing list