summaryrefslogtreecommitdiff
path: root/src/gallium
AgeCommit message (Collapse)Author
2010-03-24gallium: Move dri drivers to targetsJakob Bornecrantz
Attached output from git commit: rename src/gallium/{winsys/drm/Makefile.template => targets/Makefile.dri} (100%) rename src/gallium/{winsys/drm/intel/dri => targets/dri-i915}/Makefile (75%) rename src/gallium/{winsys/drm/intel/dri => targets/dri-i915}/SConscript (100%) rename src/gallium/{winsys/drm/i965/dri => targets/dri-i965}/Makefile (76%) rename src/gallium/{winsys/drm/i965/dri => targets/dri-i965}/SConscript (100%) rename src/gallium/{winsys/drm/nouveau/dri => targets/dri-nouveau}/Makefile (86%) rename src/gallium/{winsys/drm/radeon/dri => targets/dri-radeong}/Makefile (85%) rename src/gallium/{winsys/drm/radeon/dri => targets/dri-radeong}/SConscript (100%) rename src/gallium/{winsys/drm/vmware/dri => targets/dri-vmwgfx}/Makefile (85%) rename src/gallium/{winsys/drm/vmware/dri => targets/dri-vmwgfx}/SConscript (100%)
2010-03-24gallium: Remove GALLIUM_WINSYS_DRM_DIRSJakob Bornecrantz
2010-03-23st/glx: add support for multiple displaysBrian Paul
This is a quick & dirty solution, but it works. See comments in the code for other ideas. Fixes regressions/breakage seen in progs/xdemos/glxheads, etc. from commit 6632915e957149c153a3f793c400a532b4995b18.
2010-03-23dri: make unresolved symbol test link work even without a libGL.soLuca Barbieri
Currently the test link uses -lGL to define the glapi symbols. This makes it impossible to build DRI drivers on systems without Mesa installed and without building the libGL from the Mesa tree first. Some automated build systems trigger this problem. This commit removes -lGL and instead adds a dummy implementation of glapi to dri_test.c This, along with Kristian's commit, should fix all known regressions due to the addition of unresolved symbol checking.
2010-03-23Change 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>
2010-03-23dri: Add $(DRI_LIB_DEPS) when linking the test binaryKristian Høgsberg
This will make sure we pick up libdrm_$(chipset).so from the right place.
2010-03-23nvfx: add NOUVEAU_VTXIDX_IN_VRAM variable to put vertex/index buffers in VRAMLuca Barbieri
On some systems, putting vertex and index buffers in VRAM instead of GART memory eliminates massive graphics corruption which is otherwise present, due to unclear causes. This patch adds an environment variable that does that, along with helpful messages. It turns it on by default on G7x, as it is what I am seeing corruption on and some other reports also seemed to pinpoint these cards.
2010-03-23nvfx: delay allocation of buffers in GART/VRAM to validation timeLuca Barbieri
Currently we allocate buffers in GART or VRAM at creation time. However, when using swtnl, this results in reads from uncached memory, which drastically impair performance. So, for now, cause nouveau_screen.c to not pass any placement flags to buffer creation, so that the buffers are moved later. Previously libdrm itself did this, but was changed to not to do it. This may introduce an extra copy in normal usage, but this currently does not seem to introduce significant performance degradation. This will be revisited when pipebuffer is integrated. Note that for AGP systems, properly solving this may be complex since currently there is no fast way of reading from GART/VRAM. We will probably need to try mapping AGP as writethrough and, in addition, make buffer creation more aware of future buffer usage.
2010-03-23dri: use mv -f instead of mv to ensure no prompting occursLuca Barbieri
Using just mv may cause prompts on some systems/configurations.
2010-03-23Merge branch '7.8'Brian Paul
Conflicts: Makefile src/gallium/state_trackers/glx/xlib/xm_api.c src/mesa/drivers/dri/intel/intel_blit.c src/mesa/drivers/dri/intel/intel_pixel_copy.c src/mesa/main/version.h
2010-03-23softpipe: comments, re-formatting, etcBrian Paul
2010-03-23softpipe: add special cases for all Z compare modes for 16-bit Z bufferBrian Paul
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
2010-03-23st/glx: better format selection in xmesa_choose_z_stencil_format()Brian Paul
This is a back-port of commit ef2664da6c4db1b52ef351641e3ee949b87f9c7b from master.
2010-03-23nvfx: don't crash on empty fragment programLuca Barbieri
2010-03-23nvfx: fix coding style in nvfx_transfer.cLuca Barbieri
2010-03-23nvfx: stop incessantly spewing debug messages on the terminalLuca Barbieri
Currently we are continuously spewing messages about these variables since we call debug_get_bool_option everytime we want to check their value. This is annoying, slows things down due to terminal rerendering and obscures useful messages. This patch only calls debug_get_bool_option once and caches the result in a static variable.
2010-03-23nvfx: fix/workaround nv3x hwtnl issuesLuca Barbieri
This patch re-emits the viewport state on framebuffer or rasterizer change. This seems to be necessary on nv3x, but the reason is not fully understood. It is quite likely that this isn't really the correct fix, but seems to work, and makes nv3x much better.
2010-03-23dri: test whether the built drivers have unresolved symbolsLuca Barbieri
This is a different approach to solving this problem that the patch I previously posted, and unlike that, should not cause any problems. Right now undefined symbols in DRI drivers will still allow the build to succeed. As a result, people modifying drivers they cannot test risk creating unloadable drivers with no easy way of automatically avoiding it. For instance, the modifications to nv50 for context transfers caused such an issue recently. Unfortunately, just adding -Wl,--no-undefined doesn't work, because the DRI drivers depend on glapi symbols, but do not depend on libGL.so.1 Adding -lGL is not the correct solution since DRI drivers are not loaded just by libGL, but also by X and possibly by other clients. So, this patch simply tries to build an executable linked to the DRI driver and to libGL. If the DRI driver contains any undefined symbols not satisfied by its dependencies or by libGL, this will fail. This solution does not alter the built drivers, and does not significantly slow down the build process. All classic DRI drivers as well as all the Gallium drivers with configure options compiled successfully with this change. Thanks to Xavier Chantry <chantry.xavier@gmail.com> and Michel Daenzer <michel@daenzer.net> for helping with this. Signed-off-by: Luca Barbieri <luca@luca-barbieri.com> Acked-by: Brian Paul <brian.e.paul@gmail.com>
2010-03-23radeong: fix build issue with libdrm < 2.4.19Marek Olšák
2010-03-23r300g: fix glean occlusion query testDave Airlie
2010-03-22gallium/docs: Cleanup and clarify point ras info.Corbin Simpson
...This state's interdependent? Really? Needs moar cleanup.
2010-03-22radeong: Always initialize this variable.Corbin Simpson
May or may not be responsible for slight increases in ipers FPS.
2010-03-22r300g: Cleanup a few old warnings.Corbin Simpson
Those paths aren't important anymore, and a debugging warning won't stop a hardlock anyway.
2010-03-22st/glx: fix depth/stencil format selection codeBrian Paul
This fixes a pretty big performance regression caused by commit 3475e88442c16fb2b50b903fe246b3ebe49da226. When the user does not request a stencil buffer it's important that we don't use a depth/stencil format (or at least make it our last choice). If the user calls glClear(GL_DEPTH_BUFFER_BIT) when we have a combined depth/stencil buffer, that causes us to hit the clear_with_quad() path which can be much, much slower than calling pipe_context::clear(). Also, try to use a shallower depth format before a deeper one.
2010-03-22cso: Remove unnecessary header.Vinson Lee
2010-03-22nvfx: fix sampler views supportLuca Barbieri
The code was half converted, resulting in texturing being totally broken.
2010-03-22Merge branch '7.8'Brian Paul
Conflicts: src/gallium/drivers/cell/ppu/cell_screen.c src/mesa/state_tracker/st_cb_drawpixels.c
2010-03-21r300g: disable tiling for YUV formatsMarek Olšák
2010-03-21r300g: fix scons buildMarek Olšák
2010-03-21r300g: accelerate blitting for all 64-bit texture formatsMarek Olšák
2010-03-21r300g: add and enable square microtilingMarek Olšák
It requires DRM 2.1.0 (e.g. kernel 2.6.34) and is disabled on older ones. Finally, the texture tiling implementation is now complete. Uff.
2010-03-21r300g: cleanup tiling flags propagationMarek Olšák
2010-03-21r300g: put common defines into one fileMarek Olšák
2010-03-21r300g: remove unused codeMarek Olšák
2010-03-21Revert "drm/sw: does not need sw_winsys"George Sapountzis
This reverts commit 97a694e2211dc804090f282d8e096c028f29579f.
2010-03-21Revert "gallium: add soft screen helper"George Sapountzis
This reverts commit f87a5f6499f51f651c2a9f2d4682875b22926905.
2010-03-21Revert "drm/sw: just s/softpipe_create_screen/gallium_soft_create_screen/"George Sapountzis
This reverts commit 5d524cce9c4fcc18ed977801d59ba7bb911020db.
2010-03-21Revert "fix scons build"George Sapountzis
This reverts commit 29ec05164838f13d9535271796a50fa213d07912.
2010-03-21fix scons buildGeorge Sapountzis
2010-03-21Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/mesaGeorge Sapountzis
2010-03-21Revert "Makefile.template: respect LIBRARY_DEFINES in mkdep"George Sapountzis
This reverts commit 9ec29e31919e85f9230867f43841c0e74be930d3.
2010-03-21nv50: report driver as GLSL capableChristoph Bumiller
There's still no hint of optimization in the shaders, but we support conditionals, loops and even integer opcodes so it isn't that big a lie.
2010-03-21Merge branch 'master' of git://anongit.freedesktop.org/git/mesa/mesaGeorge Sapountzis
2010-03-21drm/sw: just s/softpipe_create_screen/gallium_soft_create_screen/George Sapountzis
This partially reverts commit f87a5f6499f51f651c2a9f2d4682875b22926905.
2010-03-21nv50: don't validate arrays on clearChristoph Bumiller
The vertex elements and buffers might not be valid anymore.
2010-03-21nv50: get rid of the static_init stateobjChristoph Bumiller
Relocations of per-screen buffers are now emitted directly, and include the necessary method to get changes in constbuf addresses committed to the hw. It should also be a bit cheaper than the way stateobjs emit relocation markers, use a little less pushbuf space.
2010-03-21gallium: add soft screen helperGeorge Sapountzis
2010-03-21dri1_api: need not include drm.hGeorge Sapountzis
2010-03-21drm/sw: does not need sw_winsysGeorge Sapountzis
2010-03-21drm/sw: llvmpipe texture_from_handleGeorge Sapountzis
Not sure, but judging by softpipe, this hook was forgotten.