summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
Commit message (Collapse)AuthorAgeFilesLines
* 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]>
* r600g: merge radeon_bo with r600_boMarek Olšák2011-08-166-133/+32
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove radeon_bo::handleMarek Olšák2011-08-165-16/+3
| | | | | | This should be private to radeon_winsys. Reviewed-by: Alex Deucher <[email protected]>
* r600g: use buffer_map/unmap from radeon_winsysMarek Olšák2011-08-164-136/+10
| | | | | | This also drops the unneeded bo_busy/wait functions. Reviewed-by: Alex Deucher <[email protected]>
* r600g: set the flush callback in radeon_winsysMarek Olšák2011-08-164-17/+18
| | | | | | I have also renamed the winsys function. Reviewed-by: Alex Deucher <[email protected]>
* r600g: get tiling flags using radeon_winsysMarek Olšák2011-08-163-44/+9
| | | | | | Also remove some unused fence-related leftovers. Reviewed-by: Alex Deucher <[email protected]>
* r600g: get winsys_handle using radeon_winsysMarek Olšák2011-08-163-33/+1
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: move more DRM queries into winsys/radeonMarek Olšák2011-08-165-48/+24
| | | | Reviewed-by: Alex Deucher <[email protected]>
* winsys/radeon: consolidate the add_reloc functionMarek Olšák2011-08-163-38/+13
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: emit CS using radeon_winsysMarek Olšák2011-08-166-47/+18
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove struct r600_relocMarek Olšák2011-08-161-1/+1
| | | | | | That is really private to winsys/radeon. Reviewed-by: Alex Deucher <[email protected]>
* r600g: don't use RADEON_GEM_DOMAIN_CPUMarek Olšák2011-08-162-23/+21
| | | | | | | Also staging resources shouldn't be allocated with the initial domain being VRAM. Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove reloc-related variables from radeon_boMarek Olšák2011-08-163-44/+22
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: let radeon_winsys maintain the list of relocationsMarek Olšák2011-08-166-41/+57
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove now-unused r600_context::fenced_boMarek Olšák2011-08-162-8/+0
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove the fences which were used for the cache buffer managerMarek Olšák2011-08-164-145/+10
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove now-unused r600_bo::sizeMarek Olšák2011-08-162-3/+0
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove the cache buffer manager from winsys/r600Marek Olšák2011-08-166-223/+3
| | | | | | As we've just started using the one from winsys/radeon. Reviewed-by: Alex Deucher <[email protected]>
* r600g: allocate/destroy buffers using radeon_winsysMarek Olšák2011-08-166-83/+35
| | | | | | | We use the cache buffer manager from radeon_winsys now, but we don't use anything else yet. Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove unused function declarationsMarek Olšák2011-08-161-6/+0
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove unused r600_bo::tiling_flagsMarek Olšák2011-08-162-5/+5
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: remove unused r600_bo::kernel_pitchMarek Olšák2011-08-163-7/+3
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: put radeon_winsys in screen::winsys, don't include drm_driver in the pipeMarek Olšák2011-08-166-14/+20
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: cleanup includes in winsysMarek Olšák2011-08-168-69/+21
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: move some queries into winsys/radeonMarek Olšák2011-08-166-100/+51
| | | | Reviewed-by: Alex Deucher <[email protected]>
* r600g: first step into winsys/radeonMarek Olšák2011-08-166-50/+50
| | | | Reviewed-by: Alex Deucher <[email protected]>
* winsys/radeon: disable use of the buffer busy-for-write flagMarek Olšák2011-08-061-0/+12
|
* winsys/radeon: do the CS cleanup in the CS ioctl threadMarek Olšák2011-08-051-2/+4
|
* winsys/radeon: fix space checkingMarek Olšák2011-08-053-3/+35
| | | | | | | We should remove the relocations which caused a validation failure from the list, so that the kernel receives only the validated ones. NOTE: This is a candidate for the 7.11 branch.
* r600g: use backend mask for occlusion queriesVadim Girlin2011-08-034-4/+156
| | | | | | | | | | | | | Use backend_map kernel query if supported, otherwise analyze ZPASS_DONE results to get the mask. Fixes lockups with predicated rendering due to incorrect query buffer initialization on some cards. Note: this is a candidate for the 7.11 branch. Signed-off-by: Vadim Girlin <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* winsys/radeon: remove dummy function pb_bufferMarek Olšák2011-08-032-16/+7
|