diff options
author | Maciej Cencora <m.cencora@gmail.com> | 2009-04-16 17:50:13 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-04-17 11:27:31 +1000 |
commit | d7d5c97a215e6845ffa9fc60cee52da6a2d3148a (patch) | |
tree | 303b520c8cfe1bbaf41e745671cf2fa35c97b74f /docs/MESA_shader_debug.spec | |
parent | a92bc56e2428e4219e0eaaa6f142c6cc60fee710 (diff) |
r300: cleanup frag prog setup a little
Use proper fields for marking if fp is translated, and if is translated succesfully.
Now if fp gets translated (even unsuccesfully) fp->translated is true. If the translation failed (i.e. because we exceeded limit of
maximum texture indirections) the fp->error is set. With a little updated fallback function it prevents non native fragment programs
from beeing translated with every frame (the translation would fail anyway so there's no point to try again).
Also implement IsProgramNative function for GL_FRAGMENT_PROGRAM_ARB (it should give some performance boost in apps that checks if
program is native and falls back to simpler shader to meet hw limits if necessary) and cleanup indentation (remove whitespaces on empty
lines).
Diffstat (limited to 'docs/MESA_shader_debug.spec')
0 files changed, 0 insertions, 0 deletions