summaryrefslogtreecommitdiff
path: root/src/amdgpu_pixmap.h
AgeCommit message (Collapse)AuthorFilesLines
2016-09-14Add amdgpu_pixmap_get_tiling_infoMichel Dänzer1-0/+2
Retrieves the tiling information about a pixmap BO from the kernel driver. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Tested-by: Qiang Yu <qiang.yu@amd.com> (Cherry picked from commit 8e40f190e4704c2802bf0f073f17e742786d0f18)
2016-03-25Require xserver 1.9 or newerMichel Dänzer1-8/+0
1.9.0 was released in August 2010. We were already unintentionally relying on things not available in 1.8 for at least a year, and nobody has complained. (Ported from radeon commit e592f32f8b5f5873fcc18b10a69dd5e4ccf11073) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-27DRI2: Use amdgpu_pixmap_get_handleMichel Dänzer1-1/+1
Now we can share pixmaps with no struct amdgpu_buffer via DRI2. Fixes VDPAU video playback freezing when using an OpenGL compositor with DRI3 enabled and mpv VAAPI hardware decoding with OpenGL output. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89755 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93804 (ported from radeon commit f8b0f23e9f4af9f9097ee5e72d53b45173163c41) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-27glamor: Avoid generating GEM flink names for BOs shared via DRI3 (v2)Michel Dänzer1-0/+5
We can't create our own struct amdgpu_buffer representation in this case because destroying that would make the GEM handle inaccessible to glamor as well. So just get the handle directly via dma-buf. (ported from radeon commit 391900a670addec39515f924265bfa9f8bfa9ec0, extended to cache BO handles in the private for non-DRI3 pixmaps as well) v2: Swap whole pixmap privates instead of just BOs in amdgpu_dri2_exchange_buffers to avoid invalidating cached BO handles Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-11-19glamor: Restore all ScreenRec hooks during CloseScreenMichel Dänzer1-4/+0
(ported from radeon commit 535e5438b2c32f774b9c8c27ee0289b4749548ef) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-06-15glamor: Remove the stride member of struct radeon_pixmapMichel Dänzer1-1/+0
Its value was always the same as that of the PixmapRec devKind member. (Cherry picked from radeon commit ed401f5b4f07375db17ff05e294907ec95fc946d) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-06-15Add AMDGPU_CREATE_PIXMAP_GTT flagMichel Dänzer1-0/+1
When set, the pixmap memory is allocated in GTT instead of in VRAM. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-06-15glamor: Add wrappers for the X server rendering hooksMichel Dänzer1-0/+3
They can choose between using the GPU or CPU for the operation. (cherry picked from radeon commits eea79472a84672ee4dc7adc4487cec6a4037048a and e58fc380ccf2a581d28f041fd74b963626ca5404) Signed-off-by: Darren Powell <darren.powell@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-06-15Add RADEON_CREATE_PIXMAP_SCANOUT flagMichel Dänzer1-2/+3
It means that the pixmap is used for scanout exclusively. (cherry picked from radeon commit e96349ba6281fd18b8bf9c76629128276b065e6c) Signed-off-by: Darren Powell <darren.powell@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-04-20amdgpu: add the xf86-video-amdgpu driverAlex Deucher1-0/+110
This adds the new xf86-video-amdgpu driver for newer AMD GPUs. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>