[Mesa-dev] GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB on r300g
maraeo at gmail.com
Fri Apr 22 11:02:02 PDT 2011
On Fri, Apr 22, 2011 at 7:19 PM, Sven Arvidsson <sa at whiz.se> 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:
> I guess the application itself could be buggy though, is there any other
> way of confirming the number of instructions?
I think Catalyst is buggy, but that wouldn't surprise me.
> > You should get these values from 'glxinfo -l'.
> Right, that was what I compared the GLinfo output with:
> 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
> > Some of the shader model 3.0 requirements are:
> > - minimum of 512 instructions must be supported in both vertex and
> > shaders (met)
> > - GL_ARB_shader_texture_lod (not met)
> > The latter appears to be the culprit.
> Seems like Wine only enables 3.0 if the number of instructions exceeds
> 512, probably just to play it safe.
Wine developers now know about this issue and will probably fix it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mesa-dev