summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* DRI2: report swap events correctly in direct rendered caseJesse Barnes2010-04-131-2/+1
| | | | | | | In the direct rendered case, we need to convert DRI2 swap complete events to GLX events for the client to consume. This path had what looks like a stray "& 0x75" from some earlier debugging that prevented clients from seeing the right event code.
* i915g: Fix assert.Vinson Lee2010-04-111-1/+1
|
* r300: respect radeon common code fallbacksMaciej Cencora2010-04-113-2/+10
| | | | Fixes progs/demos/shadowtex under KMS
* r300: set proper vertex index limits also in non indexed modeMaciej Cencora2010-04-111-0/+8
| | | | Fixes #27521, broken menus in UT2004 and broken water refraction in Sauerbraten.
* r600: add new r7xx pci idsAlex Deucher2010-04-092-0/+6
|
* glx: Fix config chooser logic for 'mask' matchingKristian Høgsberg2010-04-091-5/+9
| | | | | | | | | | | | | | | | | | | | | When matching attributes using the 'mask' matching criteria, the spec says that "Only GLXFBConfigs for which the set bits of attribute include all the bits that are set in the requested value are considered. (Additional bits might be set in the attribute)." The current test returns true if the two bit masks have bits in common, specifically it matches even if the requested value has bits set that are not set in the fbconfig attribute. For example, an application asking for GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_PBUFFER_BIT, as glxpbdemo does, will match fbconfigs that don't support pbuffer rendering, as long as they support pixmap rendering. Reviewed-by: Ian Romanick <[email protected]>
* mesa: fix instruction indexing bugsBrian Paul2010-04-091-2/+2
| | | | | | | We were looping over instructions but only looking at the 0th instruction's opcode. Fixes fd.o bug 27566.
* st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regressionBrian Paul2010-04-081-21/+20
| | | | | | | | | | Commit 1454f20a991ddda35f1a2ffda953012078b407ba caused the regression. When the vertex shader emitted both a texcoord and color we were grabbing the wrong vertex attributes. Fix the draw_quad() code to put texcoords in slot[1] and color in slot[2]. That's a bit cleaner than changing the vertex shader code. Tested with progs/tests/zreaddraw.c
* intel: Call intel_prepare_render() in intelClear()Li Peng2010-04-082-2/+4
| | | | | Make sure we have up to date buffers before we start looking at the tiling bits to determine how to clear.
* texenvprogram: fix for ARB_draw_buffers.Dave Airlie2010-04-081-15/+28
| | | | | | | piglit has a test called fbo-drawbuffers, this fails for me on r300g, and fixing the texenv program to use the DATA outputs fixes it. Signed-off-by: Dave Airlie <[email protected]>
* softpipe: index the correct blend/mask state indexBrian Paul2010-04-051-2/+4
| | | | | | | | Need to check pipe_blend_state::independent_blend_enable to determine which render target/index to use when checking blend enable and colormask state. This is part of the fix for piglit/fbo-drawbuffers
* mesa: set version string to 7.8.1Ian Romanick2010-04-051-2/+2
|
* mesa: update_arrays() depends on program state.Henri Verbeet2010-04-051-3/+2
| | | | | | It uses ctx->VertexProgram._Current. Signed-off-by: Brian Paul <[email protected]>
* Update to final names from GLX_INTEL_swap_event specIan Romanick2010-04-042-2/+2
| | | | Fixes bug #27454.
* util: Use GCC atomic bultins on GCC 4.1 and higher only.Vinson Lee2010-04-031-1/+1
|
* glx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.Vinson Lee2010-04-021-2/+39
| | | | | Add ifdef guards around variables of types defined only for GLX_DIRECT_RENDERING.
* st/vega: Do not depend on libm.Chia-I Wu2010-04-021-2/+3
| | | | | This fixes the "no rule to make target -lm" error on darwin, reported by Jeremy Huddleston.
* GLX/DRI2: pass GLX drawable ID to dri2InvalidateBuffersJesse Barnes2010-04-011-2/+2
| | | | | | | | The IDs will be the same in the case where an X window is used directly as a GLX drawable, but will fail if a new GLX drawable is created explicitly, as with glxgears_fbconfig. Fixes fdo bug #27190.
* Revert accidental commits from the xquartz treeJeremy Huddleston2010-04-0170-51303/+94
| | | | | | | | | | | This reverts commit 9aadc793f3db64cefa0b08f18abad424a659dacc. This reverts commit 69ea4e7718efb60b6b0d795a355cebd6712ceac1. This reverts commit dbe8b013936d977ec63d6607bfd2fc6772d29787. This reverts commit 23215ef4d60a86d9f3b3fdc08e3fdadc59e98890. This reverts commit 9495e3703062d1ddaf3161f4efc23f0b51284d9b. This reverts commit 0594cf70883b64692ba617d85f4f9b4e636e5c2b. This reverts commit 86a7978d37393ee34f876569ac06ffdb8d7289ae. This reverts commit 437902ce978cde9a0e1aa260f12dc232a8501c42.
* apple: Use mesa gl.h rather than generating one.Jeremy Huddleston2010-04-017-181/+48
| | | | Signed-off-by: Jeremy Huddleston <[email protected]>
* apple: Integrate our libGL into the existing build system betterJeremy Huddleston2010-04-013-74/+113
| | | | Signed-off-by: Jeremy Huddleston <[email protected]>
* apple: Change ifdefs for DRI to be DRI && !APPLEJeremy Huddleston2010-04-0116-121/+106
| | | | Signed-off-by: Jeremy Huddleston <[email protected]>
* apple: Remove duplicate headers that already exist in mesa.Jeremy Huddleston2010-04-017-20231/+0
| | | | Signed-off-by: Jeremy Huddleston <[email protected]>
* apple: Initial import of libGL for OSX from AppleSGLX svn repository.Jeremy Huddleston2010-04-0170-38/+71587
| | | | Signed-off-by: Jeremy Huddleston <[email protected]>
* glx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.Vinson Lee2010-04-011-3/+22
| | | | | driContext field for __GLXcontextRec struct is only defined if GLX_DIRECT_RENDERING is set.
* st/mesa: use BITFIELD64_BIT to access shader OutputsWritten in more placesBen Skeggs2010-03-312-4/+4
|
* glx/dri2: Fix debug build with old dri2proto.Michel Dänzer2010-03-301-0/+13
| | | | | Apparently the higher compiler optimization level in non-debug builds was eliminating the unused functions referencing the unresolved DRI2 symbols...
* intel: Bump intel driver date to reflect status as 2010Q1 releaseIan Romanick2010-03-281-1/+1
|
* mesa: set version string to 7.8Ian Romanick2010-03-281-1/+1
| | | | Also set the correct release date.
* i965g: Add brw_winsys_debug.c to SCons build.Vinson Lee2010-03-271-0/+1
|
* identity: Add id_drm.c to SCons build.Vinson Lee2010-03-271-1/+2
| | | | | This was missed in commit f7cbaae13d67c55abe81ac230de37f564365099f. (cherry picked from commit 02ee7c29502966dffa44243bfc8c20c15907b880)
* mesa: move/update hash function commentsBrian Paul2010-03-271-6/+11
| | | | (cherry picked from commit 535742d75f0096b22d1b8ff203ae561167af18f7)
* mesa: fix deadlock in _mesa_HashFindFreeKeyBlock()Brian Paul2010-03-271-6/+13
| | | | | Fixes fd.o bug 27340. (cherry picked from commit 8fe3b3f66ae57a1a6eca7f6dcb0455e14ad92075)
* dri/swrast: Fix frontbuffer rendering.Michel Dänzer2010-03-261-6/+11
| | | | | Was broken since the endianness fixes. (cherry picked from commit 4cf14fa80bda5f4ea65bef3a64e748e064d0bde1)
* dri/swrast: Fix missed conversion of one pixel pointer increment.Michel Dänzer2010-03-261-1/+1
| | | | | This probably broke the swrast DRI driver when running X in depth 16. (cherry picked from commit 6ec259eb17dfbb74972b8cffb4e02a9dbab288cc)
* i965: Fix readpixels from ReadBuffer != DrawBuffer.Eric Anholt2010-03-251-8/+8
| | | | | Fixes piglit fbo-readdrawpix. (cherry picked from commit 5782b2a968bb979b651e49bb5fc4162faa842050)
* i965: Fix inversion for glCopyPixels to/from FBOs.Eric Anholt2010-03-254-13/+20
| | | | | fixes piglit fbo-copypix. (cherry picked from commit a589da14dee0c2a32e6e529f1a390b01a3ee4001)
* intel: Rely on allocated region pitch for the miptree pitch.Eric Anholt2010-03-254-25/+7
| | | | | Bug #26966: 945 miptree pitch disagreement with libdrm. (cherry picked from commit da011faf48155a5c02ebc1fe1fa20a4f54b8c657)
* intel: Remove extra tiling setting after allocating a tiled region.Eric Anholt2010-03-252-9/+3
| | | | (cherry picked from commit 32f143b4327521a058dc05f0ab9087a5696b9618)
* intel: Respect src pitch in _mesa_copy_rect().Eric Anholt2010-03-251-1/+1
| | | | | | If a non-zero src_y was used, this would break piglit depth-level-clamp. (cherry picked from commit e1e48ea15c1fe448f0b69e086b66c1123dc98bb7)
* glapi: return int = 0 from NoOpGeneric()Brian Paul2010-03-251-1/+2
| | | | | | If a GL function is called w/out a current rendering context, this stub gets called. It should return 0 so that non-void-valued functions return 0/NULL instead of a random number.
* glslcompiler: Fix build.Vinson Lee2010-03-251-6/+2
|
* r300: report correct state atom sizeMaciej Cencora2010-03-241-2/+2
| | | | Spotted by Pauli Nieminen
* r300: fix off by oneMaciej Cencora2010-03-241-1/+1
| | | | | | | | R300_PVS_MAX_CONST_ADDR field holds highest const addr, not const count. Fixes missing models and others rendering errors for vertex program using 256 params.
* r300: fix vertex programs with big number of params (>255) under KMSMaciej Cencora2010-03-242-7/+39
| | | | UMS will probably require some kernel work
* r300: fix wpos/fog handlingMaciej Cencora2010-03-241-6/+16
| | | | | | | | | | It may happen that the vertex attribute we were going to stuff the wpos/fog attrs in was already written by vertex program. In such cases we need to remove instruction accessing these attributes, so they don't overwrite the wpos/fog related instructions. This fixes non-textured models in many wine games.
* r300: clean fog_attr/wpos_attr if code accessing these attributes has been ↵Maciej Cencora2010-03-241-0/+13
| | | | removed FP during compilation
* i965: Stop abusing ctx->NewState flags for storing driver internal changes.Eric Anholt2010-03-231-3/+3
| | | | | | | | | | | We're still abusing the flags by putting them where our driver stores ctx->NewState changes. Making them into more restricted state change flags would be a project for later. Fixes a failure where calling intel_draw_buffer() too often would trip up Mesa assertions about when Mesa state could get changed, when it hadn't. Bug #27034.
* softpipe: comments, re-formatting, etcBrian Paul2010-03-231-14/+24
|
* softpipe: add special cases for all Z compare modes for 16-bit Z bufferBrian Paul2010-03-232-173/+195
| | | | | | | | We had fast paths for PIPE_FUNC_LESS and LEQUAL before. To satisfy OpenGL invariance rules, all depth compare modes should produce the same fragment Z values. Fixes progs/demos/singlebuffer.c