summaryrefslogtreecommitdiff
path: root/src/mesa/shader
AgeCommit message (Collapse)Author
2005-07-22Make the vertex program source register Index field a signed int sinceBrian Paul
relative addressing can be negative. Change some GLuint indexes to GLint in the t_vp_build.c file. Added PROGRAM_UNDEFINED token for initializing the register File field to avoid a gcc 4.0 warning.
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-07-01fix typo in assertionsBrian Paul
2005-06-30added newline at end of fileBrian Paul
2005-06-30Add a set of predicate functions for testing matrices instead of directlyBrian Paul
testing the flags field. Move definition of all the MAT_FLAGs into the m_matrix.c file since they're now private.
2005-06-08Use ALIGN_MALLOC for parameter lists.Keith Whitwell
2005-06-07Add a VP_MAX_OPCODE entry to allow engines with internal opcodes toKeith Whitwell
place them sensibly.
2005-06-01 Committing in .Jouk Jansen
OpenVMS makefile added Added Files: Mesa/src/mesa/shader/grammar/descrip.mms ----------------------------------------------------------------------
2005-06-01 Committing in .Jouk Jansen
Update OpneVMS compilesupport Modified Files: Mesa/src/mesa/shader/descrip.mms Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/shader/slang/slang_compile.c Mesa/src/mesa/shader/slang/slang_storage.c Mesa/src/mesa/shader/slang/slang_storage.h ----------------------------------------------------------------------
2005-05-25change local var names from "asm" to "assem" - I guess it causedMichal Krol
gcc 3.3.5 to break, but not tested it
2005-05-25a small utility to convert .syn files to its binary forms;Michal Krol
does not require any command line params;
2005-05-25silencium gcc warningsMichal Krol
2005-05-25more slang codeMichal Krol
2005-05-25ncrease stack sizeMichal Krol
2005-05-25moved from mesa/shader to mesa/shader/grammarMichal Krol
2005-05-25remove the GLSL spec wording;Michal Krol
reorder some elementary operators; disable assignment "=" and equality "==" "!=" operators - they are handled internally by the assembly generator; fix minor typos
2005-05-25stand-alone vertsions of grammar_mesa - used by utilities;Michal Krol
DO NOT BUILD UNDER MESA
2005-05-25change the behaviour of enter and local_addr instructionsMichal Krol
2005-05-24moved to windows build dirKarl Schultz
2005-05-23silence gcc warningsKeith Whitwell
2005-05-20 Committing in .Jouk Jansen
Update openVMS compile support Modified Files: Mesa/progs/demos/descrip.mms Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/tnl/descrip.mms ----------------------------------------------------------------------
2005-05-19intermediate code generator (not finished);Michal Krol
generic back-end interpreter (interprets directly intermediate code)
2005-05-19add static_assert macroMichal Krol
2005-05-19fix info log grabbingMichal Krol
2005-05-11int -> size_t to fix compile on LP64.Adam Jackson
2005-05-10Fix some valgrind complaintsKeith Whitwell
2005-05-10Fix some valgrind complaintsKeith Whitwell
2005-05-10reduce the use of malloc and strdup for parameter listsKeith Whitwell
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-04Sort instructions for clarity.Keith Whitwell
2005-05-04Include negate information in disassembly output.Keith Whitwell
2005-05-04Mark unused registers as undefined so dissassemblers can recognizedKeith Whitwell
them easily.
2005-05-04Improve the quality of the disassembly output for fragment programs.Keith Whitwell
2005-05-04 Committing in .Jouk Jansen
OpenVMS compile update Modified Files: Mesa/src/mesa/shader/slang/descrip.mms ----------------------------------------------------------------------
2005-04-22Add more error checking.Michal Krol
2005-04-22Cosmetic changes.Michal Krol
2005-04-22Move some utility functions to slang_utility.c.Michal Krol
2005-04-22Provide precompiled binary versions of built-in library .gc sourcesMichal Krol
to dramatically improve shader compiling performance.
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-21use _mesa_pow() for LIT (bug 3087)Brian Paul
2005-04-20fix state.light[n].spot.direction.w value (bug 3083)Brian Paul
2005-04-18 Updates for OpenVMS : New makefilesJouk Jansen
added some type-casts Modified Files: Mesa/src/mesa/shader/descrip.mms Mesa/src/mesa/shader/program.c Mesa/src/mesa/shader/slang/slang_compile.c Mesa/src/mesa/shader/slang/slang_preprocess.c Added Files: Mesa/src/mesa/shader/slang/descrip.mms ----------------------------------------------------------------------
2005-04-15remove carriage returnsBrian Paul
2005-04-15Fix alpha value of STATE_LIGHTMODEL_SCENECOLOR. From the spec:Keith Whitwell
The "w" component of the program parameter variable is filled with the alpha component of the front diffuse material color. Make sure matrix inverses are uptodate also.
2005-04-15implement info log; parse #version directiveMichal Krol
2005-04-15slang preprocessorMichal Krol
2005-04-15slang #version directive syntaxMichal Krol
2005-04-15change __asm statement semanticsMichal Krol