summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300
AgeCommit message (Collapse)Author
2007-10-30More vblank cleanups.Michel Dänzer
* Fix crash at context creation in most drivers supporting vblank. * Don't pass vblank sequence or flags to functions that get passed the drawable private already. * Attempt to initialize vblank related drawable private fields just once per drawable. May need more work in some drivers.
2007-10-29Refactor and fix core vblank supportJesse Barnes
Consolidate support for synchronizing to and retrieving vblank counters. Also fix the core vblank code to return monotonic MSC counters, which are required by some GLX extensions. Adding support for multiple pipes to a low level driver is fairly easy, the Intel 965 driver provides simple example code (see intel_buffers.c:intelWindowMoved()). The new code bumps the media stream counter extension version to 2 and adds a new getDrawableMSC callback. This callback takes a drawablePrivate pointer, which is used to calculate the MSC value seen by clients based on the actual vblank counter(s) returned from the kernel. The new drawable private fields are as follows: - vblSeq - used for tracking vblank counts for buffer swapping - vblFlags - flags (e.g. current pipe), updated by low level driver - msc_base - MSC counter from the last time the current pipe changed - vblank_base - kernel DRM vblank counter from the last time the pipe changed Using the above variables, the core vblank code (in vblank.c) can calculate a monotonic MSC value. The low level DRI drivers are responsible for updating the current pipe (by setting VBLANK_FLAG_SECONDARY for example in vblFlags) along with msc_base and vblank_base whenever the pipe associated with a given drawable changes (again, see intelWindowMoved for an example of this). Drivers should fill in the GetDrawableMSC DriverAPIRec field to point to driDrawableGetMSC32 and add code for pipe switching as outlined above to fully support the new scheme.
2007-10-17Framework for supporting z24_s8 and z32 depth textures on r300.Ian Romanick
2007-10-17Initial support for ARB_depth_textureIan Romanick
Currently only GL_DEPTH_COMPONENT16 are supported. I don't know what the hardware bits are to select the other formats, but it shouldn't be too hard to figure out.
2007-10-12Merge branch 'dri2'Kristian Høgsberg
Conflicts: src/mesa/drivers/dri/i915/intel_screen.c
2007-10-10Replace open-coded major, minor, and patch version fields with __DRIversionRec.Kristian Høgsberg
2007-10-07r300: fragprog tex instruction now take writemask into acount.Jerome Glisse
2007-09-11Fix-up #includes to remove some -I options.Brian
eg: #include "shader/program.h" and remove -I$(TOP)/src/mesa/program
2007-08-02remove unnecessary null check (bug 11814)Brian
2007-07-21Remove ctx->Point._Size and ctx->Line._Width.Brian
The clamping for these values depends on whether we're drawing AA or non-AA points, lines. Defer clamping until drawing time. Drivers could compute and keep clamped AA and clamped non-AA values if desired.
2007-07-18r300: Oops, made a mistake on commit fb4e071beda6e3b9e68a21bbc7649b6c4733c485.Oliver McFadden
2007-07-18r300: Cleaned up vertprog construction.Oliver McFadden
Construct the vertprog instruction in the 4 DWORD parts... DWORD 0: Opcode and Output. DWORD 1: First Argument. DWORD 2: Second Argument. DWORD 3: Third Argument. Allow the opcode translation functions to generate more than one instruction; useful for when an instruction must be emulated. FLR, XPD, etc.
2007-07-18r300: Corrected texcoord start when BFC1 is enabled.Tommy Schultz Lassen
2007-07-16r300: Corrected some progs/fp/* regressions from the BFC patch.Oliver McFadden
I'm not completely sure this is correct; it restores the old behaviour.
2007-07-16r300: Use _mesa_num_inst_src_regs for number of arguments.Oliver McFadden
2007-07-16r300: Corrected vertprog FLR and XPD instruction regression.Oliver McFadden
2007-07-16r300: Added code for vertprog opcode ARL.Oliver McFadden
2007-07-16r300: Don't need vertprog scalar flag anymore; it's handled explicitly...Oliver McFadden
2007-07-16r300: Removed broken RCC vertprog opcode.Oliver McFadden
2007-07-16r300: More vertprog rework; give each opcode it's own function.Oliver McFadden
2007-07-16Revert "r300: Gracefully exit after GART memory is exhausted."Oliver McFadden
This reverts commit 9457bf62bbba3b9226ebbbea5dc7798ca22485f6. Causes the X server to die with Compiz and Beryl.
2007-07-16r300: Reorder the vertprog code to the ARB specification.Oliver McFadden
2007-07-16r300: Use the R300_PVS_UPLOAD_* defines.Oliver McFadden
2007-07-16r300: Added the clip plane upload defines.Oliver McFadden
2007-07-16r300: Enable the vertprog point size again.Oliver McFadden
2007-07-16r300: Corrected position bug with position invariant option. Bug #11594.Oliver McFadden
2007-07-16r300: Removed Vim modeline I left in the file by mistake. :-)Oliver McFadden
2007-07-16r300: Make sure the modified value of u_temp_i is respected.Oliver McFadden
2007-07-16r300: Added a function for vertex program default opcode translation.Oliver McFadden
2007-07-16r300: Clean up the vertex program maximum length check.Oliver McFadden
2007-07-16r300: Corrected indenting in r300_vertprog.c.Oliver McFadden
2007-07-16r300: Major vertex program code clean up and rework.Oliver McFadden
2007-07-16r300: Replaced the ugly VERTEX_SHADER_INSTRUCTION typedef.Oliver McFadden
2007-07-15r300: Gracefully exit after GART memory is exhausted.Oliver McFadden
2007-07-14r300: Disable vertex program point size; it's almost certainly wrong.Oliver McFadden
See the conversation between myself and Tommy Schultz Lassen on mesa3d-dev.
2007-07-14r300: Clean up the vertex program output assignment.Oliver McFadden
2007-07-13Revert "r300: Corrected off-by-one error in r300_vertprog.c."Oliver McFadden
This reverts commit 07ac2386f5c0ab9c2432d4b5e3490b1e13d033fc.
2007-07-13r300: Corrected off-by-one error in r300_vertprog.c.Oliver McFadden
2007-07-13r300: Moved some hardware initialization into appropriate functions.Oliver McFadden
2007-07-13r300: Use a switch statement in r300UpdateCulling.Oliver McFadden
2007-07-13r300: Setup the back facing color bits correctly.Oliver McFadden
Apparently for back facing color to work you must set all 3 color bits; I guess the hardware cannot handle them separately.
2007-07-11r300: Added support for Back Facing Color.Tommy Schultz Lassen
2007-07-11r300: Corrected r300UpdateCulling; would only set font face if culling was set.Tommy Schultz Lassen
2007-07-04r300: only init swtcl on tcl-less cardsDave Airlie
2007-07-02r300: fix compiz crash on swtcl - doesn't fix compiz though.Dave Airlie
Compiz for some reason looks like ass, everything with textures looks like it has a 2x width/height multiplier on the texture coords...
2007-07-01r300: oops wrong logic for swtclDave Airlie
2007-07-01r300: oops turn back off cmd buf debuggingDave Airlie
2007-07-01Merge branch 'r300-swtcl'Dave Airlie
2007-07-01fix tabbingDave Airlie
2007-07-01r300: add authorshipDave Airlie