aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* r300: general cleanupMaciej Cencora2009-04-195-55/+41
| | | | | | - remove unused fields - remove unused defines and macros - flatten one structure
* r300: remove unnecessary forward function declarationMaciej Cencora2009-04-191-1/+0
|
* r300: context creation cleanupMaciej Cencora2009-04-191-110/+76
| | | | | - move constant values initialization to seperate function - remove obvious comments
* radeon: update clear state with latest intel codeDave Airlie2009-04-191-0/+7
|
* r300: we always want non NDC coords format for swtclMaciej Cencora2009-04-171-22/+3
|
* r300: cleanup frag prog setup a littleMaciej Cencora2009-04-175-48/+70
| | | | | | | | | | | Use proper fields for marking if fp is translated, and if is translated succesfully. Now if fp gets translated (even unsuccesfully) fp->translated is true. If the translation failed (i.e. because we exceeded limit of maximum texture indirections) the fp->error is set. With a little updated fallback function it prevents non native fragment programs from beeing translated with every frame (the translation would fail anyway so there's no point to try again). Also implement IsProgramNative function for GL_FRAGMENT_PROGRAM_ARB (it should give some performance boost in apps that checks if program is native and falls back to simpler shader to meet hw limits if necessary) and cleanup indentation (remove whitespaces on empty lines).
* r300: update r500 path for reordered WPOS and FOG fp attributesMaciej Cencora2009-04-171-18/+18
| | | | Report and regression testing by Fabio Pedretti.
* dri: attempt to actually refcount the __DRIDrawableDave Airlie2009-04-161-8/+24
| | | | | | | | | valgrind was showing a race between the drawable getting destroyed by the X resource freeing code, and the context getting destroyed later and freeing the drawable. However I've no idea if some other combination of things could cause this code to leak.
* radeon: take a bo reference when adding to validate listDave Airlie2009-04-161-0/+2
|
* r200: fix texture level for compiz caseJerome Glisse2009-04-121-2/+2
|
* r200: validate vertex bufferJerome Glisse2009-04-121-0/+5
|
* radeon: emit scissor when using cs pathJerome Glisse2009-04-121-0/+11
|
* r300: fix color tilingDave Airlie2009-04-091-2/+8
|
* r300: reorder fog coordinate and WPOS fp attributesMaciej Cencora2009-04-093-63/+35
| | | | | | | | HW TCL path currently assumed fog, WPOS order. The order was inverted for SW TCL path. This hopefully fixes rest of fog and WPOS related bugs. Additionally fix some indentation, don't route unnecessary components of fog coordinates for performance reasons and simplify vertex attribute emitting for SW TCL path.
* r300: fix regression from swtcl rewriteMaciej Cencora2009-04-091-7/+18
| | | | | | | Fix wrong attribute emit and revert to previous behaviour of calculating VAP_OUT_VTX_FMT_1 register value. We can't use r300VAPOutputCntl1 function because it assumes that all texture coords have 4 components and that is the case for HW TCL path, but not for SW TCL.
* Merge remote branch 'origin/master' into radeon-rewriteDave Airlie2009-04-09127-6409/+7118
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/r200/r200_tex.c src/mesa/drivers/dri/r300/r300_cmdbuf.c src/mesa/drivers/dri/r300/r300_context.h src/mesa/drivers/dri/r300/r300_swtcl.c src/mesa/drivers/dri/r300/r300_tex.c src/mesa/drivers/dri/r300/r300_texmem.c src/mesa/drivers/dri/r300/r300_texstate.c src/mesa/drivers/dri/radeon/radeon_tex.c
| * Mesa: allow suppression of debug messages in a debug buildRobert Ellison2009-04-081-10/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For testing, it's very useful to be able to test on a debug build, while suppressing the debug messages (messages that are by default suppressed in a release build), in order to see the same behavior that users of release builds will see. For example, the "piglit" test suite will flag an error on programs that produce unexpected output, which means that a debug build will always fail due to the extra debug messages. This change introduces a new value to the MESA_DEBUG environment variable. In a debug build, explicitly setting MESA_DEBUG to "0" will suppress all debug messages (both from _mesa_debug() and from _mesa_warning()). (The former behavior was that debug messages were never suppressed in debug builds.) Behavior of non-debug builds has not changed. In such a build, _mesa_debug() messages are always suppressed, and _mesa_warning() messages will be suppressed unless MESA_DEBUG is set *to any value*.
| * gallium: when using gl_PointCoord ensure we use the correct attribute.Alan Hourihane2009-04-081-3/+5
| |
| * mesa: Don't attempt to free the dummy program.José Fonseca2009-04-081-3/+5
| |
| * st: implement glCopyTexImage() for GL_DEPTH24_STENCIL8 internal formatBrian Paul2009-04-071-2/+4
| |
| * st: implement GL_DEPTH_STENCIL format for glReadPixels and DrawPixels()Brian Paul2009-04-073-43/+96
| |
| * mesa: add another special/optimized case in _mesa_unpack_depth_span()Brian Paul2009-04-071-0/+11
| |
| * swrast: fix point rendering function selectionBrian Paul2009-04-071-1/+4
| | | | | | | | | | Need to clamp default point size to min/max range before checking if it's one. Fixes glean pointAtten test.
| * mesa: fix incorrect component ordering for sRGB8 texture fetch/storeBrian Paul2009-04-071-5/+6
| | | | | | | | | | | | This format is layered on MESA_FORMAT_RGB888 so the component order is actually BGR. Fixes glean pixelFormat failures.
| * glsl: enable the new linear scan register allocator codeBrian Paul2009-04-071-3/+3
| | | | | | | | | | Seems to b working well enough to enable all the time. Optimizations can be disabled with "export MESA_GLSL=nopt" if needed.
| * glsl: don't optimize program if MESA_GLSL=noptBrian Paul2009-04-071-1/+2
| |
| * swrast: restore !shader check around add_specular()Brian Paul2009-04-071-4/+6
| | | | | | | | Fixes a regression from commit 76ac75af8e5481b498981c133836efa2101be2dc.
| * swrast: more texcombine clean-upsBrian Paul2009-04-061-21/+10
| |
| * swrast: asst. clean-ups in texcombine codeBrian Paul2009-04-061-26/+19
| |
| * swrast: fix secondary color add for glBitmapBrian Paul2009-04-063-11/+30
| | | | | | | | | | Also, clean up the logic involved in choosing per-vertex vs. per-fragment primary+secondary color addition.
| * swrast: fix incorrect arithmetic for GL_ADD_SIGNED/GL_COMBINE4_NV modeBrian Paul2009-04-061-6/+6
| |
| * st: as with swrast, interpret texture border color according to texture formatBrian Paul2009-04-061-4/+37
| | | | | | | | | | Depending on the hardware driver this might not be needed, but it will cause no harm.
| * st: rename a helper functionBrian Paul2009-04-061-4/+4
| |
| * swrast: fix texture border color interpretationBrian Paul2009-04-061-30/+68
| | | | | | | | | | | | | | The texture border color must be interpreted according to the texture's base format. For example, for a GL_ALPHA texture, sampling the border color should return (0,0,0,borderAlpha). This wasn't an issue here until I removed the legacy texenv code (we always use the combiner path now).
| * mesa: Fix orientation adjustment for reading stencil pixels.José Fonseca2009-04-061-1/+1
| | | | | | | | Fixes conform spcorner.c & spclear.c failure.
| * intel: Avoid dri2 GetBuffers round-trips for internal Viewport calls.Eric Anholt2009-04-063-3/+10
| | | | | | | | | | | | This gets us the savings for driver-internal viewport calls that dd1c68f15123a889a3ce9d2afe724e272d163e32 was attempting, without relying on Xlib internals or clients handling X events.
| * i965: Use GTT maps when available to upload vertex arrays and system VBOs.Eric Anholt2009-04-063-18/+55
| | | | | | | | | | | | | | This speeds up OA on my GM45 by 21% (more than the original CPU cost of the upload path). We might still be able to squeeze a few more percent out by avoiding repeatedly mapping/unmapping buffers as we upload elements into them.
| * intel: Clean up some a leftover from sedding of bufmgr context->screen move.Eric Anholt2009-04-061-3/+0
| |
| * radeon: Expose a 32 bit RGBA fbconfig even when the screen depth is 16.Michel Dänzer2009-04-061-15/+20
| | | | | | | | | | | | | | Otherwise current xserver / libGL no longer expose a 32 bit RGBA GLX visual, and compiz fails. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=20479 .
| * gallium: Clean up driver clear() interface.Michel Dänzer2009-04-041-119/+64
| | | | | | | | | | Only allows clearing currently bound buffers, but colour and depth/stencil in a single call.
| * gallium: Add utility helper for packing combined depth/stencil values.Michel Dänzer2009-04-041-13/+3
| |
| * intel: #include texgetimage.hBrian Paul2009-04-031-0/+1
| |
| * mesa: move glGetTexImage(), glGetCompresssedTexImage() code into new fileBrian Paul2009-04-039-335/+409
| |
| * mesa: remove the noClamp parameter to _mesa_pack_rgba_span_float()Brian Paul2009-04-038-15/+18
| | | | | | | | | | It was only set to GL_TRUE in one place where it isn't really needed (glGetTexImage(sRGB format)).
| * mesa: clamp colors to [0,1] for glGetTexImage() when format is GL_LUMINANCEBrian Paul2009-04-031-4/+6
| | | | | | | | For luminance, we add R+G+B and it seems we should always clamp in case.
| * mesa: whitespace and comment clean-upBrian Paul2009-04-031-11/+16
| |
| * mesa: remove extra semicolonsBrian Paul2009-04-031-5/+5
| |
| * mesa: in mesa_add_named_constant(), avoid adding duplicate constantsBrian Paul2009-04-031-7/+12
| |
| * mesa: fix parameter counting in ARB vertex/fragment program parsingBrian Paul2009-04-031-5/+2
| | | | | | | | Duplicated unnamed constants were getting counted more than once.
| * mesa: replace >= with > when testing if we've exceeded max local paramsBrian Paul2009-04-031-2/+2
| | | | | | | | Now a program that uses 256 locals works as it should.