summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
Commit message (Collapse)AuthorAgeFilesLines
* r600g: move all files from winsys/r600 into drivers/r600Marek Olšák2011-09-308-3294/+0
| | | | | | Be sure to reconfigure after this commit. Reviewed-by: Alex Deucher <[email protected]>
* winsys/radeon: move GEM domains out of the drivers into winsysMarek Olšák2011-09-305-46/+60
| | | | | | | | | | | | | | | The drivers don't need to care about the domains. All they need to set are the bind and usage flags. This simplifies the winsys too. This also fixes on r600g: - fbo-depth-GL_DEPTH_COMPONENT32F-copypixels - fbo-depth-GL_DEPTH_COMPONENT16-copypixels - fbo-depth-GL_DEPTH_COMPONENT24-copypixels - fbo-depth-GL_DEPTH_COMPONENT32-copypixels - fbo-depth-GL_DEPTH24_STENCIL8-copypixels I can't explain it. Reviewed-by: Alex Deucher <[email protected]>
* winsys/radeon: remove a redundant parameter 'size' from buffer_from_handleMarek Olšák2011-09-302-8/+3
| | | | | | It's part of pb_buffer already. Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove struct radeon (or what's left of it)Marek Olšák2011-09-305-72/+13
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: move family and chip_class from struct radeon to r600_screenMarek Olšák2011-09-304-55/+15
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: merge r600_bo with r600_resourceMarek Olšák2011-09-307-191/+64
| | | | | | | I have moved 'last_flush' and 'binding' from r600_bo to winsys/radeon. The other members are now part of r600_resource. Reviewed-by: Alex Deucher <[email protected]>
* winsys/svga: Update to vmwgfx kernel module 2.1Thomas Hellstrom2011-09-299-261/+665
| | | | | | | | | Introduces fence objecs and a size limit on query buffers. The possibility to map the fifo from user-space is gone, and replaced by an ioctl that reads the 3D capabilities. Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Jakob Bornecranz <[email protected]>
* winsys/radeon: remove redundant member radeon_bo::sizeMarek Olšák2011-09-293-8/+5
| | | | It's part of pb_buffer already.
* winsys/radeon: simplify updating GEM domains for relocationsMarek Olšák2011-09-291-10/+2
|
* winsys/radeon: simplify passing GEM domains through to GEM_CREATEMarek Olšák2011-09-292-25/+13
|
* r600g: convert if (query->type) into switch statementsMarek Olšák2011-09-291-26/+54
|
* winsys/radeon: use the cache bufmgr for buffers with PIPE_BIND_CUSTOMMarek Olšák2011-09-161-1/+1
| | | | so that we don't abuse PIPE_BIND_VERTEX_BUFFER all the time.
* r600g: Initialize multi VGT related register on Cayman.Michel Dänzer2011-09-141-0/+1
| | | | | | | | Prevents lockups with piglit tests draw-elements and draw-vertices using large numbers of vertices. Signed-off-by: Michel Dänzer <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
* r600g: fix typo in "r600g: simplify deducing chip family"Marek Olšák2011-09-131-1/+1
|
* r600g: set the return type of radeon_destroy to voidMarek Olšák2011-09-121-6/+3
|
* r600g: remove r600_drm_public.hMarek Olšák2011-09-122-34/+0
|
* r600g: inline some of the winsys r600_get functionsMarek Olšák2011-09-123-31/+6
|
* r600g: simplify deducing chip familyMarek Olšák2011-09-121-36/+8
|
* r600g: compute tiling info in the pipe, not in the winsysMarek Olšák2011-09-122-121/+0
| | | | The winsys doesn't need it.
* r600g: remove unused ioctl definitionsMarek Olšák2011-09-121-8/+0
|
* r600g: do not loop in radeon_family_from_deviceMarek Olšák2011-09-124-57/+11
| | | | Also move that function to r600_drm.c
* r600g: cleanup build include dirs and dependenciesMarek Olšák2011-09-123-6/+1
| | | | The scons build still depended on libdrm_radeon.
* pb_buffer: inline 'base' sub-structMarek Olšák2011-09-114-15/+15
|
* winsys/radeon: Create async thread only onceMaarten Lankhorst2011-08-302-21/+50
| | | | | | | | I noticed that a thread was created for every time async flush was called, so I moved it and used some semaphores to synch. Signed-off-by: Maarten Lankhorst <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Christian König <[email protected]>
* winsys/g3dvl: Fix include styleKai Wasserbäch2011-08-293-19/+19
| | | | | | | | | | | As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* android: add support for nouveauChia-I Wu2011-08-271-0/+41
| | | | Compile tested only.
* android: add support for i915gChia-I Wu2011-08-271-0/+41
| | | | | | 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/+44
| | | | | | | 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.
* winsys/i915: share the source listChia-I Wu2011-08-273-11/+8
| | | | | Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
* winsys/svga: share the source listChia-I Wu2011-08-273-21/+13
| | | | | Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
* android: add support for r600gChia-I Wu2011-08-252-0/+83
| | | | | | | | 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]>
* winsys/radeon: share the source listChia-I Wu2011-08-253-9/+7
| | | | | | | Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Reviewed-by: Marek Olšák <[email protected]>
* winsys/r600: share the source listChia-I Wu2011-08-253-13/+10
| | | | | | | Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Reviewed-by: Marek Olšák <[email protected]>
* winsys/svga: use os_mmap() for memory mappingChia-I Wu2011-08-241-5/+6
| | | | os_mmap() guarantees large file support across OSes.
* winsys/radeon: use os_mmap() for memory mappingChia-I Wu2011-08-241-3/+3
| | | | | | os_mmap() guarantees large file support across OSes. Reviewed-by: Marek Olšák <[email protected]>
* winsys/sw/android: use HAL formatsChia-I Wu2011-08-211-18/+9
| | | | Native buffers use HAL formats, not UI formats.
* winsys/sw/android: set bo usage correctlyChia-I Wu2011-08-211-10/+3
| | | | | | Since this is the software path, set GRALLOC_USAGE_SW_WRITE_OFTEN when PIPE_BIND_RENDER_TARGET, and set GRALLOC_USAGE_SW_READ_OFTEN when PIPE_BIND_SAMPLER_VIEW.
* android: build android sw winsysChia-I Wu2011-08-211-0/+34
| | | | This builds the static library libmesa_winsys_sw_android from winsys/sw.
* winsys/android: new SW winsys for AndroidChia-I Wu2011-08-212-0/+320
| | | | | | On Android, color buffers are passed between server and clients as opaque buffer_handle_t. This winsys makes use of gralloc, which provides a generic way to map and unmap buffer_handle_t for CPU access.
* r600g: implement NV_primitive_restart functionality (v2)Marek Olšák2011-08-181-0/+2
| | | | | | | | | Needed for GL3. v2: evergreen support I don't set PA_SU_SC_MODE_CNTL.MULTI_PRIM_IB_ENA. piglit/primitive-restart does pass though. Tested on RV730 and EG-REDWOOD.
* r600g: consolidate two files r600d.hMarek Olšák2011-08-161-2241/+0
|
* r600g: set read/write usage flags for each relocationMarek Olšák2011-08-163-24/+33
| | | | | | This takes advantage of the new GEM_WAIT ioctl when mapping buffers. Reviewed-by: Alex Deucher <[email protected]>
* winsys/radeon: take advantage of the new ioctlMarek Olšák2011-08-161-12/+28
| | | | Reviewed-by: Alex Deucher <[email protected]>
* winsys/radeon: hook up the new DRM_RADEON_GEM_WAIT ioctlMarek Olšák2011-08-162-20/+61
| | | | Reviewed-by: Alex Deucher <[email protected]>
* winsys/radeon: remove broken bo-is-busy-for-write guessingMarek Olšák2011-08-163-31/+0
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: enable thread offloadingMarek Olšák2011-08-163-11/+8
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: undefine RADEON_CTX_MAX_PM4Marek Olšák2011-08-162-6/+6
| | | | | | winsys/radeon has its own definition. Reviewed-by: Alex Deucher <[email protected]>
* r600g: don't include radeon_drm.h and xf86drm.hMarek Olšák2011-08-165-14/+6
| | | | Reviewed-by: Alex Deucher <[email protected]>
* winsys/radeon: remove the device file descriptor from the interfaceMarek Olšák2011-08-162-2/+0
| | | | | | r600g doesn't need it anymore. Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove an unused parameter from r600_bo_destroyMarek Olšák2011-08-163-19/+14
| | | | Reviewed-by: Alex Deucher <[email protected]>