summaryrefslogtreecommitdiff
path: root/src/mesa/shader/arbprogparse.c
AgeCommit message (Collapse)Author
2005-11-08remove unneeded #includesBrian Paul
2005-11-05Unify vertex/fragment program instuctions.Brian Paul
Based on patch by Ian (#4967) but also unify instruction opcodes.
2005-11-03Streamline code generation by using a fixed size instruction buffer inBrian Paul
arb_program struct.
2005-11-03fix typo, minor clean-upsBrian Paul
2005-11-02Rename FRAG_OUTPUT_* tokens to FRAG_RESULT_* to match vertex program conventionBrian Paul
2005-11-01Several fp and vp tweaks:Keith Whitwell
- Renumber VERT_RESULT_* values so that they match the numbers of the corresponding FRAG_ATTRIB_ values. - Add ctx->VertexProgram._Current and FragmentProgram._Current values which point to either the current client-supplied program if enabled, or otherwise to the current mesa-internal program. Thus this program is always the correct one for the current state, providing that the mesa flags to turn on automatic generation are enabled. - Add callbacks to ctx->Driver.BindProgram() in texenvprogram.c and t_vp_build.c so that the driver knows when the generated program changes. This is cleaner than trying to code all the possible _NEW_* flags into the driver, and more precise as well. - Add a UsesKill flag to identify fragment programs with that instruction, as these can require special treatment. - Move the FRAG_OUTPUT values to mtypes.h, near to similar defn's.
2005-11-01Re-org and clean-up of vertx/fragment program limits (instructions,Brian Paul
temporaries, parameters, etc). glGetProgramivARB() now returns all the right things. Updated i915 and r300 code to initialize program native limits and current program's native instruction/temporary/etc counts.
2005-10-30Simplify parse_attrib_binding().Brian Paul
Now only use VERT_ATTRIB_* and FRAG_ATTRIB_* tokens instead of hard-coded numbers. Note: previous check-in did similarly for output register parsing.
2005-10-30Lots of clean-up in arb program parser.Brian Paul
Use new _mesa_init_fp/vp_instruction() function to initialize instructions.
2005-10-29Use MAKE_SWIZZLE4() macro in a few more places.Brian Paul
Clean up the parse_extended_swizzle_mask() and parse_swizzle_mask() functions.
2005-10-29s/lenght/length/Brian Paul
2005-10-29If parsing a program fails, don't change the vertex/fragment program object.Brian Paul
Specifically, don't attach a dummy program. This change also fixes an occasional segfault. Some code clean-ups. Use GLboolean instead of GLuint to return pass/fail.
2005-10-21fix broken SWZ instructionBrian Paul
2005-09-19additional wrapper updates, bug 4468Brian Paul
2005-09-16remove unused ctx varBrian Paul
2005-09-16use mesa import wrappers, bug 4468Brian Paul
2005-09-08be consistent in populating NegateBase fieldKeith Whitwell
2005-07-18Wrap every place that accesses a dispatch table with a macro. A new script-Ian Romanick
generated file, called src/mesa/glapi/dispatch.h, is added. This file contains three macros for each API function. It contains a GET, a SET, and a CALL. Each of the macros take a pointer to the context and a pointer to the dispatch table. In several threads on mesa3d-dev we discussed replacing _glapi_add_entrypoint with a new function called _glapi_add_dispatch. For this discussion, the important difference between the two is that the caller of _glapi_add_dispatch does *not* know what the dispatch offset will be at compile time. Because of this callers need to track the dispatch offset returned by _glapi_add_dispatch. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2 The downside is that driver code then has to access the dispatch table two different ways. It accesses it using structure tags (e.g., exec->Begin) for functions with fixed offsets and via a remap table (e.g., exec[ remap->NewExtensionFunction ]) for functions without fixed offsets. Yuck! Using the macros allows both types of functions to be accessed identically. If a driver needs to set a pointer for Begin, it does 'SET_Begin(ctx, exec, my_begin_function)'. If it needs to set a pointer for NewExtensionFunction, it does 'SET_NewExtensionFunction(ctx, exec, my_NewExtensionFunction_function)'. Furthermore, if at some point in the future a static offset is assigned for NewExtensionFunction, only the macros need to change (instead of every single place that accesses a table for that function). This code differs slightly from the originally posted patches in that the CALL, GET, and SET marcos no longer take a context pointer as a parameter. Brian Paul had suggested that the remap table could be stored as a global since it would be set at CreateScreen time and would be constant for all contexts. This change reflects that feedback. http://marc.theaimsgroup.com/?t=112087194700001&r=1&w=2
2005-07-01Set fp->Opcode for OP_TEX_KILL case, fix from Ben Skeggs.Keith Whitwell
2005-07-01comment-out some unused code to silence warningsBrian Paul
2005-05-05Port Mesa to build on a P64 platform (e.g., Win64). P64 platformsKarl Schultz
use 64-bit pointers and 32-bit longs. So, operations like casting pointers to unsigned long and back to pointer won't work. glheader.h now includes files to define uintptr_t, which should instead be used for this sort of operation. It is an integer type that is the same size as a pointer.
2005-05-04Mark unused registers as undefined so dissassemblers can recognizedKeith Whitwell
them easily.
2005-04-21Reduce the size of mesa's internal fragment and vertex programKeith Whitwell
representations by switching to packed structures for registers and instructions.
2005-04-14do not use isdigit() - can cause link errorsMichal Krol
2005-02-16fixed problems with parse_float() (fd.o bug 2520)Brian Paul
2005-01-19make sure the new instruction Data pointer is set to NULLBrian Paul
2005-01-17silence warningBrian Paul
2005-01-11aliasing was brokenMichal Krol
2004-12-14uint*t -> u_int*t changesAlan Hourihane
2004-10-24Bug #1682: Mesa core code that gets linked into DRI drivers should never callAdam Jackson
through the GL API directly, but should instead use the GL_CALL macro.
2004-10-21- use new program option values from arbprogram.synMichal Krol
- remove redundant check of parsed program target - remove redundant check of relative addressing range - use faster grammar interface
2004-10-11Fix strange white space that gcc didn't like.Felix Kuehling
2004-10-11Enable draw_buffers only if GL_ARB_draw_buffers string isMichal Krol
present in GL_EXTENSIONS string. Parse OPTION ARB_draw_buffers.
2004-10-04ARB_fp support for GL_ARB_draw_buffers (Karl Rasche)Brian Paul
2004-09-10reset error state before parsing (David Reveman)Brian Paul
2004-08-25Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul
1015696)
2004-08-22cast to fix a warning (in disabled code anyway)Brian Paul
2004-08-20enabled GL_ARB_texture_rectangleBrian Paul
2004-07-20error message fixups and some debug codeBrian Paul
2004-07-20fix compare w/ zero warnings (bug #988766)Brian Paul
2004-06-08fix parse error in sign of exponents (bug 968323)Brian Paul
2004-05-04Fix minor warnings found with g++.Brian Paul
2004-04-05 Committing in .Jouk Jansen
Correction on last commit (My FTP-server on linux is playing games with <CR>'s) Modified Files: Mesa/src/mesa/drivers/common/descrip.mms Mesa/src/mesa/main/descrip.mms Mesa/src/mesa/shader/arbprogparse.c Mesa/src/mesa/shader/descrip.mms Mesa/src/mesa/swrast/descrip.mms Mesa/src/mesa/tnl/descrip.mms ----------------------------------------------------------------------
2004-04-05 Committing in .Jouk Jansen
Updated OpenVMS compile support due to shader directory. Removed <CR>'s in arbprogparse.c Modified Files: Mesa/src/mesa/descrip.mms Mesa/src/mesa/drivers/common/descrip.mms Mesa/src/mesa/main/descrip.mms Mesa/src/mesa/shader/arbprogparse.c Mesa/src/mesa/shader/descrip.mms Mesa/src/mesa/swrast/descrip.mms Mesa/src/mesa/tnl/descrip.mms ----------------------------------------------------------------------
2004-03-30Reorder some code so we don't upset program state when there's a parsing error.Brian Paul
Be sure to assign program.Base.String pointer.
2004-03-29Accomodate ARB_fp XPD opcode separately from NV_fp's X2D.Keith Whitwell
2004-03-10Fixed a number of typos.Michal Krol
2004-03-04Initial changes after moving from src/mesa/main/.Michal Krol
Needs testing - it havent been even compiled yet.