summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_pipe.c
Commit message (Collapse)AuthorAgeFilesLines
* remove PIPE_BIND_TRANSFER_READ/WRITE for compatibility with mesa 12.1Mauro Rossi2016-09-101-5/+0
| | | | | | | | | | | This changes are the necessary complement to corresponding mesa commit 5981ab5 "gallium: remove PIPE_BIND_TRANSFER_READ/WRITE" Fixes the following building errors: external/drm_gralloc/gralloc_drm_pipe.c:102:11: error: use of undeclared identifier 'PIPE_BIND_TRANSFER_READ' ... external/drm_gralloc/gralloc_drm_pipe.c:104:11: error: use of undeclared identifier 'PIPE_BIND_TRANSFER_WRITE'
* android: fix gralloc_drm_pipe building error with mesa 12.1Mauro Rossi2016-08-271-2/+2
| | | | | | | | Fixes a building error introduced by commit 9daaa6f "gallium: add a pipe_context parameter to resource_get_handle" The new parameter was introduced for radeonsi future uses and can be optionally set to NULL for now
* Maintain a list of connector outputsWuZhen2016-06-271-2/+2
| | | | | | Refactor code to support multiple mirrored outputs following code. Change-Id: I60781d707ae68db2dbd2c4c4122b9183633a74be
* android: fix gralloc_drm_pipe building error with mesa 11.3Mauro Rossi2016-06-131-3/+3
| | | | | | | | Fixes a building error introduced by commit 82db518 "gallium: add external usage flags to resource_from(get)_handle (v2)" parameter usage is required as a combination of PIPE_HANDLE_USAGE_* flags, PIPE_HANDLE_USAGE_READ_WRITE was used as the most general case
* drm_gralloc: pipe: add error handling for NULL load_pipe_screenRob Herring2016-04-011-9/+13
| | | | | | | Check load_pipe_screen for NULL and return in case dlsym returns a NULL pointer. This can happen if the correct gallium driver is not enabled. Signed-off-by: Rob Herring <robh@kernel.org>
* gralloc_drm_pipe: ignore mode_quirk_vmwgfxChih-Wei Huang2016-03-181-8/+2
| | | | Probably we don't need this quirk anymore?
* Revert "Changed format constants to match what vmwgfx driver expects"Chih-Wei Huang2016-03-171-6/+4
| | | | This partially reverts commit dc21193e3252ba2d6526546ba1d0c02116baf3ee.
* pipe: use gallium loader functionRob Herring2016-03-171-167/+17
| | | | | | | Based on Rob Clark's work to avoid duplicating gallium driver loading code and statically linking each driver's pipe and winsys libraries. Signed-off-by: Rob Herring <robh@kernel.org>
* fix pipe building with upstreamRob Herring2016-03-171-2/+2
| | | | Signed-off-by: Rob Herring <robh@kernel.org>
* gralloc_drm_pipe: remove unnecessary headersChih-Wei Huang2015-06-191-2/+0
|
* Changed format constants to match what vmwgfx driver expectsPaulo Sergio Travaglia2015-04-191-4/+6
| | | | | | | | | | | | | When allocating a new buffer using pipe driver, pipe constants are used to define a format based on corresponding HAL_PIXEL_FORMAT However, vmwgfx driver expects other constants (SVGA3D_A8R8G8B8, SVGA3D_X8R8G8B8, SVGA3D_R5G6B5, etc) Changed the returning constants to match what driver expects. v2: [cwhuang] - Use the constants defined in svga3d_types.h. - Use C99 standard to avoid building errors with mesa 10.6.
* gralloc_drm_pipe: fix building errors with mesa 10.4Chih-Wei Huang2015-01-221-18/+8
|
* gralloc_drm_pipe: bail out as soon as the correct screen_create is calledEmil Velikov2015-01-221-1/+7
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* freedreno: completely untested initial supportRob Clark2015-01-161-0/+10
| | | | | | | | | v2: [Emil Velikov] - drmGetVersion returns the kernel module name. - Add it to the build :) - freedreno_map returns void * while gralloc::map expects int. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* get rid of HAL pixelformats 5551 and 4444Chih-Wei Huang2013-09-251-2/+0
|
* gralloc_drm: fix building errors with latest mesaChih-Wei Huang2013-04-111-17/+15
| | | | | Change-Id: Ifdf23b59542152c364d3ed010a4cc82bbf1a0103 Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
* gralloc: change copy api and fix copy function for intelTapani Pälli2013-03-011-14/+13
| | | | | | | | | | | | | | | | Patch extends current copy api, renames it blit and introduces src+dst coordinates to be able to implement partial blits and blits with offsets. Implementation must take care of hw specific restrictions with blits. Patch also fixes issues with the current intel_blit function. Current implementation does not select ring buffer and ends up queuing blit commands to the render ring. Patch starts to use drm_intel_bo_mrb_exec to be able to select blit ring and fixes the checks inside copy function. Change-Id: I05905e0b9c48fc2a55230212b676bfb8813a2b55 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: add NV12 format enum and fb allocation support for itTapani Pälli2012-12-141-0/+1
| | | | | Change-Id: If1c92810a17c60c29239f5384d6e971b015dd174 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* Change all occurances of LOGE to ALOGE, LOGW to ALOGW and LOGI to ALOGI due ↵Charles Johnson2012-07-101-8/+8
| | | | | | | | | | | | | | | | to change in Jelly Bean. Signed-off-by: Charles Johnson <charles.f.johnson@intel.com> modified: gralloc.c modified: gralloc_drm.c modified: gralloc_drm_intel.c modified: gralloc_drm_kms.c modified: gralloc_drm_nouveau.c modified: gralloc_drm_pipe.c modified: gralloc_drm_radeon.c Change-Id: Idd9e533eab366d9f9dc199d961891255a66384a2
* add support for YUV formatsChia-I Wu2011-10-271-0/+3
|
* vmwgfx: assorted fixesChia-I Wu2011-08-241-2/+15
| | | | | | | | | | | Based on trial and error, we know - drm_kms_wait_for_post() hangs the VM - drmModeDirtyFB() should be called whenever the front buffer changes - drmModePageFlip() is not supported They might not be entirely correct, but fixing them makes drm_gralloc work.
* add support for debug.drm.modeChia-I Wu2011-07-301-1/+9
| | | | The mode string is "<xres>x<yres>[@<bpp>]".
* support other drivers in pipeChia-I Wu2011-07-111-14/+141
| | | | Tested with r600g.
* let drivers decide the fb formatChia-I Wu2011-07-111-0/+1
|
* add (untested) copy support to pipeChia-I Wu2011-06-131-0/+54
| | | | This is why we love pipe.
* add (untested) pipe supportChia-I Wu2011-06-131-0/+361