(Cherry picked from radeon commits 8fc9a241ab59ffbcdc178d6415332c88a54e85fe,
af1862a37570fa512a525ab47d72b30400d2e2d6,
aa7825eb29cdf6ac9d7b28ad18186807ff384687,
af6076241c0d322b295a4e898407ae2472bd8eb4 and
d64a13ebe0ecd241ee3260dbffd8f4a01e254183)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
(Cherry picked from radeon commits 76c2923ac5c7230a8b2f9f8329c308d28b44d9c0
and d7c82731a8bf3d381bc571b94d80d9bb2dd6e40d)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This is mostly in preparation for Present support, but it also simplifies
the DRI2 specific code a little.
(Cherry picked from radeon commit 6c3a721cde9317233072b573f9502348dcd21b16)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
In preparation for the next change, which will modify it to a static
function which needs to be in the new place. No functional change.
(Cherry picked from radeon commit c3fa22a479e61d1899fa9d327d9c4e2a7f64b0c1)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
That field is only used for page flipping.
(Cherry picked from radeon commit 65045112fdc8a9fa36e0e00f46739a6152b775ff)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Also use amdgpu_dri2_schedule_event when possible.
(Cherry picked from radeon commit ad27f16f308079d06a2b1c788b3cb0947531253a)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
(Cherry picked from radeon commits 7c3470f4b659206ed23f761948936ede3a2dba3d
and 4a98f60117c387a228d5cbaadb6e298fb4e865df)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
So we can rely on the list.h header.
xserver 1.8 was released in April 2010.
(Cherry picked from radeon commit 7388d0b6c54b9d536fdb161e3aa61b326627b939)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Fixes 'GBM_BO_USE_LINEAR' undeclared error when compiling against older
libgbm
Signed-off-by: Brian Paterni <bpaterni@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
When GBM is used for buffer allocation, gbm_bo_get_fd should be
used to get the DMA_BUF fd.
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
libdrm fails to initialize without acceleration, so this always returns true.
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This instructs Xorg >= 1.16 to try loading the amdgpu driver for devices
managed by the amdgpu kernel driver.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
The behaviour is the same as when the removed flags were passed in.
(cherry picked from radeon commit b16609b453bb1a181198cf27778f205dc23fb642)
Reviewed-by: Christian König <christian.koenig@amd.com>