summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
Commit message (Collapse)AuthorAgeFilesLines
* targets/egl: Fix crashes from loading invalid modules.Chia-I Wu2010-09-101-4/+1
| | | | Be defensive.
* gallium: Remove ST_API_OPENGL_ES1 and ST_API_OPENGL_ES2.Chia-I Wu2010-09-106-4/+50
| | | | They are no longer used.
* st/egl: Use profiles to create OpenGL ES contexts.Chia-I Wu2010-09-106-141/+66
| | | | | | | Replace all uses of ST_API_OPENGL_ES{1,2} by profiles. Having 3 st_api's to provide OpenGL, OpenGL ES 1.1, and OpenGL ES 2.0 is not a sane abstraction, since all of them share glapi for current context/dispatch management.
* libgl-xlib: Fix --enable-gallium-llvm build.Chia-I Wu2010-09-071-1/+9
| | | | Check MESA_LLVM and link to LLVM as other targets do.
* libgl-xlib: enable galahad supportBrian Paul2010-09-033-1/+18
| | | | | If the GALLIUM_GALAHAD env var is 1 we'll wrap the regular driver with the galahad validation driver.
* r600g: avoid dynamic allocation of statesJerome Glisse2010-09-011-2/+2
| | | | | | | | | | | Make state statically allocated, this kills a bunch of code and avoid intensive use of malloc/free. There is still a lot of useless duplicate function wrapping that can be kill. This doesn't improve yet performance, needs to avoid memcpy states in radeon_ctx_set_draw and to avoid rebuilding vs_resources, dsa, scissor, cb_cntl, ... states at each draw command. Signed-off-by: Jerome Glisse <[email protected]>
* graw: fix the build (missing header)Zack Rusin2010-08-271-0/+1
|
* graw: Undo late loading of graw drivers.José Fonseca2010-08-265-0/+209
| | | | | | | | | | Keith prefers a clean separation between graw applications and implementations, where apps do not link libgallium.a but instead get all functionality they need via graw interface. Although this is not incompatible with late loading of graw drivers, it it would make it very hard to maintain, as wrappers for every utility symbol exposed in graw would have to be written or generated somehow.
* graw: Remove graw-null.José Fonseca2010-08-263-158/+0
| | | | | Pointless now that the graw tests can be built independently of any graw implementation.
* graw: Dynamically load graw libraries.José Fonseca2010-08-262-50/+0
| | | | | | | | | This allows to build multiple graws libs simultaneously and avoid unnecessary rebuilds of the tests. Also remove graw_util.c from inside the graw implementation -- it was only being provided by one implementation, and graw tests were linking against gallium anyway.
* scons: Fix old script compatability logic.José Fonseca2010-08-261-10/+5
| | | | Sconscript could be invoked twice if specified in the command line.
* r300g: rename radeong_dri.so to r300_dri.soDave Airlie2010-08-253-4/+4
| | | | acked on irc by Corbin + Marek.
* make: Use C++ compiler to link stdc++ library.Brian Paul2010-08-241-1/+2
| | | | | glxinfo and glxgears run on swrast and softpipe without undefined symbol errors.
* targets/egl: Check against drm_driver_descriptor::name.Chia-I Wu2010-08-243-16/+15
| | | | | | drm_driver_descriptor::driver_name is defined to be the name of the kernel module. We should check against drm_driver_descriptor::name instead of drm_driver_descriptor::driver_name.
* targets/egl: add pipe_r600Benjamin Franzke2010-08-242-0/+40
| | | | | KNOWN ISSUE: eglShowScreenSurfaceMESA in st/egl/kms fails but st/egl/x11 works
* targets/egl: rename pipe_radeon to pipe_r300Benjamin Franzke2010-08-242-8/+8
| | | | | | | | | | | | | | st/egl/x11/x11_screen.c requests a driver named r300 not radeon KNOWN ISSUE: breaks st/egl/kms/ st/egl/kms requests a pipe named "radeon" that will not be found now so why not leaving pipe_radeon there? that was possible as long we have only r300g. now there is also r600g for which st/egl/kms also requests a pipe named "radeon" (possible solution in later commit)
* libgl-xlib: Include missing header in xlib.c.Vinson Lee2010-08-221-0/+1
| | | | Include st_api.h for st_api_create_OpenGL symbol.
* targets/egl-gdi: Implement guess_gl_api.Chia-I Wu2010-08-201-2/+37
| | | | It is needed to support calling eglGetProcAddress before eglInitialize.
* targets/egl: Link with DRI_LIB_DEPS.Chia-I Wu2010-08-171-3/+3
| | | | | Use DRI_LIB_DEPS when linking GL/GLES state trackers. This fixes missing talloc symbol errors, and is hopefully more future proof.
* Merge branch 'glsl2'Ian Romanick2010-08-163-8/+7
|\ | | | | | | | | Conflicts: src/mesa/program/prog_optimize.c
| * scons: Link talloc.José Fonseca2010-08-141-0/+1
| |
| * Merge branch 'master' into glsl2Ian Romanick2010-08-131-0/+1
| |\
| * | scons: Build the new glsl2 code.José Fonseca2010-08-131-0/+1
| | |
| * | gallium: Link DRI drivers with g++ and test with CXXJakob Bornecrantz2010-08-121-8/+5
| | | | | | | | | | | | | | | New shader compiler need libc++ runtime. This works already if we are using llvm so this just covers the !llvm case.
* | | r600g: drop libdrm_radeon linkDave Airlie2010-08-171-1/+1
| | |
* | | scons: Fix r600g build.Vinson Lee2010-08-141-1/+1
| | |
* | | targets/egl: Fix build by including missing headers.Vinson Lee2010-08-062-0/+2
| |/ |/|
* | Revert "r600g: don't use dynamic state allocation for states"Jerome Glisse2010-08-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 9c949d4a4dd43b7889e13bdf683bcf211f049ced. Conflicts: src/gallium/drivers/r600/r600_context.h src/gallium/drivers/r600/r600_draw.c src/gallium/drivers/r600/r600_shader.c src/gallium/drivers/r600/r600_state.c
* | r600g: don't use dynamic state allocation for statesJerome Glisse2010-08-051-2/+2
| | | | | | | | | | | | | | | | | | | | Simplify state handly by avoiding state allocation. Next step is to allocate once for all context packet buffer and then avoid rebuilding pm4 packet each time (through use of combined crc) this would also avoid number of memcpy. Signed-off-by: Jerome Glisse <[email protected]>
* | targets/egl: fix buildJoakim Sindholt2010-08-051-0/+1
|/
* i965g: Enable llvm in dri driver if builtJakob Bornecrantz2010-07-261-3/+8
|
* i915g: Fix llvm buildnobled2010-07-261-1/+1
| | | | Acked-by: Jakob Bornecrantz <[email protected]>
* gallium: Fix build with llvm installed in non-standard locationChristopher James Halse Rogers2010-07-231-1/+1
| | | | | | | | | | The es1, es2 and gl state trackers include draw_pipe.h, which includes the llvm headers if MESA_LLVM is true, so we also need to add the llvm seachpaths. Similarly, gallivm and other gallium drivers need LLVM_CFLAGS to build when enabled. Also fix xorg drivers, they didn't include LDFLAGS.
* xorg/vmwgfx: Implement early mode pruning based on max fb size.Thomas Hellstrom2010-07-232-4/+36
| | | | | | | | | Also move some initialization from screen init to pre-init, now that it is possible. Also import a new vmwgfx drm (1.3) header. Signed-off-by: Thomas Hellstrom <[email protected]>
* st/xorg vmwgfx/xorg: Add a pre-init customizer callbackThomas Hellstrom2010-07-231-3/+13
| | | | | | | | Add a customizer callback just before initial config setting, so that the customizer code can initialize the mode validator using the drm file-descriptor. Signed-off-by: Thomas Hellstrom <[email protected]>
* i915g: Allow wrapping with software pipesJakob Bornecrantz2010-07-222-3/+11
|
* st/egl: Fix build on FreeBSD.Chia-I Wu2010-07-161-1/+1
| | | | | | | There is no libdl on FreeBSD. Based on patch from Thinker <[email protected]>, which is against 7.8. This fixes fdo bug #29093.
* i965g: Fix scons build of dri driverJakob Bornecrantz2010-07-131-1/+0
|
* targets: Link xorg drivers with LLVM if builtJakob Bornecrantz2010-07-131-0/+8
|
* targets: Clean up xorg make files a bitJakob Bornecrantz2010-07-136-29/+31
|
* libgl-xlib: add depend to make clean listBrian Paul2010-07-131-1/+1
|
* mesa: Purge macros NEED_EVENTS and NEED_REPLIESFernando Carrijo2010-07-011-3/+0
| | | | | Signed-off-by: Fernando Carrijo <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* st/egl: Add egl-gdi target.Chia-I Wu2010-06-303-17/+165
| | | | | | | | | The target supports OpenVG on Windows with software rasterizer. The egl_g3d_loader defined by the target supports arbitrary client APIs and window systems. It is the SConscript that limits the support to OpenVG and GDI. This commit also fixes a typo in gdi backend.
* egl: Check for drm winsys not just the driver nameJakob Bornecrantz2010-06-291-5/+5
| | | | Also fix pipe_radeon.so not building
* i915g: Fix copy pastoJakob Bornecrantz2010-06-291-4/+4
|
* egl: Fix gallium build when EGL is not installed on systemJakob Bornecrantz2010-06-291-1/+2
|
* i915g: Add missing egl pipe fileJakob Bornecrantz2010-06-291-0/+28
|
* st/egl: Build a single EGL driver.Chia-I Wu2010-06-298-63/+205
| | | | | | | | | | | | This change makes st/egl build a single egl_gallium.so and multiple st_<API>.so and pipe_<HW>.so. When a display is initialized, the corresponding pipe driver will be loaded. When a context is created, the corresponding state tracker will be loaded. Unlike DRI drivers, no ABI compatibility is maintained. egl_gallium, pipe drivers and state trackers should always be distributed as a single package. As such, there is only a single src/gallium/targets/egl/ that builds everything for the package.
* st/egl: Move module loading code to targets.Chia-I Wu2010-06-298-35/+343
| | | | | | | | | | Several changes are made. libegl.a no longer defines _eglMain. It defines functions to create and destroy a _EGLDriver instead. The creation function is called by the targets. It takes an egl_g3d_loader as its argument. The loader is defined by the targets and is in charge of creating st_api and pipe_screen. This allows us to move the module loading code to targets. Lastly, the modules are now loaded as the respective contexts are created.
* st/egl: Reorganize targets.Chia-I Wu2010-06-2921-340/+225
| | | | | | | Merge all targets into targets/egl/. The target produces egl_gallium_<HW>.so for each pipe driver and st_<API>.so for each client APIs. This enables us to further merge egl_gallium_<HW>.so into egl_gallium.so later.