summaryrefslogtreecommitdiff
path: root/src/radeon_glamor.h
AgeCommit message (Collapse)Author
2018-07-16glamor: Fix glamor_block_handler argument in radeon_glamor_finishMichel Dänzer
I missed this before because this code isn't compiled with current xserver. Trivial.
2018-07-09glamor: Use GBM for BO allocation when possibleMichel Dänzer
Inspired by amdgpu. This avoids various issues due to a GEM handle lifetime conflict between us and Mesa with current glamor. Bugzilla: https://bugs.freedesktop.org/105381 Tested-by: Konstantin Kharlamov <hi-angel@yandex.ru> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2017-08-30Require xserver >= 1.13Michel Dänzer
xserver 1.13.0 was released on September 6th, 2012, almost 5 years ago. This allows cleaning up a bunch of backwards compatibility code. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-09-14Move DRI2's local fixup_glamor helper to radeon_glamor_set_pixmap_boMichel Dänzer
So it can be used outside of the DRI2 code. (Ported from amdgpu commit 5518bf5d793439b5bab369e5fc18de9a4a3b9dd6) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-11-17glamor: Restore all ScreenRec hooks during CloseScreenMichel Dänzer
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-07-30glamor: Move declaration of struct radeon_pixmap out of #if/#else blocksMichel Dänzer
Reviewed-by: Dave Airlie <airlied@redhat.com>
2015-07-28radeon: move radeon_pixmap forward declaration into other blockDave Airlie
There is already a radeon_pixmap forward decl here, the #else block is missing one. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-04-03glamor: Add Option "ShadowPrimary" v2Michel Dänzer
When this option is enabled, most pixmaps (including the screen pixmap) are allocated in system RAM and mostly accessed by the CPU. Changed areas of the screen pixmap are copied to dedicated per-CRTC scanout pixmaps regularly, triggered by the vblank interrupt. v2: * Set region data pointer to NULL for keeping only the extents * Move pRegion and pBox local variable declarations closer to their uses in drmmode_set_mode_major()
2015-04-03glamor: Add wrappers for the X server rendering hooksMichel Dänzer
They can choose between using the GPU or CPU for the operation.
2015-04-03glamor: Add radeon_pixmap parameter to radeon_glamor_create_textured_pixmapMichel Dänzer
2015-04-03glamor: Remove unused function radeon_glamor_pixmap_is_offscreenMichel Dänzer
2015-03-30glamor: Handle GLAMOR_* flags removed from xserverMichel Dänzer
The behaviour is the same as when the removed flags were passed in. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-03-25glamor: Avoid generating GEM flink names for BOs shared via DRI3 v2Michel Dänzer
We can't create our own struct radeon_bo 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. v2: Close dma-buf file descriptor, pointed out by Axel Davy. Reviewed-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-03-18glamor: Add glamor_fd_from_pixmap define for standalone glamor treeMichel Dänzer
2015-03-17Fold radeon_glamor_flush into radeon_cs_flush_indirectMichel Dänzer
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-03-17Move #include "radeon_glamor.h" from radeon.h to where it's neededMichel Dänzer
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2013-10-01radeon: fix the non-glamor build harder...Alex Deucher
I need to stop pushing patches first thing in the morning. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2013-10-01drm/radeon: fix non-glamor buildAlex Deucher
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2013-09-30radeon: use glamor Xv support if present.Dave Airlie
This creates adaptors using glamor if possible. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2013-01-11Make radeon_glamor_create_textured_pixmap() return TRUE without USE_GLAMOR.Michel Dänzer
Otherwise rotation won't work when glamor support isn't built in. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-12-27glamor: Enable full 2D acceleration for SI as well.Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-07-10Initial SI support.Michel Dänzer
Defaults to shadowfb. 3D acceleration is available with glamor. 2D acceleration is disabled until the radeonsi driver can handle glamor's shaders. v2: add chip flags (Alex Deucher) Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2012-07-10Initial glamor support.Michel Dänzer
Enable at build time with --enable-glamor and runtime with Option "AccelMethod" "glamor" The most notable lack of functionality is XVideo. Use something like VDPAU for now. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>