summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/egl-static
Commit message (Collapse)AuthorAgeFilesLines
* r600g: add support for common surface allocator for tiling v13Jerome Glisse2012-02-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tiled surface have all kind of alignment constraint that needs to be met. Instead of having all this code duplicated btw ddx and mesa use common code in libdrm_radeon this also ensure that both ddx and mesa compute those alignment in the same way. v2 fix evergreen v3 fix compressed texture and workaround cube texture issue by disabling 2D array mode for cubemap (need to check if r7xx and newer are also affected by the issue) v4 fix texture array v5 fix evergreen and newer, split surface values computation from mipmap tree generation so that we can get them directly from the ddx v6 final fix to evergreen tile split value v7 fix mipmap offset to avoid to use random value, use color view depth view to address different layer as hardware is doing some magic rotation depending on the layer v8 fix COLOR_VIEW on r6xx for linear array mode, use COLOR_VIEW on evergreen, align bytes per pixel to a multiple of a dword v9 fix handling of stencil on evergreen, half fix for compressed texture v10 fix evergreen compressed texture proper support for stencil tile split. Fix stencil issue when array mode was clear by the kernel, always program stencil bo. On evergreen depth buffer bo need to be big enough to hold depth buffer + stencil buffer as even with stencil disabled things get written there. v11 rebase on top of mesa, fix pitch issue with 1d surface on evergreen, old ddx overestimate those. Fix linear case when pitch*height < 64. Fix r300g. v12 Fix linear case when pitch*height < 64 for old path, adapt to libdrm API change v13 add libdrm check Signed-off-by: Jerome Glisse <[email protected]>
* automake: src/egl/waylandBenjamin Franzke2012-01-261-1/+1
| | | | | | | So we can use the wayland scanner makro, which is way better than our previous runtime-pkgconfig hack. Reviewed-by: Matt Turner <[email protected]>
* Revert "Always build shared glapi"Matt Turner2012-01-241-0/+7
| | | | | | | | | | | This reverts commit adefee50d954151f76150af80207081ae3c247d9. Shared glapi was never tested with --enable-xlib-glx and turns out to cause a lot of problems. Conflicts: configure.ac
* gbm: install libgbm.so into libMatt Turner2012-01-241-1/+0
| | | | This partially reverts commit 90e256853418eaaba3717f930cc6a331e4099056.
* egl,gbm_gallium: Fix linkage against gbm from automakeBenjamin Franzke2012-01-241-0/+1
| | | | | | Add src/gbm/.libs to ldflags. The gbm lib is src/gbm/.libs/ instead of lib/ as of commit 06ad64ad29e7aa9e2d001f6bd1f8c1c1f77050b8.
* Always build shared glapiMatt Turner2012-01-201-7/+0
| | | | | | | | libglapi.so, libGL.so, libGLESv2.so, libGLESv1_CM.so must all come from the same version of Mesa or bad things may happen. Acked-by: Kenneth Graunke <[email protected]> Signed-off-by: Matt Turner <[email protected]>
* i965g: Delete this driver.Kai Wasserbäch2011-11-293-43/+1
| | | | | | | Never completed, and no plans to do so. Signed-off-by: Kai Wasserbäch <[email protected]> Signed-off-by: José Fonseca <[email protected]>
* r600g: move all files from winsys/r600 into drivers/r600Marek Olšák2011-09-302-3/+3
| | | | | | Be sure to reconfigure after this commit. Reviewed-by: Alex Deucher <[email protected]>
* st/egl: add support for null platformChia-I Wu2011-09-201-0/+3
| | | | | The backend calls null_sw_create() to create sw_winsys. And that is pretty much it...
* android: make DRM optionalChia-I Wu2011-08-272-4/+11
| | | | For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
* android: add support for nouveauChia-I Wu2011-08-271-0/+3
| | | | Compile tested only.
* android: add support for r300gChia-I Wu2011-08-271-0/+3
| | | | Compile tested only.
* android: add support for i915gChia-I Wu2011-08-271-0/+3
| | | | | | Quickly tested with 945GME. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB or RGBA visuals work. As for 3D apps, some work and some do not.
* android: add support for vmwgfxChia-I Wu2011-08-271-0/+3
| | | | | | | Quickly tested with VMWare Workstation 7.1.4 on Linux with GeForce GT220. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB visual works. However, due to missing PIPE_FORMAT_R8G8B8A8_UNORM support, those with RGBA visual do not.
* targets/egl-static: fix nouveau and vmwgfx for AndroidChia-I Wu2011-08-271-0/+10
| | | | | | | drmVersion and driver specific ioctls are used to get the PCI ID from a DRM fd. Eexpand the mechanism to nouveau and vmwgfx, except that for nouveau, only the vendor ID is needed, and for vmwgfx, always assume SVGA II.
* android: add support for r600gChia-I Wu2011-08-251-0/+4
| | | | | | | | Tested with a Radeon HD 6250. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB or RGBA visuals work. As for 3D apps, some work but some don't (with serious rendering defects). Reviewed-by: Marek Olšák <[email protected]>
* st/egl: improve error loggingChia-I Wu2011-08-211-1/+9
| | | | This helps diagnose problems in EGL initialization.
* android: build targets/egl-staticChia-I Wu2011-08-211-0/+52
| | | | | This builds the static library libmesa_egl_gallium from targets/egl-static.
* targets/egl-static: do not rely on libudev on AndroidChia-I Wu2011-08-211-0/+64
| | | | | | There is no libudev on Android. Use DRM to get the PCI ID directly. Reviewed-by: Benjamin Franzke <[email protected]>
* r600g: first step into winsys/radeonMarek Olšák2011-08-162-3/+5
| | | | Reviewed-by: Alex Deucher <[email protected]>
* targets/{egl,gbm}: omit unneeded libdrm_radeonChia-I Wu2011-07-291-2/+0
|
* egl/gallium: fix build without softpipe and llvmpipeTobias Droste2011-07-271-3/+9
| | | | | | Signed-off-by: Tobias Droste <[email protected]> Acked-by: Jakob Bornecrantz <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
* targets/egl-static: fix a linking errorChia-I Wu2011-07-131-1/+1
| | | | rbug is always linked in and it needs libpthread.
* scons: Expose pkg-config in a simpler manner.José Fonseca2011-06-301-10/+6
|
* target/egl-static: fix a compiler warningChia-I Wu2011-06-301-0/+3
|
* targets/egl-static: fix library search orderChia-I Wu2011-06-281-2/+2
| | | | | | | | | | | | Use $(MKLIB) -ldflags '-L$(TOP)/$(LIB_DIR)' instead of $(MKLIB) -L$(TOP)/$(LIB_DIR) to make sure the local library path appears before system's.
* targets/egl-static: fix building without libudevChia-I Wu2011-06-261-1/+2
| | | | Thanks to José for pointing out.
* targets/egl-static: refactor drm_fd_get_screen_nameChia-I Wu2011-06-261-28/+53
| | | | Add drm_fd_get_pci_id to get the PCI ID. Fix a leak with udev on error.
* targets/egl-static: do not use DRI_LIB_DEPSChia-I Wu2011-06-251-3/+3
| | | | It brings in libraries that are not necessarily needed.
* targets/egl-static: replace targets/eglChia-I Wu2011-06-241-0/+201
| | | | | Build egl_gallium from targets/egl-static intead of targets/egl. The latter exposes (unversioned) gallium interfaces and is frowned upon.
* targets/egl-static: allow st/mesa to be dynamically loadedChia-I Wu2011-06-244-19/+148
| | | | | | | | When shared glapi is not enabled, there are two glapi providers and we cannot decide which one to link to at build time. It results in unresolved symbols in st/mesa. This commit makes st/mesa a loadable module when shared glapi is not enabled, and hopes that the apps will link to one of the glapi providers (GL or GLES).
* targets/egl-static: add support for driver lookupChia-I Wu2011-06-241-0/+82
| | | | | Use pci id to driver map to look up the driver name. This is based on a433755ec5c48088a0d8a340851a1a8be9e58897.
* st/egl: drop guess_gl_api from egl_g3d_loaderChia-I Wu2011-06-241-7/+0
| | | | It is not used and confusing.
* r300g/winsys: rename r300->radeon and do a little cleanupMarek Olšák2011-04-181-2/+2
| | | | | Renaming a few files, types, and functions. Also make the winsys independent of r300g.
* r300g: import the last bits of libdrm and cleanup the whole thingMarek Olšák2011-02-111-1/+0
| | | | | | | | | | | | | | Based on Dave's branch. The majority of this commit is a cleanup, mainly renaming things. There wasn't much code to import, just ioctl calls. Also done: - implemented unsynchronized bo_map (important optimization!) - radeon_bo_is_referenced_by_cs is no longer a refcount hack - dropped the libdrm_radeon dependency I'm surprised that this has resulted in less code in the end.
* Remove talloc from the SCons build system.Kenneth Graunke2011-01-311-1/+1
|
* scons: Add support for GLES.Chia-I Wu2011-01-221-4/+12
| | | | | | | | | | | | | | | | | | GLES can be enabled by running scons with $ scons gles=yes When gles=yes is given, the build is changed in three ways. First, libmesa.a will be built with FEATURE_ES1 and FEATURE_ES2. This makes DRI drivers and libEGL support and advertise GLES support. Second, GLES libraries will be created. They are libGLESv1_CM, libGLESv2, and libglapi. Last, libGL or opengl32 will link to libglapi. This change is required as _glapi_* will be declared as __declspec(dllimport) in libmesa.a on windows. libmesa.a expects those symbols to be defined in another DLL. Due to this change to GL, GLES support is marked experimental. Note that GLES requires libxml2-python to generate some of its sources.
* targets/egl-static: Assorted cleanups and fixes.Chia-I Wu2011-01-151-12/+12
| | | | | | Share more code between windows and non-windows platforms. Check env['x11'] for X11 and add env['X11_LIBS'] to LIBS. Add ws_wrapper for i965g.
* targets/egl-static: Remove unnecessary header.Vinson Lee2011-01-131-1/+0
|
* scons: Ensure the OpenVG/EGL import libs are also prefixed with 'lib'.José Fonseca2011-01-131-0/+1
|
* scons: Build libOpenVG.dll & libEGL.dllJosé Fonseca2011-01-131-1/+4
| | | | | | But without creating liblibOpenVG or liblibEGL elsewhere. Thanks Chia-I Wu for pointing this out.
* scons: Update windows build for vgapi->openvg rename.José Fonseca2011-01-121-1/+1
|
* scons: Fix build on systems without libOpenVG.soJosé Fonseca2011-01-121-1/+2
|
* scons: Updates for targets/egl-static.Chia-I Wu2011-01-121-0/+122
| | | | | | | | Update SConscripts to re-enable or add support for EGL on windows and x11 platforms respectively. targets/egl-gdi is replaced by targets/egl-static, where "-static" means pipe drivers and state trackers are linked to statically by egl_gallium, and egl_gallium is a built-in driver of libEGL. There is no more egl_gallium.dll on Windows.
* targets/egl-static: New EGL target for scons.Chia-I Wu2011-01-125-0/+530
This target is based on and replaces egl-gdi. It is suitable for both windows and x11.