summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2005-07-01minor fixesBrian Paul5-13/+16
2005-07-01remove common macros used in the span functions of most drivers from the ↵Roland Scheidegger19-475/+124
individual drivers and put them in common code. It is still possible for a driver to define its own macros if it has special needs. This affects CLIPPIXEL, CLIPSPAN, HW_CLIPLOOP, HW_ENDCLIPLOOP, and for drivers using the spantmp2 template also GET_SRC_PTR and GET_DST_PTR.
2005-06-30Replace add_newer_entrypoints (src/mesa/main/context.c) withIan Romanick20-489/+6701
device-specific code. A new Python script (src/mesa/glapi/extension_helper.py) generates a list of all entry-points for all known extensions. Each driver the selects only the extensions that it needs and enables the via either driInitExtensions or driInitSingleExtension. This code has been compile-tested on a drivers, but has only been run-tested on mga and i915 (on i830 hardware). These changes were discussed at length on the mesa3d-dev mailing list. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2
2005-06-30remove \n from warning message stringBrian Paul1-2/+2
2005-06-30added newline at end of fileBrian Paul2-2/+2
2005-06-30Add a set of predicate functions for testing matrices instead of directlyBrian Paul10-136/+195
testing the flags field. Move definition of all the MAT_FLAGs into the m_matrix.c file since they're now private.
2005-06-30Redo all the GL_LINEAR interpolation code in terms of LERP macros/functions.Brian Paul2-251/+279
This cleans up and simplifies the arithmetic quite a bit.
2005-06-30Fix crashes with pixel readback when using the optimized assembly functions.Roland Scheidegger1-2/+9
Pixel count can be negative (this could be fixed elsewhere), so adapt the functions to work with such inputs correctly (same behaviour as non-optimized functions). Bugzilla #2317 Submitted by idr
2005-06-30-"fix" page flippingAapo Tahkola2-13/+30
-use depth tiling if tiling is enabled
2005-06-30fix a few glitchesBrian Paul1-3/+7
2005-06-30fix Darwin dynamic lib namingBrian Paul1-1/+1
2005-06-28just code clean-ups and new commentsBrian Paul1-29/+44
2005-06-27Uncomment a couple of helper functions.Vladimir Dergachev1-10/+1
Fix slipup from CVS update that was commented out and did not show up during compilation.
2005-06-27Rename unchecked state to match DRM driver.Vladimir Dergachev5-140/+148
Emit wait idle and pacify r300 before emitting state - this seems to improve stability.
2005-06-27include t_vp_build.hBrian Paul1-4/+5
2005-06-27remove unused MEMSET16 macroBrian Paul1-2/+0
2005-06-27Get rid of the MESA_PBUFFER_ALLOC/FREE() macros.Brian Paul7-72/+31
If that stuff is still needed, lots of other updates are needed anyway. Also, some misc MALLOC/FREE -> _mesa_malloc/free() changes.
2005-06-27added _tnl_ProgramCacheDestroy() prototypeBrian Paul1-0/+2
2005-06-27make create_new_program() staticBrian Paul1-3/+4
2005-06-26Fix crashes during rasterization fallback by avoiding _tnl_need_projected_coordsEric Anholt2-2/+14
during fallbacks. In one case, _swsetup_Wakeup had just been called, covering the need there, and in the other case, we can simply exit the entire radeonChooseVertexState function, knowing that it will be called again once we leave the fallback. Bugzilla #: 2516 Submitted by: sroland
2005-06-26Remove the #if 0-ed out old span code.Eric Anholt1-45/+0
2005-06-26Explain the reason for TCL fallback when GL_SPHERE_MAP happens withEric Anholt1-1/+2
RADEON_DEBUG=fall.
2005-06-26Zero out the ENGPACKET allocated on the stack, to avoid sending uninitializedEric Anholt1-0/+2
values to reserved fields on the card, resulting in all-black output and sometimes hangs. Submitted by: Thomas Winischhofer
2005-06-26fix for-loop in _mesa_GetDouble to avoid out of bounds memory readBrian Paul2-2/+2
2005-06-26check for null oldBuffer in _mesa_realloc(), cleaned up some commentsBrian Paul1-11/+12
2005-06-26need parenthesis in realloc callBrian Paul1-1/+1
2005-06-24Ignore files generated as part of the build process.Ian Romanick2-0/+13
2005-06-24Fix non-x86 specific builds. The changes from glTexImage3DEXT toIan Romanick7-125/+133
glTexImage3D that caused me so many problems during the re-development of the API scripts reared its ugly head again. This has been fixed by tracking the parameter string for each entry-point individually. This has the annoying side-effect that the names of the parameters in all aliases of a function must be the same or gl_apitemp.py will generate bad code. :( The changes in src/mesa/glapi/{gl_API.xml,glapitable.h} and src/glx/x11/* are caused by fixing the parameter names in various function aliases that didn't match. Reported by: Eric Anholt, Jacob Jansen
2005-06-24Fixed the XCB implementation when always_array is true, thanks to Ian ↵Jeremy Kolb2-5/+6
Romanick for pointing it out. Please review.
2005-06-23Remove the xmesa_set_buffer() function. No longer needed since theBrian Paul2-72/+0
span functions pass in a gl_renderbuffer to indicate which color buffer should be drawn into. Optimized line/triangle routines are smart enough to know which buffer to draw into as well. The swrast->SetBuffer() routine should eventually be removed from all drivers.
2005-06-22Mark GenQueriesARB at 'always_array="true"'. This eliminates the needIan Romanick3-4/+4
to special-case the handling of that function in glX_proto_send.py.
2005-06-22Fixed a bug where GenQueriesARB was generating the wrong code for XCB and ↵Jeremy Kolb3-14/+11
wouldn't compile. Not sure how that slipped through before but it should work now.
2005-06-21Mammoth update to the Python code generator scripts that live inIan Romanick26-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
2005-06-21Back out the actual enabling of depth tiling.Nicolai Haehnle1-7/+0
Depth tiling breaks software fallbacks and depth buffer reads. radeon_span.c **must** be updated for anything that is related to tiling.
2005-06-21Add PCI ID for R420 JI.Nicolai Haehnle1-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.
2005-06-21r300 driver side of color tiling support.Aapo Tahkola3-2/+8
2005-06-21Make sure texture base addresses are used correctly.Nicolai Haehnle2-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.
2005-06-21check for NULL swrast->Driver.SetBuffer before calling itBrian Paul2-4/+7
2005-06-21updated to version 29Brian Paul1-3/+2
2005-06-21include light.h to silence warningBrian Paul1-0/+1
2005-06-20DirectFB updates (Claudio Ciccani)Brian Paul2-131/+155
2005-06-20ran "make" after update to glX_proto_send.py.Jeremy Kolb3-2033/+2033
2005-06-20Fixed some issues where XCB replies were being freed and data was not being ↵Jeremy Kolb1-4/+2
copied.
2005-06-19Define __FUNCTION__ as a preprocessor symbol in glheader.h if we're notBrian Paul2-4/+11
using GCC or VMS.
2005-06-16Fix gloss breakage when using hw tnl.Aapo Tahkola2-1/+21
2005-06-16Use depth tiling.Aapo Tahkola2-7/+28
2005-06-16Support 16-bit modes.Aapo Tahkola3-7/+21
2005-06-16Fix problems with elts when immediate mode is on.Aapo Tahkola1-9/+9
2005-06-16Turn off VBO's.Aapo Tahkola1-3/+27
2005-06-16lost_context never gets reset.Aapo Tahkola1-2/+3