summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* remove \n from warning message stringBrian Paul2005-06-301-2/+2
|
* Add a set of predicate functions for testing matrices instead of directlyBrian Paul2005-06-306-55/+39
| | | | | | testing the flags field. Move definition of all the MAT_FLAGs into the m_matrix.c file since they're now private.
* remove unused MEMSET16 macroBrian Paul2005-06-271-2/+0
|
* Get rid of the MESA_PBUFFER_ALLOC/FREE() macros.Brian Paul2005-06-273-61/+20
| | | | | If that stuff is still needed, lots of other updates are needed anyway. Also, some misc MALLOC/FREE -> _mesa_malloc/free() changes.
* fix for-loop in _mesa_GetDouble to avoid out of bounds memory readBrian Paul2005-06-262-2/+2
|
* check for null oldBuffer in _mesa_realloc(), cleaned up some commentsBrian Paul2005-06-261-11/+12
|
* Mammoth update to the Python code generator scripts that live inIan Romanick2005-06-211-1571/+1571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/mesa/glapi. Basically, the scripts that did simple things (like gl_offsets.py) were simple, and the scripts that did more complicated things (like glX_proto_send.py) were getting progressively more and more out of control. So, I re-write the foundation classes on which everything is based. One problem with the existing code is that the division between the GL API database representation and the way the output code is generated was either blury or nonexistant. The new code somewhat follows the Model-View-Controller pattern, minus the Controller. There is a distinct set of classes that model the API data, and there is a distinct set of classes that generate code from that data. One big change is in the class that represents GL functions (was glFunction, is now gl_function). There used to be an instance of this calls for each function and for each alias to that function. For example, there was an instance for PointParameterivSGIS, PointParameterivEXT, PointParameterivARB, and PointParameteriv. In the new code, there is one instance. Each instance has a list of entrypoint names for the function. In the next revision, this will allow a couple useful things. The script will be able to verify that the parameters, return type, and GLX protocol for a function and all it's aliases match. It will also allow aliases to be represented in the XML more compactly. Instead of repeating all the information, an alias can be listed as: <function name="PointParameterivARB" alias="PointParameterivEXT"/> Because the data representation was changed, the order that the alias functions are processed by the scripts also changed. This accounts for at least 2,700 of the ~3,600 lines of diffs in the generated code. Most of the remaining ~900 lines of diffs are the result of bugs *fixed* by the new scripts. The old scripts also generated code with some bugs in it. These bugs were discovered while the new code was being written. These changes were discussed on the mesa3d-dev mailing list back at the end of May: http://marc.theaimsgroup.com/?t=111714569000004&r=1&w=2 Xorg bug: 3197, 3208
* ran "make" after update to glX_proto_send.py.Jeremy Kolb2005-06-201-1568/+1568
|
* Define __FUNCTION__ as a preprocessor symbol in glheader.h if we're notBrian Paul2005-06-191-0/+11
| | | | using GCC or VMS.
* mingw changes (Nolan Leake)Brian Paul2005-06-131-0/+3
|
* Store compiled vertex program representations in a pointer in theKeith Whitwell2005-06-092-1/+2
| | | | | | | | | | | | | vertex_program struct. Allow switching between regular and vertex_program implementations of fixed function TNL with the MESA_TNL_PROG environment var (previously this required recompilation). Ensure program compilation only references program data, not the wider context. This means that compiled programs only need to be invalidated when the program string changes, not on other state changes.
* fix GL_ALPHA render-to-texture problem (Jon Smirl)Brian Paul2005-06-072-0/+7
|
* set OLD_RENDERBUFFER=0, need to clean up a few more things before totally ↵Brian Paul2005-06-042-2/+2
| | | | removing that
* added code to detect GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errorBrian Paul2005-06-011-3/+18
|
* add support for GL_RENDERBUFFER_RED/GREEN/BLUE/etc_SIZE_EXT querieBrian Paul2005-05-311-0/+57
|
* properly pop the GL_TEXTURE_GEN_ enable stateBrian Paul2005-05-271-0/+8
|
* Fix gl_enums.py so that enums that are listed with the same name inIan Romanick2005-05-261-2501/+2475
| | | | multiple places don't get generated multiple times.
* Cleanup some Windows junk.Karl Schultz2005-05-241-12/+16
|
* moved to windows build dirKarl Schultz2005-05-241-540/+0
|
* Change prototype for TextureMemCpy to return void* (was void).Karl Schultz2005-05-241-1/+1
|
* Import Thomas Helstrom's SSE memcpy code from the via X.org driver.Keith Whitwell2005-05-232-21/+35
| | | | | | Add a TextureMemCpy callback, called from texstore.c when copying texture data via the memcpy_texture() path. Enable this code in the via driver - 100% speedup in texdown.c results.
* Detect use of disabled textures as tex_env_crossbar sources.Keith Whitwell2005-05-231-8/+18
|
* Support ARB_texture_env_crossbar. Changes the way programs areKeith Whitwell2005-05-231-41/+119
| | | | | generated somewhat, with all TEX instructions now emitted at the head of the program.
* Restore the negate() function.Keith Whitwell2005-05-231-5/+33
| | | | Add Ben Skegg's ATI_texture_env_combine3 support.
* don't include strings.hBrian Paul2005-05-171-2/+0
|
* Don't use _mesa_swizzle_ubyte_image if all three texture formatsFelix Kuehling2005-05-161-0/+12
| | | | | | | involved in _mesa_textore_argb/rgba8888 (source, base-internal, destination) differ. _mesa_swizzle_ubyte_image knows only about two of the formats and can't handle the case that all three are different correctly. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3111.
* Deal better with indirection and indirection accounting, developedKeith Whitwell2005-05-161-33/+53
| | | | with Ben Skeggs.
* define M_E if neededBrian Paul2005-05-161-0/+5
|
* new MESA_DEBUG option: disassemKeith Whitwell2005-05-123-2/+6
|
* Rein in debug slightlyKeith Whitwell2005-05-121-1/+1
|
* Fix glean/conform problems. Don't generate so much output whenKeith Whitwell2005-05-111-26/+36
| | | | disassembling.
* Fix logic for allocating texture temporaries (Ben Skeggs).Keith Whitwell2005-05-111-15/+24
| | | | | Rename temp_flag, tex_temp_flag to make this clearer. Respect ctx->Const.MaxFragmentProgramTemps limit.
* Double-buffer generated instructions and only notify driver when theKeith Whitwell2005-05-101-1/+0
| | | | generated program differs from the previous one.
* Double-buffer generated instructions and only notify driver when theKeith Whitwell2005-05-101-8/+21
| | | | generated program differs from the previous one.
* Better driver notification on changes.Keith Whitwell2005-05-101-7/+10
|
* Temporary fix - delete and recreate texenvprogram so that driversKeith Whitwell2005-05-101-5/+10
| | | | notice when it changes.
* Committing in .Jouk Jansen2005-05-101-1/+14
| | | | | | | | | | OpenVMS compile support update for new buffer-code Modified Files: Mesa/src/mesa/drivers/x11/descrip.mms Mesa/src/mesa/main/descrip.mms Mesa/src/mesa/swrast/descrip.mms ----------------------------------------------------------------------
* Fix texenv segfault. Reported by Ben Skeggs.Keith Whitwell2005-05-101-0/+10
|
* Try not to use the same temp reg as a TXP destination more than once,Keith Whitwell2005-05-101-2/+40
| | | | | as this also constitutes a texture indirection. Reported by Ben Skeggs.
* Use driver functions to create TexEnvProgram, TnlProgramKeith Whitwell2005-05-093-5/+19
|
* assorted warning clean-ups for x86_64, etc (Mikko T.)Brian Paul2005-05-071-4/+4
|
* Port Mesa to build on a P64 platform (e.g., Win64). P64 platformsKarl Schultz2005-05-057-19/+26
| | | | | | | | 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.
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-0433-1179/+4328
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Add a facility to route all rasterization through a fragment programKeith Whitwell2005-05-045-152/+162
| | | | | | | | | | | which is automatically generated to match the current texture environment state. Introduces a new value ctx->FragmentProgram._Active which is true when either _Enabled is true or there is such a fragment program ready to run. To test out on a driver running the software rasterizer, set MESA_TEX_PROG=t in the environment. It goes without saying that performance is lower for the software rasterizer in this mode.
* apply previous GL_COMPRESSED_TEXTURE_FORMATS_ARB fix to generator file, and ↵Brian Paul2005-04-302-3/+7
| | | | regenerate get.c
* Fixed bogus ENUM_TO_BOOLEAN inFelix Kuehling2005-04-301-1/+1
| | | | | | _mesa_GetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS_ARB). Must be ENUM_TO_INT. mesa/progs/tests/texenv now lists supported compressed texture formats correctly.
* Maintain a fragment program for current texturing state.Keith Whitwell2005-04-291-0/+772
|
* move set_component_sizes() to fix bug 3135Brian Paul2005-04-271-1/+3
|
* comments and minor clean-upBrian Paul2005-04-261-17/+29
|
* Simplify the pipeline_stage structureKeith Whitwell2005-04-221-0/+3
| | | | | | | | | | - remove input/output fields, input tracking removed. - remove state fields, the validate function now called on every statechange. - add an explicit 'create' function. Add in code to build vertex program to implement current t&l state. Still disabled, but turn on with a #define in t_vp_build.h.