summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mammoth update to the Python code generator scripts that live inIan Romanick2005-06-2126-5439/+6109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Back out the actual enabling of depth tiling.Nicolai Haehnle2005-06-211-7/+0
| | | | | Depth tiling breaks software fallbacks and depth buffer reads. radeon_span.c **must** be updated for anything that is related to tiling.
* Add PCI ID for R420 JI.Nicolai Haehnle2005-06-211-0/+2
| | | | | | | The driver appears to work reliably (i.e. lockup-free) with a card based on this chip. However, I have not explored whether we could get anything in terms of 3D performance "for free" just by setting some magic bits in those registers that are still a mystery to us.
* r300 driver side of color tiling support.Aapo Tahkola2005-06-213-2/+8
|
* Make sure texture base addresses are used correctly.Nicolai Haehnle2005-06-212-2/+2
| | | | | | They are relative to the card's address space, not relative to fbLocation, which will be important once we program MC_FB/AGP_LOCATION in the way they are programmed on older Radeon chips.
* check for NULL swrast->Driver.SetBuffer before calling itBrian Paul2005-06-212-4/+7
|
* updated to version 29Brian Paul2005-06-211-3/+2
|
* include light.h to silence warningBrian Paul2005-06-211-0/+1
|
* DirectFB updates (Claudio Ciccani)Brian Paul2005-06-202-131/+155
|
* ran "make" after update to glX_proto_send.py.Jeremy Kolb2005-06-203-2033/+2033
|
* Fixed some issues where XCB replies were being freed and data was not being ↵Jeremy Kolb2005-06-201-4/+2
| | | | copied.
* Define __FUNCTION__ as a preprocessor symbol in glheader.h if we're notBrian Paul2005-06-192-4/+11
| | | | using GCC or VMS.
* Fix gloss breakage when using hw tnl.Aapo Tahkola2005-06-162-1/+21
|
* Use depth tiling.Aapo Tahkola2005-06-162-7/+28
|
* Support 16-bit modes.Aapo Tahkola2005-06-163-7/+21
|
* Fix problems with elts when immediate mode is on.Aapo Tahkola2005-06-161-9/+9
|
* Turn off VBO's.Aapo Tahkola2005-06-161-3/+27
|
* lost_context never gets reset.Aapo Tahkola2005-06-161-2/+3
|
* Fix a few compiler warningsJon Smirl2005-06-162-1/+2
|
* Fix linux-solo build for mga check-inJon Smirl2005-06-161-0/+1
|
* Adds support for MGA DRM version 3.2.Ian Romanick2005-06-144-73/+134
| | | | | | | | | | | | | | | This patch makes use of two of the new ioctls added in MGA DRM version 3.2. Specifically, the DRM_MGA_SET_FENCE and DRM_MGA_WAIT_FENCE ioctls are used in mgaWaitForFrameCompletion. As a result the MMIO register region and the primary DMA region are *not* mapped (if DRM 3.2 is available). This patch does *not* make use of the new get_param query was added to differentiate between G4x0 cards and G550 cards. That is left to a future update. Xorg bug: 3259 Reviewed by: Eric Anholt
* Committing in .Jouk Jansen2005-06-142-3/+11
| | | | | | | | OpenVMS updates Modified Files: Mesa/src/mesa/tnl/descrip.mms Mesa/src/mesa/tnl/t_vp_build.c ----------------------------------------------------------------------
* fbSwapBuffers needs to return a statusJon Smirl2005-06-131-0/+2
|
* mingw changes (Nolan Leake)Brian Paul2005-06-134-5/+7
|
* Fixed typos.Vladimir Dergachev2005-06-121-2/+2
|
* Add definition for memory controller latency registers..Vladimir Dergachev2005-06-101-0/+21
|
* remove debug printsKeith Whitwell2005-06-102-4/+0
|
* be sure we have span texcoords before calling _swrast_texture_span()Brian Paul2005-06-101-2/+2
|
* pass mask array to PutRowRGB() in simple_z_textured_triangle()Brian Paul2005-06-101-1/+2
|
* Allow the print opcode to compilemesa_20050610Keith Whitwell2005-06-101-2/+1
|
* Fix typo in spot attenuationKeith Whitwell2005-06-101-1/+1
|
* Correct test for attenuation.Keith Whitwell2005-06-101-12/+12
| | | | DISSASEM changes.
* remove depend files on cleanKeith Whitwell2005-06-101-0/+1
|
* Fix colormaterial flag calculations.Keith Whitwell2005-06-101-17/+30
| | | | Fix lighting alpha result.
* Add notes about intended precision of opcodes.Keith Whitwell2005-06-101-38/+46
| | | | | Remove dead floating point twiddles. Fix bug translating MAD->MUL,ADD.
* Fix a couple of bugletsKeith Whitwell2005-06-091-8/+9
|
* Another typoKeith Whitwell2005-06-091-1/+1
|
* Further clean up RoughApproxPow2 and disable the optimized version --Keith Whitwell2005-06-091-8/+9
| | | | it's a very poor approximation.
* Fix typo in RoughApproxPow2Keith Whitwell2005-06-091-1/+5
|
* Store compiled vertex program representations in a pointer in theKeith Whitwell2005-06-0912-79/+121
| | | | | | | | | | | | | 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.
* Build vertex programs using state from a 'state key' struct which isKeith Whitwell2005-06-091-153/+364
| | | | | | | | | | | distilled from the current state. Maintain a list of vertex programs for various different tnl states indexed by these state keys. This cuts down the number of vertex programs generated and means that time spent optimizing vertex programs for execution isn't wasted each time the state changes.
* Turn off debugKeith Whitwell2005-06-082-5/+7
|
* Add t_vb_arbprogram_sse.cKeith Whitwell2005-06-081-0/+1
|
* Runtime generate sse/sse2 code for some vertex programs. ExperimentalKeith Whitwell2005-06-083-79/+973
| | | | | | and only active when _TNL_FIXED_FUNCTION_PROGRAM is defined *and* the MESA_EXPERIMENTAL environment variable is set... Works for the arbfplight demo at least.
* Turn off DISASSEMKeith Whitwell2005-06-081-1/+1
|
* New arguments for sse_shufps()Keith Whitwell2005-06-081-14/+14
|
* Use ALIGN_MALLOC for parameter lists.Keith Whitwell2005-06-081-6/+13
|
* Add some more opcodesKeith Whitwell2005-06-082-160/+149
|
* - Secondary colourBen Skeggs2005-06-085-31/+64
| | | | - Calculate tc_count in EmitArrays (enabled units != nr texcoords).
* regeneratedBrian Paul2005-06-081-0/+2
|