summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-09-21softpipe: Fix cube face selection.Brian Paul
If arx and ary are equal, we still want to choose from one of them, and not arz. (cherry picked from commit de685b37a91bc95dd4093a44a49b7b47385b1f7c)
2009-09-21swrast: fix cube face selectionBrian Paul
If arx and ary are equal, we still want to choose from one of them, and not arz. This is the same as Michal's softpipe fix.
2009-09-21r300: Zero-initialize register for NV_vertex_programNicolai Hähnle
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-21r300: Fix handling of NV_vertex_program parametersNicolai Hähnle
The handling is a bit inefficient, unfortunately, but I don't want to make any intrusive changes for Mesa 7.6. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-21Merge branch 'mesa_7_5_branch' into mesa_7_6_branchMichel Dänzer
2009-09-21intel: Fix crash in intel_flush().Michel Dänzer
Since commit 2921a2555d0a76fa649b23c31e3264bbc78b2ff5 ('intel: Deassociated drawables from private context struct in intelUnbindContext'), intel->driDrawable may be NULL in intel_flush().
2009-09-20radeon: Fix legacy bo not to reuse dma buffers before refcount is 1.Pauli Nieminen
This should help detecting possible memory leaks with dma buffers and prevent possible visual corruption if data would be overwriten too early.
2009-09-20r300/compiler: Fix trig instructions in R300 fpNicolai Hähnle
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20radeon: Fix typo in variable name.Pauli Nieminen
2009-09-20radeon: Improve WARN_ONCE macro to appear as single statement.Pauli Nieminen
Do-while makes macro safe to be used with if and for constructions. Also remove __LINE__ macro from variable name because scope is local to macro anyway.
2009-09-20radeon: Fix "verts" debugging enableNicolai Hähnle
Copy'n'paste apparently prevented the RADEON_VERTS flag from being enabled. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20Merge branch 'mesa_7_5_branch' into mesa_7_6_branchNicolai Hähnle
2009-09-20mesa/st: Create front renderbuffer on the fly when supplied with a surfaceNicolai Hähnle
Normally, the mesa/st would create a fake front buffer out of a client-allocated surface. In the DRI setting, however, st/dri provides a front buffer surface which is created and maintained by the X server. Prefer to use this surface instead, so that front buffer rendering and reading works correctly. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20mesa/st: Initialize format bits of framebuffer renderbuffersNicolai Hähnle
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20docs: Document new features in radeon/r200/r300 driversNicolai Hähnle
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20r300/compiler: Fix R300 fragment program regression introduced by 0723cd1...Nicolai Hähnle
We obviously need to move the code addr register backwards because their may be overlap. This bug affected in particular the Compiz water plugin. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-18[i965] add a missing header fileZou Nan hai
2009-09-18 [i965] use intel_batchbuffer_flush to flush the clearZou Nan hai
2009-09-16mesa: fix clip plane, fog issuesBrian Paul
2009-09-16glx: Use initstate_r / random_r instead of corrupting global random number stateIan Romanick
Previously srandom and random were used. This cause the global random number generator state to be modified. This caused problems for applications that called srandom before calling into GLX. By using local state the global state is left unmodified. This should fix bug #23774.
2009-09-16st/mesa: fix some incorrect branching/clean-up code in TexImage functionsBrian Paul
We need to be sure to call the _mesa_unmap_teximage_pbo() function if we called _mesa_validate_pbo_teximage().
2009-09-16st/mesa: fix texture memory allocation bugBrian Paul
The following example caused an incorrect GL_OUT_OF_MEMORY error to be raised in glTexSubImage2D: glTexImage2D(level=0, width=32, height=32, pixels=NULL); glTexImage2D(level=0, width=64, height=64, pixels=NULL); glTexSubImage2D(level=0, pixels!=NULL); The second glTexImage2D() call needs to cause the first image to be deallocated then reallocated at the new size. This was not happening because we were testing for pixels==NULL too early.
2009-09-16Merge branch 'mesa_7_5_branch' into mesa_7_6_branchIan Romanick
Conflicts: src/mesa/main/dlist.c
2009-09-16intel: Deassociated drawables from private context struct in intelUnbindContextIan Romanick
The generic DRI infrastructure makes sure that __DRIcontextRec::driDrawablePriv and __DRIcontextRec::driReadablePriv are set to NULL after unbinding a context. However, the intel_context structure keeps cached copies of these pointers. If these cached pointers are not NULLed and the drawable is actually destroyed after unbinding the context (typically by way of glXDestroyWindow), freed memory will be dereferenced in intelDestroyContext. This should fix bug #23418.
2009-09-16i965: do a flush in clear, fix openarena render issue,Zou Nan hai
fd.o bug# 23857
2009-09-15docs: glUniform functions are now compiled into display listsBrian Paul
2009-09-15mesa: compile glUniformMatrix() functions into display listsBrian Paul
I believe this is the last of the shader-related functions that needed display list treatment.
2009-09-15mesa: implement more glUniform display list functionsBrian Paul
2009-09-15docs: document glUseProgram display list fixBrian Paul
2009-09-15mesa: compile glUniform4f() into display listsBrian Paul
Note: there are more glUniform functions to compile...
2009-09-15mesa: compile glUseProgram/glUseProgramObjectARB into display listsBrian Paul
Fixes bug 23746
2009-09-15Merge commit 'origin/mesa_7_5_branch' into mesa_7_6_branchIan Romanick
2009-09-15GLX: Complain when buggy applications call GLX 1.3 functions.Ian Romanick
2009-09-15Merge branch 'mesa_7_5_branch' into mesa_7_6_branchBrian Paul
2009-09-15gl: restore some PFNGL typedefsBrian Paul
Commit d33c315d9e32584dea12cea683795b498a9f5eca removed a few too many typedefs. We need the typedefs in glext.h which are protected by #ifdef GL_VERSION_1_2 but we can exclude the ones protected by GL_VERSION_1_2_DEPRECATED.
2009-09-14progs/vp: print program and error info when program does not compileBrian Paul
2009-09-14glsl: added some link debug code (disabled)Brian Paul
2009-09-14docs: document linker/preprocessor bug fixBrian Paul
2009-09-14glsl: remove extra #version directives from concatenated shader sourcesBrian Paul
When we concatenate shaders to do our form of poor-man linking, if there's multiple #version directives, preprocessing fails. This change disables the extra #version directives by changing the first two chars to //. This should help with some Wine issues such as bug 23946.
2009-09-14gallium: Add Mac OS to pipe/p_thread.h.Vinson Lee
Mac OS also has POSIX threads.
2009-09-14configure: fix commentThierry Vignaud
2009-09-12Use CFLAGS as HOST_CFLAGS by defaultDan Nicholson
Unless we're cross compiling, the HOST_CFLAGS should be the same as the normal CFLAGS. This allows the x86 and x86_64 asm to be built correctly with a native compiler using -m32/-m64. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2009-09-11docs: mention the new Gallium llvmpipe driverBrian Paul
2009-09-11llvmpipe: asst fixes for 'make linux-llvmpipe'Brian Paul
2009-09-11mesa: raise GL_INVALID_ENUM not GL_INVALID_VALUE for glTexParamter errorsVinson Lee
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-09-11radeon: Remove structure allocation from iterator variable.Pauli Nieminen
dma_bo varaible is only used for iterating so allocating memory for it only causes memory leaks.
2009-09-10Merge branch 'mesa_7_5_branch' into mesa_7_6_branchBrian Paul
2009-09-10intel: disable intel_stencil_drawpixels() for nowBrian Paul
It doesn't work reliably even when all the prerequisite checks are made.
2009-09-10docs: document Gallium glDrawPixels(GL_STENCIL_INDEX) fixBrian Paul
2009-09-10softpipe: minor indentation fixBrian Paul