summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-06-17i965: fix segfault on low memory conditionsRobert Ellison
When out of memory (in at least one case, triggered by a longrunning memory leak), this code will segfault and crash. By checking for the out-of-memory condition, the system can continue, and will report the out-of-memory error later, a much preferable outcome. (cherry picked from commit 44a4abfd4f8695809eaec07df8eeb191d6e017d7)
2009-06-17Fast path when rebinding the same texture in single context environmentIan Romanick
If there is no shared context, there is no purpose in rebinding the same texture. In some artificial tests this improves performance 10% - 30%. (cherry picked from commit 7f8000db8bd45bb95bda4a4f8535c49b8ef74254)
2009-06-17i915: Don't put VBOs in graphics memory unless required for an operation.Eric Anholt
This saves doing swtnl from uncached memory, which is painful. Improves clutter test-text performance by 10% since it started using VBOs. (cherry picked from commit a945e203d4fe254593bc0c5c5d6caca45e65f9f7)
2009-06-17i915: Fall back on NPOT textured metaops on 830-class.Eric Anholt
(cherry picked from commit 8ec6e036792decf5149a209e51cb5e93ccc5c754)
2009-06-17i915: Restore the Viewport and DepthRange functions on 8xx.Eric Anholt
Fixes failed viewport updates on glxgears (and other apps) resize since e41780fedc2c1f22b43118da30a0103fa68b769f. Bug #20473. (cherry picked from commit 0e83e8f51af07a3066519f169f07d9afbf23252e)
2009-06-17i956: Make state dependency of SF on drawbuffer bounds match Mesa's.Eric Anholt
Noticed while debugging a weird 1D FBO testcase that left its existing viewport and projection matrix in place when switching drawbuffers. Didn't fix the testcase, though. (cherry picked from commit 3a521d84ecc646fcc65fa3fe7c5f1fdbdebe8bc2)
2009-06-17intel: Don't complain on falling back from PBO fastpaths.Eric Anholt
Instead, stash the debug info under the handy debug flag. Bug #20053 (cherry picked from commit 22690482e692cb5ed2f84d3e69545c09292e3484)
2009-06-17mesa: Mark FBOs with compressed color attachments as FBO-incomplete.Eric Anholt
Both EXT_fbo and ARB_fbo agree on this. Fixes a segfault in the metaops mipmap generation in Intel for SGIS_generate_mipmap of S3TC textures in Regnum Online. Bug #21654. (cherry picked from commit 0307e609aa3e707eeb40051bd664d36f2340ba9b)
2009-06-17i915: Use Stencil.Enabled instead of Stencil._Enabled in DrawBuffers.Eric Anholt
The _Enabled field isn't updated at the point that DrawBuffers is called, and the Driver.Enable() function does the testing for stencil buffer presence anyway. bug #21608 for Radeon (cherry picked from commit 4c6f82989983eecc0b3b724716cb3bcb675664c5)
2009-06-17i915: Only use the new 945 cube layout for compressed textures.Eric Anholt
The docs actually explain this, but not in a terribly clear manner. This nearly fixes the piglit cubemap testcase, except that something's going wrong with the nearest filtering at 2x2 sizes in the testcase. Looks good by visual inspection, though. Bug #21692 (cherry picked from commit 5c5a46884899ea25cdf25545d6ab3d9a74eafa3a)
2009-06-17i965: Fix varying payload reg assignment for the non-GLSL-instructions path.Eric Anholt
I don't have a testcase for this, but it seems clearly wrong. (cherry picked from commit dc657f3929fbe03275b3fae4ef84f02e74b51114)
2009-06-17i965: Fix register allocation of GLSL fp inputs.Eric Anholt
Before, if the VP output something that is in the attributes coming into the WM but which isn't used by the WM, then WM would end up reading subsequent varyings from the wrong places. This was visible with a GLSL demo using gl_PointSize in the VS and a varying in the WM, as point size is in the VUE but not used by the WM. There is now a regression test in piglit, glsl-unused-varying. (cherry picked from commit 0f5113deed91611ecdda6596542530b1849bb161)
2009-06-17intel: Use FRONT_AND_BACK for StencilOp as well.Eric Anholt
(cherry picked from commit 64980125c76b05501a6fe7fe20fe52438f459129)
2009-06-17intel: Use GL_FRONT_AND_BACK for stencil clearing.Eric Anholt
This comes from a radeon-rewrite fallback fix, but may also fix stencil clear failure when the polygon winding mode is flipped. (cherry picked from commit d866abeffc7e4a29736fa35fb8ac09c3a28a44d6)
2009-06-17intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.Eric Anholt
(cherry picked from commit d4a42b0ce6455d03be70aa56aacd779be193aca4)
2009-06-17intel: Map write-only buffer objects through the GTT when possible.Eric Anholt
This looks to be a win of a few percent in cairogears with new vbo code, thanks to not polluting caches. (cherry picked from commit aa422b262509bc0763a50f63a51a1730139ea52f)
2009-06-17mesa: rework viewport/scissor initialization codeBrian Paul
The first time a context is bound to a drawable, the viewport and scissor bounds are initialized to the buffer's size. This is actually a bit tricky. A new _mesa_check_init_viewport() function is called in several places to check if the viewport has been initialized. We also use a new ctx->ViewportInitialized flag instead of the overloaded ctx->FirstTimeCurrent flag.
2009-06-17mesa: added null ptr check in Fake_glXCreatePixmap()Brian Paul
Fixes segfault in progs/xdemos/glxgears_pixmap.c
2009-06-17st/glx: added null ptr check in Fake_glXCreatePixmap()Brian Paul
Fixes segfault in progs/xdemos/glxgears_pixmap.c
2009-06-17Revert "scons: Debug build by default."José Fonseca
Per Brian's request. This reverts commit 25f0c33bb3509958a532bdd72b3945c1d5d1cad5.
2009-06-17progs/wgl: Fix shreadtex_mt too.José Fonseca
2009-06-17progs/wgl: Tweak the initialization wait in wglthreads.José Fonseca
There was still a non-zero probability for wglShareLists of failing.
2009-06-17progs/wgl: Get wglShareLists working in wglthreads.José Fonseca
wglShareLists is a little picky -- it seems to check if it has exclusive access to a lock, and fails if it doesn't. This allows the texture to be shared with all windows.
2009-06-17scons: Debug build by default.José Fonseca
Match what autotools and other build systems do by default.
2009-06-17GLX: attempt to fix glean makeCurrent test cases.Brian Paul
Two parts to this: One we don't keep pointers to possibly freed memory anymore once we unbind the drawables from the context. Brian I need to figure out what the comment you made there, can we get a glean/piglit test so we can fix it properly? If the new gc is the same as the oldGC, we call the unbind even though we just bound it in that function. doh. (cherry picked from master, commit 77506dac8e81e9548a7e9680ce367175fe5747af)
2009-06-17docs: Document building with SCons.José Fonseca
2009-06-17wgl: Factor out some repetitive code into inline functions.José Fonseca
2009-06-17progs/wgl: Allow resizing wglthreads' windows.José Fonseca
2009-06-16i965: fix bugs in projective texture coordinatesBrian Paul
For the TXP instruction we check if the texcoord is really a 4-component atttibute which requires the divide by W step. This check involved the projtex_mask field. However, the projtex_mask field was being miscalculated because of some confusion between vertex program outputs and fragment program inputs. 1. Rework the size_masks calculation so we correctly set bits corresponding to fragment program input attributes. 2. Rename projtex_mask to proj_attrib_mask since we're interested in more than just texcoords (generic varying vars too). 3. Simply the indexing of the size_masks and proj_attrib_mask fields. 4. The tracker::active[] array was mis-dimensioned. Use MAX_PROGRAM_TEMPS instead of a magic number. 5. Update comments, add new assertions. With these changes the Lightsmark demo/benchmark renders correctly, until we eventually hit a GPU lockup...
2009-06-16softpipe: fix out of bounds quad rasterization bugBrian Paul
For some triangles we can generate quads which lie just outside the surface bounds. Just check the quad's mask before trying to emit/process the quad. Fixes failed assertion in Lightsmark.
2009-06-16mesa: fix incorrect viewport clamping in _mesa_set_viewport()Brian Paul
A 0 by 0 viewport size is legal. Don't clamp against lower bound of one. The error checking earlier in the function prevents negative values.
2009-06-16mesa: fix REMAINDER() macroBrian Paul
The results were incorrect for some negative values of A. See bug 21872.
2009-06-16gallium: Avoid atomic ops / locking when src is dst.José Fonseca
2009-06-16progs/wgl: Quit after displaying usage for -h option.José Fonseca
2009-06-16progs/wgl: Use appropriate types to silence msvc warnings.José Fonseca
2009-06-16progs/wgl: Fix assertion failure in wglthreads' texture creation.José Fonseca
2009-06-15intel: Release fb backing regions in intelDestroyBuffer()Shuang He
Fixes memory leak when destroying framebuffers.
2009-06-15python/tests: Add is_depth_stencil_format utility function.José Fonseca
2009-06-15python/tests: Cleanup texture_sample.José Fonseca
2009-06-15mesa: Always return a value.José Fonseca
2009-06-15mesa: Use appropriate float/integer types.José Fonseca
2009-06-15mesa: Use type modifier for float constants.José Fonseca
2009-06-15mesa: Use integer type with appropriate sign.José Fonseca
2009-06-15rtasm: Use 32bit constant.José Fonseca
As we're only using 32bit bitmasks.
2009-06-15gallium: Ensure assert macro is defined before being used in p_thread.hJosé Fonseca
2009-06-15softpipe: Fix softpipe_is_texture_referenced.José Fonseca
Render results are only visible when the render cache is flushed. softpipe_is_texture_referenced must reflect that or transfers to/from the textures bound in the framebuffer won't be proceeded of the necessary flush, causing transfer data to be outdated/clobbered. This fixes conform drawpix test with softpipe.
2009-06-15progs/tests: Use opaque colors.José Fonseca
Transparency is not relevant for this example, and leads to distraction due to different results in alpha visuals, when capturing images to disk.
2009-06-15dri st: Don't require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for ↵Thomas Hellstrom
depth- and stencil renderbuffers. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-06-15gallium: Fix segfault and valgrind error introduced with commit ↵Thomas Hellstrom
3f2e006b759705abd7c409d30f9aeb1f2a75b83f Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-06-12demos: update fbotexture.c to use EXT or ARB functions exclusivelyBrian Paul
When the -arb option is specified we use GL_ARB_framebuffer_object intead of GL_EXT_framebuffer_object. For some vendors' OpenGL it's important to call the ARB entrypoints instead of the EXT entrypoints to get correct behaviour. Use some function pointer tricks to do this (instead of GLEW).