summaryrefslogtreecommitdiff
path: root/va/x11/dri2_util.c
Commit message (Collapse)AuthorAgeFilesLines
* coverity: fix check_after_derefVictor Toso2017-11-161-2/+1
| | | | | | | | | - /va/x11/dri2_util.c: > libva-1.8.3/va/x11/dri2_util.c:218: check_after_deref: Null-checking > "device_name" suggests that it may be null, but it has already been > dereferenced on all paths leading to the check. Signed-off-by: Victor Toso <victortoso@redhat.com>
* Add namespace prefix to global DRI functions in libva-x11Mark Thompson2017-09-271-2/+2
| | | | Signed-off-by: Mark Thompson <sw@jkqxz.net>
* Avoid assertion fault when trying to draw a big pictureXiang, Haihao2017-06-061-1/+0
| | | | | | | | | | | The display server doesn't support the big picture, so the returned buffer is NULL. The fix returns a NULL buffer instead of assertion fault in libva-x11, the backend driver should handle this case in a right way as well. This fixes https://github.com/01org/libva/issues/51 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* va/x11: Require synchronisation to vblank with DRI2SwapBuffersChris Wilson2016-11-161-2/+3
| | | | | | | | | | | | | By passing divisor=0, we imply we do not care about synchronisation of this request to the vertical refresh - the spec says that if we miss the target frame, the swap will be presented as quickly as possible and may forgo waiting until the next vblank. By using divisor=1, we request that the swap be presented upon the vertical refresh immediately following recipe, enforcing the synchronisation to vblank and avoiding tearing. Reported-and-tested-by: Lukas Hejtmanek <xhejtman@ics.muni.cz> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* gcc suggests not putting ; at end of if statementsAlan Coopersmith2016-04-251-1/+1
| | | | | | | | | | | | dri2_util.c: In function 'dri2Close': dri2_util.c:171:33: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] if (dri_state->base.fd >= 0); ^ Introduced-by: commit fffeffb8a78fffbb6a May 30 2011 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
* va/x11: Don't crash the application if it does not have access to the DRI2 ↵Francois Gouget2015-09-291-1/+0
| | | | | | | | | | device. Applications run in a different account than the logged in user will not have permission to access /dev/dri/card0 but may be able to work without it, particularly if VA-API was brought in through a general framework such as GStreamer. Signed-off-by: Francois Gouget <fgouget@free.fr>
* va_x11: hide private symbolsEmil Velikov2014-10-081-1/+1
| | | | | | | | | | The following are not part of the API thus should be hidden. - dri2Close - VA_FGLRXGetClientDriverName - VA_NVCTRLQueryDirectRenderingCapable - VA_NVCTRLGetClientDriverName Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* API: backend: rename VADriverContext.dri_state to drm_state.Gwenole Beauchesne2012-09-261-2/+2
| | | | | | | VADriverContext.drm_state holds data structures derived from struct drm_state, thus also including struct dri_state for VA/X11 drivers. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
* API: introduce DRM common utilities and data structures.Benjamin Franzke2012-09-261-12/+12
| | | | | | | | Add <va/va_drmcommon.h> header for DRM-based drivers to use common base utilities and data structures. So far, only the DRM state is shared so that to maintain binary compatibility. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
* license header: add the missing license header to filesAustin Yuan2012-06-281-0/+23
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* VA/X11: drop useless casts.Gwenole Beauchesne2011-07-261-6/+6
|
* libva: fix memeory leaks in libvaEdgar Hucek2011-06-131-0/+3
| | | | | Signed-off-by: Edgar Hucek <gimli@dark-green.com> Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* libva: several changesAustin Yuan2011-05-301-3/+4
| | | | | | | | | 1) add free_drawable 2) clean the license of Android.mk 3) define VA_ROTATION_270 to 3 instead of 4 Signed-off-by: Zhaohan Ren <zhaohan.ren@intel.com> Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
* libva: render front buffer for Pixmap.Xiang, Haihao2010-07-071-1/+5
| | | | The way to get drawable type is proposed by Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
* Merge branch 'i965_h264'Xiang, Haihao2010-06-081-11/+19
|\ | | | | | | | | Conflicts: va/x11/dri2_util.c
| * libva: update DRI2 to support swapbufferXiang, Haihao2010-06-021-10/+18
| |
* | Display *x11_dpy ==> void *native_dpy for other window systemAustin Yuan2010-03-311-10/+10
|/ | | | Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
* Remove IN_LIBVA defines, Thanks for the patch from GwenoleAustin Yuan2010-03-081-0/+200
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>