Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | st: rearrange some code to be a little more clear | Brian Paul | 2009-04-09 | 1 | -9/+7 |
| | |||||
* | gallium: remove unneeded compressed=0 assignment | Brian Paul | 2009-04-09 | 1 | -1/+0 |
| | |||||
* | st: remove comp_byte parameter to st_texture_create() | Brian Paul | 2009-04-09 | 6 | -20/+9 |
| | | | | We can determine if the texture is compressed by checking the format. | ||||
* | st: consolidate format->usage computation | Brian Paul | 2009-04-09 | 1 | -9/+23 |
| | |||||
* | st: add const qualifiers, use GL types | Brian Paul | 2009-04-09 | 1 | -13/+10 |
| | |||||
* | st: make loops over 3D texture slices a litte more intuitive | Brian Paul | 2009-04-09 | 1 | -10/+16 |
| | |||||
* | st: reformatting and clean-ups in texture code | Brian Paul | 2009-04-09 | 1 | -95/+67 |
| | |||||
* | mesa: fix potential recursive locking deadlock in _mesa_HashWalk() | Brian Paul | 2009-04-09 | 1 | -4/+14 |
| | | | | If the walk callback called _mesa_HashRemove() we'd deadlock. | ||||
* | i965: free shader's constant buffer in brwDeleteProgram() | Brian Paul | 2009-04-09 | 1 | -0/+6 |
| | | | | Fixes mem leak observed with texcombine test. | ||||
* | i965: set BRW_MASK_DISABLE flag in "send" instruction in brw_dp_READ_4() | Brian Paul | 2009-04-08 | 1 | -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.c | Brian Paul | 2009-04-08 | 1 | -34/+15 |
| | |||||
* | i965: init current_const[i].index = -1 | Brian Paul | 2009-04-08 | 1 | -3/+4 |
| | |||||
* | i965: move the fetch_constants() call before setting conditional mod state | Brian Paul | 2009-04-08 | 1 | -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 code | Brian Paul | 2009-04-08 | 1 | -6/+7 |
| | |||||
* | Mesa: allow suppression of debug messages in a debug build | Robert Ellison | 2009-04-08 | 1 | -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 Hourihane | 2009-04-08 | 1 | -3/+5 |
| | |||||
* | mesa: Don't attempt to free the dummy program. | José Fonseca | 2009-04-08 | 1 | -3/+5 |
| | |||||
* | st: implement glCopyTexImage() for GL_DEPTH24_STENCIL8 internal format | Brian Paul | 2009-04-07 | 1 | -2/+4 |
| | |||||
* | st: implement GL_DEPTH_STENCIL format for glReadPixels and DrawPixels() | Brian Paul | 2009-04-07 | 3 | -43/+96 |
| | |||||
* | mesa: add another special/optimized case in _mesa_unpack_depth_span() | Brian Paul | 2009-04-07 | 1 | -0/+11 |
| | |||||
* | swrast: fix point rendering function selection | Brian Paul | 2009-04-07 | 1 | -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/store | Brian Paul | 2009-04-07 | 1 | -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 code | Brian Paul | 2009-04-07 | 1 | -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=nopt | Brian Paul | 2009-04-07 | 1 | -1/+2 |
| | |||||
* | swrast: restore !shader check around add_specular() | Brian Paul | 2009-04-07 | 1 | -4/+6 |
| | | | | Fixes a regression from commit 76ac75af8e5481b498981c133836efa2101be2dc. | ||||
* | swrast: more texcombine clean-ups | Brian Paul | 2009-04-06 | 1 | -21/+10 |
| | |||||
* | swrast: asst. clean-ups in texcombine code | Brian Paul | 2009-04-06 | 1 | -26/+19 |
| | |||||
* | swrast: fix secondary color add for glBitmap | Brian Paul | 2009-04-06 | 3 | -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 mode | Brian Paul | 2009-04-06 | 1 | -6/+6 |
| | |||||
* | st: as with swrast, interpret texture border color according to texture format | Brian Paul | 2009-04-06 | 1 | -4/+37 |
| | | | | | Depending on the hardware driver this might not be needed, but it will cause no harm. | ||||
* | st: rename a helper function | Brian Paul | 2009-04-06 | 1 | -4/+4 |
| | |||||
* | swrast: fix texture border color interpretation | Brian Paul | 2009-04-06 | 1 | -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é Fonseca | 2009-04-06 | 1 | -1/+1 |
| | | | | Fixes conform spcorner.c & spclear.c failure. | ||||
* | intel: Avoid dri2 GetBuffers round-trips for internal Viewport calls. | Eric Anholt | 2009-04-06 | 3 | -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 Anholt | 2009-04-06 | 3 | -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 Anholt | 2009-04-06 | 1 | -3/+0 |
| | |||||
* | radeon: Expose a 32 bit RGBA fbconfig even when the screen depth is 16. | Michel Dänzer | 2009-04-06 | 1 | -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änzer | 2009-04-04 | 1 | -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änzer | 2009-04-04 | 1 | -13/+3 |
| | |||||
* | intel: #include texgetimage.h | Brian Paul | 2009-04-03 | 1 | -0/+1 |
| | |||||
* | mesa: move glGetTexImage(), glGetCompresssedTexImage() code into new file | Brian Paul | 2009-04-03 | 9 | -335/+409 |
| | |||||
* | mesa: remove the noClamp parameter to _mesa_pack_rgba_span_float() | Brian Paul | 2009-04-03 | 8 | -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_LUMINANCE | Brian Paul | 2009-04-03 | 1 | -4/+6 |
| | | | | For luminance, we add R+G+B and it seems we should always clamp in case. | ||||
* | mesa: whitespace and comment clean-up | Brian Paul | 2009-04-03 | 1 | -11/+16 |
| | |||||
* | mesa: remove extra semicolons | Brian Paul | 2009-04-03 | 1 | -5/+5 |
| | |||||
* | mesa: in mesa_add_named_constant(), avoid adding duplicate constants | Brian Paul | 2009-04-03 | 1 | -7/+12 |
| | |||||
* | mesa: fix parameter counting in ARB vertex/fragment program parsing | Brian Paul | 2009-04-03 | 1 | -5/+2 |
| | | | | Duplicated unnamed constants were getting counted more than once. | ||||
* | mesa: replace >= with > when testing if we've exceeded max local params | Brian Paul | 2009-04-03 | 1 | -2/+2 |
| | | | | Now a program that uses 256 locals works as it should. | ||||
* | mesa: only clear matrix MAT_DIRTY_INVERSE flag when we actually compute the ↵ | Brian Paul | 2009-04-03 | 1 | -3/+2 |
| | | | | | | | | inverse If _math_matrix_analyse() got called before we allocated the inverse matrix array we could lose the flag indicating that we needed to compute the inverse. This could happen with certain vertex shader cases. | ||||
* | mesa: for OPCODE_LIT, use _mesa_pow() instead of exp() and log() | Brian Paul | 2009-04-03 | 1 | -2/+2 |
| | | | | Also, s/pow/_mesa_pow/ |