summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-10-27Bug #1028: Add hardware-accelerated stencil support to r128. Testing withEric Anholt
stencilwrap reported many issues with various modes. Some of these were complicated by the fact that spans are broken (Bug #1615), but some appear to be real bugs. However, while spans remain broken, I found that visual results were better by avoiding fallbacks rather than avoiding just a broken stencil implementation. Note that this required changing the depth spans at 24+8bpp into read-modify-write cycles. It would be nicer as a single write with a mask, but the kernel span blits turn off masking. Reviewed by: ajax
2005-10-27Bug #4900: Fix the non-fogcoord fog test on r100 (and rv200) at tcl_mode=1 byEric Anholt
flipping the signs on two factors. While this contradicts the DDK, it matches what r200 does, and it fixes the test.
2005-10-27Add support for HW stencil spans, mirroring the depth spans support. Used forEric Anholt
Rage 128 stencil support.
2005-10-27Bump driver date for recent extension adds.Eric Anholt
2005-10-26Cover my arse.Aapo Tahkola
2005-10-26Reduce stderr noise and fix some compiler warnings.Aapo Tahkola
2005-10-26Remove few outdated r200 files.Aapo Tahkola
2005-10-26Sync with my local tree.Aapo Tahkola
Changes to current operation: -Elts are no longer converted to 16-bit format -Cube maps
2005-10-26Fix invalid vsf temp count for rv350.Aapo Tahkola
2005-10-26Fix the RGB order of the specular color emit, and turn GL_EXT_secondary_colorEric Anholt
back on. Tested using seccolor modified to use the blue channel instead of green, since green stays in the same place across RGB/BGR mistakes. Also hook in UpdateSpecular on COLOR_EXT change, which might have resulted in missing statechanges before.
2005-10-26Add support for GL_EXT_fog_coord, tested using tests/fog.c. (Also, matches theEric Anholt
output from indirect rendering).
2005-10-26Add disabled support for GL_EXT_fog_coord. While it seems correct to me, it'sEric Anholt
not respecting the coords (or perhaps interpreting them differently?) in my testing. However, in the process it led to a fix of a secondary color handling issue where it would be taken from the wrong offset, I believe, based off of reading the r200 driver. Also add a minor tweak to save time in the fog-but-not-specular case.
2005-10-25Move the front.offset setting above a check to shortcut reallocating buffers ifEric Anholt
width and height stayed the same. Rely on front.offset pointing at the origin in the window (rather than the origin of the front buffer), and fix the coords in swapbuffers, which were wrong. This is different from other drivers because we've got a back buffer with a 0,0 origin at the window's origin, which makes it more convenient to have the front buffer match it.
2005-10-25Initial add of some (disabled) SiS 6326 drawing code integrated from Alan Cox'sEric Anholt
last drop I saw, which was in turn based on a code drop of mine. Texturing, culling, and several extensions are unimplemented, and some features could probably be improved. It's untested, but there don't appear to be regressions on the 300-series code, so I'd like to get these bits in now so that it can be worked on as not a huge diff.
2005-10-24Cut a bunch of code by not trying to precompute the blit commands and insteadEric Anholt
just do it per blit. No noticable performance difference (or behavior difference, in my tests), and a significant difference in sanity.
2005-10-24In the last commit I added in a fatal error on unknown base formats so IEric Anholt
wouldn't get confused when adding support for new formats. However, it resulted in dying in texenv instead of drawing something undefined for GL_DECAL. Do what GLcore apparently does and just pass the fragment through.
2005-10-24Fix and enable GL_MESA_ycbcr_texture. Looks fine with yuvrect. I'm slightlyEric Anholt
concerned that TEXEL_YUV422 looks like TEXEL_YVU422 and TEXEL_VUY422 looks like TEXEL_VYU422 in yuvrect, but I'm happy enough for now.
2005-10-24Add support for GL_EXT_secondary_color, tested with seccolor test.Eric Anholt
2005-10-24Turn off the AGP dispatch path yet again, as it seems to be broken (found withEric Anholt
tuxracer and the upcoming support for secondary color).
2005-10-24fragment program writing to result.depth.z was brokenBrian Paul
2005-10-24Add RV350 AQ chip. (popolon at popolon dot org)Adam Jackson
2005-10-24Since we memcpy texture data synchronously to the card, idle the engine beforeEric Anholt
we start copying. I haven't seen it go wrong before, but I'm pretty sure this fix is correct.
2005-10-24- Add a few more hardware internal formats that are supported. Some remainingEric Anholt
ones require custom texstore, so they aren't done yet. - Add YCBCR support commented out, since the yuvsquare test didn't work with just the bits I've added. - Add the no-compression GL_ARB_texture_compression support. - Add the driconf texture depth option and try to respect it.
2005-10-24Fix the GL_BLEND case (and remove the fallback associated with it) by convertingEric Anholt
the float values to bytes before packing them. Tested with texenv.
2005-10-24Fix texenv by moving a misplaced check for being in fallback (should cover onlyEric Anholt
render state, not texture state). While here, move a SIS_FIREVERTICES to a more appropriate location, though it was harmless.
2005-10-24Add support for GL_ARB_texture_border_clamp and GL_ARB_texture_mirrored_repeat,Eric Anholt
tested using texwrap, fixing the sourcing of border constant values (use the bytes, not the floats!). Remove the fallback on GL_CLAMP_TO_EDGE, which acts properly, and add a note to GL_CLAMP about nonconformance (whcih is what the fallback for CLAMP_TO_EDGE was probably targeting).
2005-10-24Fix a typo in a fallback string.Eric Anholt
2005-10-24Add support for GL_EXT_stencil_wrap by guessing that the skip of two values inEric Anholt
the register header was meaningful. It turns out those were the proper values for the plain INCR/DECR ops, while what we were using as INCR/DECR were the _WRAP versions. Tested with stencil_wrap (didn't expose normal/_WRAP swapping) and stencilwrap (exposed it nicely) tests. Props to idr for poking me about adding this.
2005-10-22disable yuv textures (GL_MESA_ycbcr_texture) on rv250 (hw bug, #2078). ↵Roland Scheidegger
Change the initialization to fail if an unknown pci id is detected, instead of accepting all values which are not r100-based radeons.
2005-10-21fix GLX server resize/crash when resizing windowsBrian Paul
2005-10-21check span.y >=0 (bug 4842)Brian Paul
2005-10-21fix broken SWZ instructionBrian Paul
2005-10-21fix broken KILBrian Paul
2005-10-21add the tile bits for offset, and unk bit 31 of sizeDave Airlie
2005-10-20restore FASTCALL stuffBrian Paul
2005-10-20fix bad loops in TransposeMatrix[fd]()Brian Paul
2005-10-20fix another renderbuffer wrapping bugBrian Paul
2005-10-20Disable the FASTCALL optimization because it still breaks server-side GLX.Brian Paul
2005-10-20Bump driver dates for the crasher fixes yesterday.Eric Anholt
2005-10-20 descrip.mms syntax correctionJouk Jansen
2005-10-20fixes for r300_tex.c from Aapo TahkolaDave Airlie
2005-10-19Make SiS a little more like other drivers: Add SIS_DEBUG (only option beingEric Anholt
"fall" so far) and make the fallback_force option be no_rast like other drivers. Incidentally, makes no_rast not crash (though it still fails to render).
2005-10-19Remove some long-dead code.Eric Anholt
2005-10-19Fix a missed merge for idr's dispatch changes: failure to do driInitExtensionsEric Anholt
in __driCreateNewScreen_20050727 resulted in crashing in dispatch.
2005-10-19updated for new mm.c, execmem.c filesBrian Paul
2005-10-19s/memcpy/_mesa_memcpy/, s/FREE/_mesa_free/Brian Paul
2005-10-19Bug #4615: Fix the SiS driver for the renderbuffer changes. Previously, allEric Anholt
drirenderbuffers pointed at screen offset 0 and NULL. Instead, set up the front buffer at startup but leave the others for later, since sis allocates them on demand rather than using the static method of the other non-sis-descendent drivers. Some basic apps work, but fallbacks may be broken still.
2005-10-18Fix a missed merge for idr's dispatch changes: failure to do driInitExtensionsEric Anholt
in __driCreateNewScreen_20050727 resulted in crashing in dispatch. Rendering remains broken.
2005-10-18move _mesa_exec_malloc/free() up near other malloc/free prototypesBrian Paul
2005-10-18Lots of clean-ups. Replace __inline__ with INLINE macro. Use theBrian Paul
_mesa_calloc(), _mesa_free() functions. Clean-up formatting, doxygen-style comments.