summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-04-27apple: Change ifdefs for DRI to be DRI && !APPLEJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-27apple: Remove duplicate headers that already exist in mesa.Jeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2010-04-27apple: Initial import of libGL for OSX from AppleSGLX svn repository.Jeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-27glapi: Fix loading of old DRI drivers.Chia-I Wu
The removal of _glapi_noop_enable_warnings and _glapi_set_warning_func in e4f168a6f4911a096be97d2e83ef8ad9c5862ec0 prevents DRI drivers built before the commit from loading. Add stub versions of the functions to make them load again.
2010-04-27nv30/40g: fix calls to draw_create(), draw_set_rasterizer_state()Pedro Maia
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-23Fix __glXInitializeVisualConfigFromTags's handling of unrecognized fbconfig ↵Aaron Plattner
tags. __glXInitializeVisualConfigFromTags doesn't skip the payload of unrecognized tags. Instead, it treats the value as if it were the next tag, which can happen if the server's GLX extension is not Mesa's. For example, this falls down when NVIDIA sends a GLX_FLOAT_COMPONENTS_NV = 0 pair, causing __glXInitializeVisualConfigFromTags to bail out early. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-04-23r600: don't enable depth test if there is no depth bufferJerome Glisse
If there is no depth buffer bound to current context don't enable depth test. GL states that if depth test is enabled without depth buffer it's as if depth buffer always pass. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-04-23glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.Michel Dänzer
2010-04-22radeon: 9800 SE has only one quadpipeTormod Volden
Although these cards have 2 pipelines on the silicon only the first passed the QA and the other should be disabled. http://www.digital-daily.com/video/ati-radeon9800se/ http://www.rojakpot.com/showarticle.aspx?artno=101&pgno=1 Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2010-04-22st/mesa: add cases for MESA_FORMAT_Z24_X8, MESA_FORMAT_X8_Z24Brian Paul
2010-04-22mesa: fix conversion errors in signed_rgba8888[rev] texel fetchBrian Paul
Without the cast the returned texel colors were wrong. Also, we don't need the "& 0xff" part anymore. Bug found by Vinson Lee.
2010-04-22r300: fix vertex unit setupAlex Deucher
RV3xx is 2, RV560,RV570 is 8 Noticed by Tormod Volden.
2010-04-19egl: Pass flags to locate Xlib headers and librariesDan Nicholson
eglplatform.h pulls in Xlib.h on X11 platforms. Likewise, the egl glx driver and egl programs needs to link to libX11. Make sure we use the locations the user told us about. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2010-04-19Change libX11 variables to not conflict with AC_PATH_XTRADan Nicholson
The variable X_LIBS from AC_PATH_XTRA contains only the -L searchdir parameter and not the -lX11 to link to Xlib. Use X11 prefixed build vars for linking with Xlib to avoid the conflict. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com> (cherry picked from commit e725ef171b5a4d5425461f237d9ccab223806913)
2010-04-19gallium: Respect user's CFLAGS for including X headersDan Nicholson
This can break on systems that don't have a system X installation. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com> (cherry picked from commit de4ee20578a79e024b0de83c40648112f42c994e) Conflicts: src/gallium/winsys/xlib/Makefile
2010-04-19DRI2: check for swapAvailable before using swap interval protocolJesse Barnes
This should have been part of the last change...
2010-04-19DRI2: synchronize swap interval with server at startup timeJesse Barnes
In the direct rendered case, we need to tell the server our initial swap interval. If we don't, the local and server values will be out of sync, since the server and client defaults may be different (as they were before this patch).
2010-04-19st/mesa: invert scissor rect depending on FB orientationBrian Paul
Fixes fd.o bug 27715
2010-04-19mesa: Fix build with gcc 3.3.Matthieu Herrb
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-19radeon: Let this build with gcc 3.3Matthieu Herrb
Declaring the loop index inside for () is not supported by this version. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-19radeon: Fix command type for DRM_RADEON_IRQ_EMIT ioctl.Owain Ainsworth
This should be drmCommandWriteRead to avoid an EINVAL error on systems that strictly check ioctl args. This command has been r/w for ever. Discussion with airlied agreed that this was the correct course. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-19mesa: Use __OpenBSD__ to check for OpenBSD.Matthieu Herrb
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-19gallium/draw: use correct rasterization state for wide/AA points/linesBrian Paul
When points or lines are decomposed into triangles, we need to be sure to disable polygon culling, stippling, "un-filled" modes, etc. This patch sets the rasterization state to disable those things prior to drawing points/lines with triangles, then restores the previous state afterward. The new piglit point-no-line-cull test checks this problem & solution.
2010-04-16savage: call _mesa_meta_init/free()Tormod Volden
Fixes crash when using _mesa_CopyTexImage2D. Bug #27652. Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-14softpipe: Fix division by zeroArpad Borsos
This can be triggered by running the cairo tests using the gl backend and softpipe. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-14Initialize DRI2 swap interval to 0Michael Schmidt
https://bugs.freedesktop.org/show_bug.cgi?id=27628
2010-04-13DRI2: report swap events correctly in direct rendered caseJesse Barnes
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.
2010-04-11i915g: Fix assert.Vinson Lee
2010-04-11r300: respect radeon common code fallbacksMaciej Cencora
Fixes progs/demos/shadowtex under KMS
2010-04-11r300: set proper vertex index limits also in non indexed modeMaciej Cencora
Fixes #27521, broken menus in UT2004 and broken water refraction in Sauerbraten.
2010-04-09r600: add new r7xx pci idsAlex Deucher
2010-04-09glx: Fix config chooser logic for 'mask' matchingKristian Høgsberg
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 <ian.d.romanick@intel.com>
2010-04-09mesa: fix instruction indexing bugsBrian Paul
We were looping over instructions but only looking at the 0th instruction's opcode. Fixes fd.o bug 27566.
2010-04-08st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regressionBrian Paul
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
2010-04-08intel: Call intel_prepare_render() in intelClear()Li Peng
Make sure we have up to date buffers before we start looking at the tiling bits to determine how to clear.
2010-04-08texenvprogram: fix for ARB_draw_buffers.Dave Airlie
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 <airlied@redhat.com>
2010-04-05softpipe: index the correct blend/mask state indexBrian Paul
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
2010-04-05mesa: set version string to 7.8.1Ian Romanick
2010-04-05mesa: update_arrays() depends on program state.Henri Verbeet
It uses ctx->VertexProgram._Current. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-04Update to final names from GLX_INTEL_swap_event specIan Romanick
Fixes bug #27454.
2010-04-03util: Use GCC atomic bultins on GCC 4.1 and higher only.Vinson Lee
2010-04-02glx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.Vinson Lee
Add ifdef guards around variables of types defined only for GLX_DIRECT_RENDERING.
2010-04-02st/vega: Do not depend on libm.Chia-I Wu
This fixes the "no rule to make target -lm" error on darwin, reported by Jeremy Huddleston.
2010-04-01GLX/DRI2: pass GLX drawable ID to dri2InvalidateBuffersJesse Barnes
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.
2010-04-01Revert accidental commits from the xquartz treeJeremy Huddleston
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.
2010-04-01apple: Use mesa gl.h rather than generating one.Jeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2010-04-01apple: Integrate our libGL into the existing build system betterJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-01apple: Change ifdefs for DRI to be DRI && !APPLEJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-01apple: Remove duplicate headers that already exist in mesa.Jeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2010-04-01apple: Initial import of libGL for OSX from AppleSGLX svn repository.Jeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>