summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* i965: added null const_buffer pointer check in update_constant_buffer()Brian Paul2009-04-101-1/+1
|
* intel: added screen->dri2.loader null pointer check in intel_flush()Brian Paul2009-04-101-1/+2
| | | | Fixes segfaults when rendering to front buffer.
* gallium: remove pipe_texture::compressed fieldBrian Paul2009-04-101-1/+0
| | | | | The format field encodes compressed vs. uncompressed already. We can easily check if a texture is compressed with pf_is_compressed(texture->format).
* swrast: remove some unneeded CHAN_TYPE!=GL_FLOAT codeBrian Paul2009-04-091-7/+0
|
* i965: re-org of some of the new constant buffer codeBrian Paul2009-04-094-48/+81
| | | | Plus, begin the new code for vertex shader const buffers.
* i965: new SURF_INDEX_ macrosBrian Paul2009-04-095-40/+49
| | | | | Used to map drawables, textures and constant buffers to surface binding table indexes.
* intel / DRI2: Accept fake front-buffer from loaderIan Romanick2009-04-091-0/+5
| | | | | | | | | Handle the loader returning a fake front-buffer. Since the driver never specifically requests a fake front-buffer, the driver assumes that it will never receive both a fake and a real front-buffer. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
* intel / DRI2: Track and flush front-buffer renderingIan Romanick2009-04-093-0/+46
| | | | | | | | | | | Track two flags: whether or not front-buffer rendering is currently enabled and whether or not front-buffer rendering has been enabled since the last glFlush. If the second flag is set, the front-buffer is flushed via a loader call back. If the first flag is cleared, the second flag is cleared at this time. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
* st: remove another unneeded 'is compressed' comparisonBrian Paul2009-04-091-2/+3
|
* st: remove unneeded "is compressed" checkBrian Paul2009-04-091-2/+1
| | | | The format indicates compressed vs. uncompressed.
* st: rearrange some code to be a little more clearBrian Paul2009-04-091-9/+7
|
* gallium: remove unneeded compressed=0 assignmentBrian Paul2009-04-091-1/+0
|
* st: remove comp_byte parameter to st_texture_create()Brian Paul2009-04-096-20/+9
| | | | We can determine if the texture is compressed by checking the format.
* st: consolidate format->usage computationBrian Paul2009-04-091-9/+23
|
* st: add const qualifiers, use GL typesBrian Paul2009-04-091-13/+10
|
* st: make loops over 3D texture slices a litte more intuitiveBrian Paul2009-04-091-10/+16
|
* st: reformatting and clean-ups in texture codeBrian Paul2009-04-091-95/+67
|
* mesa: fix potential recursive locking deadlock in _mesa_HashWalk()Brian Paul2009-04-091-4/+14
| | | | If the walk callback called _mesa_HashRemove() we'd deadlock.
* i965: free shader's constant buffer in brwDeleteProgram()Brian Paul2009-04-091-0/+6
| | | | Fixes mem leak observed with texcombine test.
* i965: set BRW_MASK_DISABLE flag in "send" instruction in brw_dp_READ_4()Brian Paul2009-04-081-1/+2
| | | | | | This fixes the random results that were seen when fetching a constant inside an IF/ELSE clause. Disabling the execution mask ensures that all the components of the register are written.
* i965: clean-ups, debug code in brw_wm_glsl.cBrian Paul2009-04-081-34/+15
|
* i965: init current_const[i].index = -1Brian Paul2009-04-081-3/+4
|
* i965: move the fetch_constants() call before setting conditional mod stateBrian Paul2009-04-081-4/+4
| | | | | | | | Before, the instruction's CondUpdate field was mistakenly effecting the constant-fetch operation. Fixes progs/glsl/bump.c demo. But there are some other issues related to condition flags and IF/ELSE that need investigation...
* mesa: minor datatype changes in optimization codeBrian Paul2009-04-081-6/+7
|
* 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
|