summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2011-03-08swrast: add coord clamping, fix comparisons for shadow testingPhilip Taylor
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=31159 for swrast and piglit depth-tex-compare. NOTE: This is a candidate for the 7.10 branch. Signed-off-by: Brian Paul <brianp@vmware.com>
2011-03-08r300/compiler: fix equal and notequal shadow compare functionsMarek Olšák
2011-03-08r300/compiler: detect constants harderMarek Olšák
2011-03-08r300/compiler: improve the detection of constants for constant foldingMarek Olšák
Now the expression V==0 generates one instruction instead of two.
2011-03-08r300/compiler: saturate Z before the shadow comparisonMarek Olšák
This fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31159 NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-03-07mesa: return after invalidating renderbufferMarek Olšák
2011-03-07st/mesa: fail to alloc a renderbuffer if st_choose_renderbuffer_format failsMarek Olšák
This fixes: state_tracker/st_format.c:401:st_pipe_format_to_mesa_format: Assertion `0' failed.
2011-03-07mesa: invalidate framebuffer if internal format of renderbuffer is changedMarek Olšák
RenderTexture doesn't have to be called in invalidate_rb, I guess.
2011-03-07mesa: initialize DummyBufferObject's mutexBrian Paul
The mutex's fields were all zeros. That's OK on Linux, but not Windows. NOTE: This is a candidate for the 7.10 branch.
2011-03-07st/mesa: fix incorrect version checking codeBrian Paul
2011-03-07mesa: remove stray _mesa_finish() call in _mesa_CopyPixels()Brian Paul
Leftover debug code from 6364d75008b4fa580c1cb47c59ba1cf3e0caa6cd.
2011-03-07i915: Only invert wpos when rendering to the system framebuffer.Henri Verbeet
2011-03-07i915: Derive the gl_fragment_program from i915_fragment_program.Henri Verbeet
Instead of using the current gl_fragment_program. These aren't necessarily the same, for example when translate_program() is called by i915ValidateFragmentProgram().
2011-03-07intel: check for miptree allocation failureChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-07intel: Add some defense against buffer allocation failure for subimage blitsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-07intel: Add some defense against bo allocation failureChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-06glx/dri: add initial dri interface for GLX_EXT_framebuffer_sRGB.Dave Airlie
This realigns the name of the glx bit to align with the core mesa names.
2011-03-05gallium: split CAP_INSTANCE_DRAWING into INSTANCEID and INSTANCE_DIVISORMarek Olšák
ARB_instanced_arrays is a subset of D3D9. ARB_draw_instanced is a subset of D3D10. The point of this change is to allow D3D9-level drivers to enable ARB_instanced_arrays without ARB_draw_instanced.
2011-03-04i965: Apply a workaround for the Ironlake "vertex flashing".Eric Anholt
This is an awful hack and will hurt performance on Ironlake, but we're at a loss as to what's going wrong otherwise. This is the only common variable we've found that avoids the problem on 4 applications (CelShading, gnome-shell, Pill Popper, and my GLSL demo), while other variables we've tried appear to only be confounding. Neither the specifications nor the hardware team have been able to provide any enlightenment, despite much searching. https://bugs.freedesktop.org/show_bug.cgi?id=29172 Tested by: Chris Lord <chris@linux.intel.com> (Pill Popper) Tested by: Ryan Lortie <desrt@desrt.ca> (gnome-shell)
2011-03-04st/mesa: set PIPE_BIND_RENDER_TARGET for sRGB formats if UNORM is supportedMarek Olšák
Because the format can be changed to UNORM in a surface. This fixes: state_tracker/st_atom_framebuffer.c:163:update_framebuffer_state: Assertion `framebuffer->cbufs[i]->texture->bind & (1 << 1)' failed.
2011-03-04i965: Fix extending VB packetsChris Wilson
Computation of the delta of this array from the last had a silly little bug and ignored any initial delta==0 causing grief in Nexuiz and friends. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-04i965: Handle URB_FENCE erratum for BroadwaterChris Wilson
There is a silicon bug which causes unpredictable behaviour if the URB_FENCE command should cross a cache-line boundary. Pad before the command to avoid such occurrences. As this command only applies to gen4/5, do the fixup unconditionally as the specs do not actually state for which chip it was fixed (and the cost is negligible)... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-04i965: Align index to type size and flush if the type changesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-04intel: Add couple of missing gen6 commands to decodeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-04i965: Prevent using a zero sized (or of unknown type) vertex arrayChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-03scons: More tweaks to fix MinGW build.José Fonseca
2011-03-03scons: Ensure generated headers are in the include path.José Fonseca
2011-03-03i965: SNB GT1 has only 32k urb and max 128 urb entries.Zou Nan hai
Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
2011-03-02mesa: added gl_program_constants::MaxAddressOffsetBrian Paul
See https://bugs.freedesktop.org/show_bug.cgi?id=29418
2011-03-02mesa: increase INST_INDEX_BITS to 12Brian Paul
For more info see fd.o bug 29418.
2011-03-02Revert "mesa: reduce calls to _mesa_test_framebuffer_completeness()"Brian Paul
This reverts commit 1f9a0a4e6e5566c36c781add5f1e62af3efdfb58. This caused trouble with Lightsmark w/ i965 driver and fbo/fbo-blit-d24s8 (see bug 34894). It's probably something simple but no time to debug now.
2011-03-02vbo: fix error parameterBrian Paul
Spotted by Ian.
2011-03-02i965: Maxinum the usage of urb space on SNB.Zou Nan hai
SNB has 64k urb space, we only use piece of them. The more urb space we alloc, the more concurrent vs threads we can run. push the urb space usage to the limit. Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
2011-03-02mesa/st: fix softpipe npot compressed mipmaps.Dave Airlie
this fixes fbo-generatemipmap-formats rgtc and s3tc in NPOT mode with softpipe. r600g fails to even get level 0 correct so have to look into that a bit further. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02mesa/st: fix generate mipmap for signed compressed formats.Dave Airlie
This was always converting to 8-bit per channel unsigned formats, which isn't suitable for RGTC signed formats, this special cases those two formats and converts to floats for those. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02rgtc: remove GL types from this file.Dave Airlie
I'd like to share this file with gallium u_format stuff. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02rgtc: move the texel fetch into common unsigned/signed code.Dave Airlie
This function can be done in the include file also. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02rgtc: fix issues with compressor and signed types.Dave Airlie
With signed types we weren't hitting this test however the comment stating this doesn't happen often doesn't apply when using signed types since an all 0 block is quite common which isn't abs min or max. this fixes the limits correctly again also. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02rgtc: don't try to access off the end of the block.Dave Airlie
if the values are all in the last dword, the high bits can be 0, This fixes a valgrind warning I saw when playing with mipmaps. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02rgtc: move to using ubyte for fetch instead of chan + fix limitDave Airlie
My previous fix to the byte max was incorrect. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02st/mesa: use RGTC for GL_COMPRESSED_RED/RG if possibleMarek Olšák
With proper fallback formats.
2011-03-01vbo: add vbo_always_unmap_buffers()Brian Paul
Drivers can call this function as needed. It tells the VBO module to always unmap the current glBegin/glEnd VBO when we flush. Otherwise it's possible to be in a flushed state but still have the VBO mapped.
2011-03-01vbo: generate GL_INVALID_VALUE for bad glVertexAttrib indexBrian Paul
2011-03-01mesa: Revert most of 3158cc7d because it causes other breakageIan Romanick
2011-03-01scons: Use Flex and Bison to generate lexer/parser files.Kenneth Graunke
This gets it building again here; I'll leave it up to the SCons maintainers to make further improvements.
2011-03-02rgtc: fix fetch function limits for signed typesDave Airlie
2011-03-02rgtc: fixup mipmap generationDave Airlie
this allows swrast to pass mipmap generation for these formats.
2011-03-02swrast/rgtc: fix rendering issues introduced when fix constantsDave Airlie
The max value was wrong and this showed up in the piglit tests.
2011-03-01mesa: Fix build breakage caused by c73e6ceIan Romanick
2011-03-01Add generated parser / lexer files to gitignore listsIan Romanick