summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2017-02-15VIGS: Implement plane flip/rotateStanislav Vorobiov1-1/+12
Planes can now be horizontally/vertically flipped and rotated by 90, 180 or 270 degrees Change-Id: I3db7dc3854add2b777e41aed54039a0d2323e0b1 Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com> Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
2017-02-15VIGS: Support DP memoryStanislav Vorobiov1-1/+42
DP memory is used by some of the tizen gstreamer plugins, TBM and X.Org video driver. Its main purpose is to share GEM buffers between media decoding and presentation layers Change-Id: Ie377119b46d6033355bf6ce00adc01e36096742a Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2017-02-15libdrm_vigs: Support plane z-pos settingStanislav Vorobiov1-1/+10
Change-Id: I2e1418425f1b4a17f49f19fabb8c4a2bdc84e5ef Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2017-02-15libdrm_vigs: Scanout flag added to surfacesStanislav Vorobiov1-1/+3
Change-Id: Ib6f96d2542c3df0b78f7ef1b610bcc3fa0b678d6 Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2017-02-15libdrm_vigs: Fence support addedStanislav Vorobiov1-6/+49
VIGS kernel driver now supports fences, so update libdrm to expose them to user space Change-Id: I9c07084a357c0a8dc87c049e01238f9049ca0828 Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
2017-02-15libdrm_vigs addedjinhyung.jo2-0/+181
Change-Id: Ie67c19bdb4a6f9e2190dbb4d3f825e878fca3635 Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com> Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
2017-01-27Import uapi/i915_drm.h from v4.10-rc5-950-g152d5750dda9Chris Wilson1-10/+266
To sync with "drm/i915: Support explicit fencing for execbuf"
2016-11-28vc4: Add new GETPARAMs that have been merged to drm-next.Eric Anholt1-0/+2
Signed-off-by: Eric Anholt <eric@anholt.net>
2016-11-22libdrm: random typo fixesGrazvydas Ignotas1-1/+1
Just some trivial boring typo fixes all over the tree. READMEs and comments only. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-11-14headers: Add README fileEmil Velikov1-0/+157
Since we're trying to standardise and make things more consistent in the area, add a basic README which covers some of the more popular topics. v2: - Drop drm-misc (Daniel Vetter) v3: - Elaborate on when and which headers to update - Add a list of headers and the respective "issues" - Add file to EXTRA_DIST Cc: Dave Airlie <airlied@redhat.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> (v1) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-10-13headers: Sync drm{,_mode}.h with the kernelMichel Dänzer2-3/+63
Generated using make headers_install, based on linus master commit b67be92feb486f800d80d72c67fd87b47b79b18e. Acked-by: Daniel Vetter <daniel@ffwll.ch>
2016-09-07intel: Export pooled EU and min no. of eus in a pool.Yang Rong1-0/+2
Update kernel interface with new I915_GETPARAM ioctl entries for pooled EU and min no. of eus in a pool. Add a wrapping function for each parameter. Userspace drivers need these values when decide the thread count. This kernel enabled pooled eu by default for BXT and for fused down 2x6 parts it is advised to turn it off. But there is another HW issue in these parts (fused down 2x6 parts) before C0 that requires Pooled EU to be enabled as a workaround. In this case the pool configuration changes depending upon which subslice is disabled and the no. of eus in a pool is different, So userspace need to know min no. of eus in a pool. V2: use return value as the query results. ret < 0 when error, ret = 0 when not support, and ret > 0 indicate query results.(Chris) V3: Correct V2 errors. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-09-05amdgpu: sync amdgpu_drm.h with the kernelMarek Olšák1-16/+26
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
2016-09-05radeon: sync radeon_drm.h with the kernelMarek Olšák1-9/+42
the CIK tile mode definitions are moved out, userspace doesn't use them Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
2016-09-02amdgpu: expose the AMDGPU_GEM_CREATE_VRAM_CLEARED flagFlora Cui1-0/+2
With this flag specified, VRAM buffer will be cleared at allocation time. Signed-off-by: Flora Cui <Flora.Cui@amd.com> Reviewed-by: Alexandre Demers <alexandre.f.demers@gmail.com>
2016-07-23virtgpu: Update kernel headerAndreas Boll1-51/+58
Generated using make headers_install. This brings the C++ guard, proper include path for drm.h and the switching to kernel types for fixed-with integers. Generated from drm-next commit c11dea5b0290984fa48111957ba3fdc5b3bdae5a Suggested-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-07-15vc4: Update kernel headers for getparam addition.Eric Anholt1-0/+21
This also brings over the C++ guard introduced recently in the kernel headers. Signed-off-by: Eric Anholt <eric@anholt.net>
2016-04-12headers: Update drm.hDaniel Vetter1-26/+41
This needs the kernel patch to make sure the C++ protection is in place. Otherwise just new defines, using the right fixed-width types and some shuffling in where stuff is defined (the DRM_CAP list moved, but the #defines are the same). Generated using make headers_install. Generated fromd drm-misc commit 249c4f538b1aae55d41699f8bafc6cb762a7f48f Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2016-04-12headers: Update drm_mode.hDaniel Vetter1-51/+119
Generated using make headers_install. Only cosmetics&new definitions here now. Generated fromd drm-misc commit 249c4f538b1aae55d41699f8bafc6cb762a7f48f Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2016-04-12headers: Update drm_fourcc.hDaniel Vetter1-4/+13
Only real difference is switching to kernel types for fixed-width integers, like we should. Generated fromd drm-misc commit 249c4f538b1aae55d41699f8bafc6cb762a7f48f Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2016-04-12headers: Update drm_sarea.hDaniel Vetter1-0/+2
Generated using make headers_install. Only difference is a new value of SAREA_MAX for mips. Not that we ever shipped a dri1 driver on that platform probably ... Generated fromd drm-misc commit 249c4f538b1aae55d41699f8bafc6cb762a7f48f Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2016-04-12headers: Update drm_i915.hDaniel Vetter1-8/+35
Generated using make header_install. Generated fromd drm-intel-next-queued commit 55c561a708eec328822721233b1148119e80f5c3 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2016-04-12headers: Remove _DRM_GEMDaniel Vetter1-1/+0
This was purely a kernel-internal type used in a early patch version to add GEM bo mmap support. It was never used in-kernel in merged code nor in userspace. Nuke it to align with kernel headers. For reference the kernel patch: commit 05f51722a154e73019434bd020e50ddb941046c5 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Wed Dec 11 11:34:32 2013 +0100 drm/bufs: remove handling of _DRM_GEM mappings Gone with the new gem vma offset manager from David. We can also ditch the uapi header definition from the enum since userspace never used this. It ended up in there purely for historical reasons (for reusing the old drm mmap code essentially), not because userspace ever needed it. Cc: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2016-04-07tegra: Sync with Linux kernel UAPI headerThierry Reding1-1/+2
Update the UAPI header to the latest version in the Linux kernel. This changes the struct drm_tegra_gem_mmap to properly handle offsets on 64- bit architectures. See commit bdf765071a8b ("drm/tegra: gem: Return 64-bit offset for mmap(2)") in the Linux kernel (as of v4.1). Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-02-24vmwgfx: update uapiThomas Hellstrom1-158/+634
The libdrm shipped vmwgfx_drm.h is obsolete and incorrect. Update it to latest kernel version. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2016-02-03vc4: Add the DRM header file.Eric Anholt1-0/+279
I'll build some libdrm C code soon, but for now this lets libdrm users use vc4 ioctls. Produced from headers_install of 1df59b8497f47495e873c23abd6d3d290c730505 (drm-next) in the kernel. Signed-off-by: Eric Anholt <eric@anholt.net>
2015-12-22nouveau: import and install a selection of nvif headers from the kernelBen Skeggs1-0/+1
This commit also modifies the install path of the main libdrm_nouveau header to be under a nouveau/ subdirectory. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-14intel: Update i915_drm.hKristian Høgsberg Kristensen1-10/+49
Copy from drm-intel-nightly a307a3a81c2bf2883457e03abcf5c9520cf452c1. Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
2015-11-05libdrm: Use userspace compatible type in fourcc_mod_code macroTvrtko Ursulin1-1/+1
__u64 should be used instead of u64. Kernel headers originally pulled in: commit 8983fe5497e89a3ffaba3ad1ee06a30a1c7e6daf Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Date: Mon Aug 3 10:48:03 2015 +0100 libdrm: Add framebuffer modifiers uapi Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: dri-devel@lists.freedesktop.org Cc: Rob Clark <robdclark@gmail.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Rob Clark <robclark@freedesktop.org>
2015-10-21drm: add virtgpu_drm.hDave Airlie1-0/+167
This is in drm-next now, so add to libdrm. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-09-09libdrm: Add framebuffer modifiers uapiTvrtko Ursulin3-1/+104
Sync up with new kernel features as per commits: e3eb3250d84ef97b766312345774367b6a310db8 93b81f5102a7cd270a305c2741b17c8d44bb0629 b5ff6e1637b683d5996ae11ac29afe406c0bee90 8c4f83fb1e8bf317e894f62d17a63c32b7a6b75e 570655b09b065d2fff1b8ab9bdb8308f4c5a05a3 Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: dri-devel@lists.freedesktop.org Cc: Rob Clark <robdclark@gmail.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Rob Clark <robclark@freedesktop.org>
2015-08-05libdrm/amdgpu: Fixed drm.h include.Alexandr Akulich1-1/+1
The include type changed from system to own. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alexandr Akulich <akulichalexander@gmail.com>
2015-08-05amdgpu: add VCE harvesting instance queryLeo Liu1-0/+2
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2015-08-05amdgpu: update to the latest kernel headerAlex Deucher1-44/+91
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2015-08-05amdgpu: cleanup VA IOCTL handlingChristian König1-16/+2
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-08-05amdgpu: merge amdgpu_drm.h from kernelJammy Zhou1-10/+7
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-08-05amdgpu: remove bo_handle from amdgpu_cs_ib_info, IBs should be in buffer listMarek Olšák1-5/+1
Reviewed-by: Christian König <christian.koenig@amd.com>
2015-08-05amdgpu: add ib_start_alignment and ib_size_alignment for interface queryKen Wang1-0/+4
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2015-08-05amdgpu: add ce_ram_size for interface queryKen Wang1-0/+2
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2015-08-05amdgpu: add vram_type and vram_bit_width for interface queryKen Wang1-0/+13
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2015-08-05amdgpu: add max_memory_clock for interface queryKen Wang1-0/+1
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2015-08-05amdgpu: rename GEM_OP_SET_INITIAL_DOMAIN -> GEM_OP_SET_PLACEMENTMarek Olšák1-2/+2
No users. Signed-off-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-08-05amdgpu: stop checking flag masksChristian König1-8/+0
The kernel is responsible for parameter checking, not libdrm. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Monk Liu <monk.liu@amd.com>
2015-08-05amdgpu: add new AMDGPU_TILING flagsMarek Olšák1-18/+22
Copied from the kernel. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2015-08-05amdgpu: implement amdgpu_cs_query_reset_stateMarek Olšák1-1/+10
v2: also return the number of hangs Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2015-08-05amdgpu: validate the upper limit of virtual address v2Jammy Zhou1-0/+2
Only 8GB virtual address space is used by default now v2: use -ENOSPC for the error case Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
2015-08-05amdgpu: reuse the kernel IB flags v2Jammy Zhou1-0/+3
v2: remove 'CE' from the preamble flag Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2015-08-05amdgpu: add ctx_id for wait_csJammy Zhou1-1/+1
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: David Zhou <david1.zhou@amd.com>
2015-08-05amdgpu: remove AMDGPU_GEM_CREATE_CPU_GTT_UCJammy Zhou1-5/+2
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-08-05drm: add libdrm_amdgpu (v7)Alex Deucher1-0/+590
This is the new ioctl wrapper used by the new admgpu driver. It's primarily used by xf86-video-amdgpu and mesa. v2: fix amdgpu_drm.h install v3: Integrate some of the sugestions from Emil: clean up Makefile.am, configure.ac capitalize header guards fix _FILE_OFFSET_BITS with config.h use drm_mmap/drm_munmap Remove unused ARRAY_SIZE macro use shared list implementation use shared math implementation use drmGetNodeTypeFromFd helper v4: remove unused tiling defines v5: include amdgpu.h in Makefile.am v6: update amdgpu_drm.h v7: libdrm.h -> libdrm_macros.h Signed-off-by: Alex Deucher <alexander.deucher@amd.com>