summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2009-04-09i965: re-org of some of the new constant buffer codeBrian Paul
Plus, begin the new code for vertex shader const buffers.
2009-04-09i965: new SURF_INDEX_ macrosBrian Paul
Used to map drawables, textures and constant buffers to surface binding table indexes.
2009-04-09intel / DRI2: Accept fake front-buffer from loaderIan Romanick
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 <ian.d.romanick@intel.com> Reviewed-by: Kristian Høgsberg <krh@redhat.com>
2009-04-09intel / DRI2: Track and flush front-buffer renderingIan Romanick
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 <ian.d.romanick@intel.com> Reviewed-by: Kristian Høgsberg <krh@redhat.com>
2009-04-09st: remove another unneeded 'is compressed' comparisonBrian Paul
2009-04-09st: remove unneeded "is compressed" checkBrian Paul
The format indicates compressed vs. uncompressed.
2009-04-09st: rearrange some code to be a little more clearBrian Paul
2009-04-09gallium: remove unneeded compressed=0 assignmentBrian Paul
2009-04-09st: remove comp_byte parameter to st_texture_create()Brian Paul
We can determine if the texture is compressed by checking the format.
2009-04-09st: consolidate format->usage computationBrian Paul
2009-04-09st: add const qualifiers, use GL typesBrian Paul
2009-04-09st: make loops over 3D texture slices a litte more intuitiveBrian Paul
2009-04-09st: reformatting and clean-ups in texture codeBrian Paul
2009-04-09mesa: fix potential recursive locking deadlock in _mesa_HashWalk()Brian Paul
If the walk callback called _mesa_HashRemove() we'd deadlock.
2009-04-09i965: free shader's constant buffer in brwDeleteProgram()Brian Paul
Fixes mem leak observed with texcombine test.
2009-04-08i965: set BRW_MASK_DISABLE flag in "send" instruction in brw_dp_READ_4()Brian Paul
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.
2009-04-08i965: clean-ups, debug code in brw_wm_glsl.cBrian Paul
2009-04-08i965: init current_const[i].index = -1Brian Paul
2009-04-08i965: move the fetch_constants() call before setting conditional mod stateBrian Paul
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...
2009-04-08mesa: minor datatype changes in optimization codeBrian Paul
2009-04-08Mesa: allow suppression of debug messages in a debug buildRobert Ellison
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*.
2009-04-08gallium: when using gl_PointCoord ensure we use the correct attribute.Alan Hourihane
2009-04-08mesa: Don't attempt to free the dummy program.José Fonseca
2009-04-07st: implement glCopyTexImage() for GL_DEPTH24_STENCIL8 internal formatBrian Paul
2009-04-07st: implement GL_DEPTH_STENCIL format for glReadPixels and DrawPixels()Brian Paul
2009-04-07mesa: add another special/optimized case in _mesa_unpack_depth_span()Brian Paul
2009-04-07swrast: fix point rendering function selectionBrian Paul
Need to clamp default point size to min/max range before checking if it's one. Fixes glean pointAtten test.
2009-04-07mesa: fix incorrect component ordering for sRGB8 texture fetch/storeBrian Paul
This format is layered on MESA_FORMAT_RGB888 so the component order is actually BGR. Fixes glean pixelFormat failures.
2009-04-07glsl: enable the new linear scan register allocator codeBrian Paul
Seems to b working well enough to enable all the time. Optimizations can be disabled with "export MESA_GLSL=nopt" if needed.
2009-04-07glsl: don't optimize program if MESA_GLSL=noptBrian Paul
2009-04-07swrast: restore !shader check around add_specular()Brian Paul
Fixes a regression from commit 76ac75af8e5481b498981c133836efa2101be2dc.
2009-04-06swrast: more texcombine clean-upsBrian Paul
2009-04-06swrast: asst. clean-ups in texcombine codeBrian Paul
2009-04-06swrast: fix secondary color add for glBitmapBrian Paul
Also, clean up the logic involved in choosing per-vertex vs. per-fragment primary+secondary color addition.
2009-04-06swrast: fix incorrect arithmetic for GL_ADD_SIGNED/GL_COMBINE4_NV modeBrian Paul
2009-04-06st: as with swrast, interpret texture border color according to texture formatBrian Paul
Depending on the hardware driver this might not be needed, but it will cause no harm.
2009-04-06st: rename a helper functionBrian Paul
2009-04-06swrast: fix texture border color interpretationBrian Paul
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).
2009-04-06mesa: Fix orientation adjustment for reading stencil pixels.José Fonseca
Fixes conform spcorner.c & spclear.c failure.
2009-04-06intel: Avoid dri2 GetBuffers round-trips for internal Viewport calls.Eric Anholt
This gets us the savings for driver-internal viewport calls that dd1c68f15123a889a3ce9d2afe724e272d163e32 was attempting, without relying on Xlib internals or clients handling X events.
2009-04-06i965: Use GTT maps when available to upload vertex arrays and system VBOs.Eric Anholt
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.
2009-04-06intel: Clean up some a leftover from sedding of bufmgr context->screen move.Eric Anholt
2009-04-06radeon: Expose a 32 bit RGBA fbconfig even when the screen depth is 16.Michel Dänzer
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 .
2009-04-04gallium: Clean up driver clear() interface.Michel Dänzer
Only allows clearing currently bound buffers, but colour and depth/stencil in a single call.
2009-04-04gallium: Add utility helper for packing combined depth/stencil values.Michel Dänzer
2009-04-03intel: #include texgetimage.hBrian Paul
2009-04-03mesa: move glGetTexImage(), glGetCompresssedTexImage() code into new fileBrian Paul
2009-04-03mesa: remove the noClamp parameter to _mesa_pack_rgba_span_float()Brian Paul
It was only set to GL_TRUE in one place where it isn't really needed (glGetTexImage(sRGB format)).
2009-04-03mesa: clamp colors to [0,1] for glGetTexImage() when format is GL_LUMINANCEBrian Paul
For luminance, we add R+G+B and it seems we should always clamp in case.
2009-04-03mesa: whitespace and comment clean-upBrian Paul