[PATCH] present: Remove get_drmmode_crtc helper

2015-05-21 Thread Michel Dänzer
From: Michel Dänzer It was getting the drmmode_crtc_private_ptr in a roundabout way. Signed-off-by: Michel Dänzer --- src/radeon_present.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/radeon_present.c b/src/radeon_present.c index 53819e0

Re: date on 3.14.17 radeon driver

2015-05-25 Thread Michel Dänzer
kernel module was 20080523. > > That makes me wonder if I’ve done something wrong in the compile > process or if the date is just not updated and I shouldn’t worry > about it? It's the latter. -- Earthling Michel Dänzer | http://ww

[PATCH] glamor: Only wait for GPU writes in radeon_glamor_prepare_access_cpu_ro

2015-05-27 Thread Michel Dänzer
From: Michel Dänzer We don't need to wait for GPU reads to finish before reading with the CPU. Signed-off-by: Michel Dänzer --- src/radeon_glamor_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/radeon_glamor_wrappers.c b/src/radeon_glamor_wrappers.c

Re: Large spikes in latencies

2015-05-28 Thread Michel Dänzer
narrow down when the problem was introduced in the kernel, ideally with git bisect? Assuming DPM is enabled, have you tried disabling that with radeon.dpm=0 on the kernel command line? Please attach the dmesg output pertaining to drm/radeon. -- Earthling Michel Dänzer |

Re: [PATCH xf86-video-amdgpu] Check GBM_BO_USE_LINEAR correctly

2015-05-28 Thread Michel Dänzer
t;]) > fi > > +AC_CHECK_HEADERS([gbm.h], > + [have_gbm_h="yes"], [have_gbm_h="no"], > + [#include ]) > + > +if test "x$have_gbm_h" = xyes; then Please remove these checks, we require GBM with PKG_

[PATCH] DRI2: Fix handling of drmmode_crtc_get_ust_msc return code

2015-06-01 Thread Michel Dänzer
From: Michel Dänzer Fixes regression introduced in commit 76c2923ac5c7230a8b2f9f8329c308d28b44d9c0 ("DRI2: Split out helper for getting UST and MSC of a specific CRTC"). Signed-off-by: Michel Dänzer --- src/radeon_dri2.c | 8 1 file changed, 4 insertions(+), 4 deletion

[PATCH xf86-video-amdgpu 01/13] Require at least xserver 1.8

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer So we can rely on the list.h header. xserver 1.8 was released in April 2010. (Cherry picked from radeon commit 7388d0b6c54b9d536fdb161e3aa61b326627b939) Signed-off-by: Michel Dänzer --- configure.ac | 19 ++- src/amdgpu_dri2.c | 16

[PATCH xf86-video-amdgpu 11/13] glamor: Add radeon_pixmap parameter to radeon_glamor_create_textured_pixmap

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer (cherry picked from radeon commit 051d46382656ffc3e6cac1aab3aee7efdf5b623a) Reviewed-by: Michel Dänzer Signed-off-by: Darren Powell Signed-off-by: Michel Dänzer --- src/amdgpu_glamor.c | 20 +++- src/amdgpu_glamor.h | 5 - src/drmmode_display.c

[PATCH xf86-video-amdgpu 09/13] Add support for SYNC extension fences

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer (Cherry picked from radeon commits 8fc9a241ab59ffbcdc178d6415332c88a54e85fe, af1862a37570fa512a525ab47d72b30400d2e2d6, aa7825eb29cdf6ac9d7b28ad18186807ff384687, af6076241c0d322b295a4e898407ae2472bd8eb4 and d64a13ebe0ecd241ee3260dbffd8f4a01e254183) Signed-off-by: Michel

[PATCH xf86-video-amdgpu 04/13] DRI2: Simplify blit fallback handling for scheduled swaps

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer Also use amdgpu_dri2_schedule_event when possible. (Cherry picked from radeon commit ad27f16f308079d06a2b1c788b3cb0947531253a) Signed-off-by: Michel Dänzer --- src/amdgpu_dri2.c | 48 1 file changed, 20 insertions(+), 28

[PATCH xf86-video-amdgpu 10/13] Add support for the Present extension

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer (Cherry picked from radeon commits 3c65fb849e1ba9fb6454bcaa55b696548902f3fc, 694e04720b886060fe3eefdce59741f218c8269f, e3be8b0a8cf484ff16597413a6172788178e80c8, 80eede245d1eda27eaba108b0761a24bfd69aff6 and 5f82a720374c9c1caebb42bfbeea1f0cf8847d28) Signed-off-by: Michel

[PATCH xf86-video-amdgpu 08/13] DRI2: Split out helper for getting UST and MSC of a specific CRTC

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer (Cherry picked from radeon commits 76c2923ac5c7230a8b2f9f8329c308d28b44d9c0 and d7c82731a8bf3d381bc571b94d80d9bb2dd6e40d) Signed-off-by: Michel Dänzer --- src/amdgpu_dri2.c | 34 +++--- src/drmmode_display.c | 27

[PATCH xf86-video-amdgpu 03/13] Add DRM event queue helpers

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer (Cherry picked from radeon commit b4af8a327ed8420f0ff4ea0f113f4a59406ed4d3) Signed-off-by: Michel Dänzer --- src/Makefile.am| 4 +- src/amdgpu_drm_queue.c | 181 + src/amdgpu_drm_queue.h | 56 +++ src

[PATCH xf86-video-amdgpu 13/13] Add DRI3 support

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer Must be enabled with Option "DRI3" in xorg.conf. (Cherry picked from radeon commits 64e1e4dbdd3caee6f5d8f6b6c094b4533fa94953, 694e04720b886060fe3eefdce59741f218c8269f, f940fd741b15f03393037c5bb904cd74f012de9d, fcd37f65f485291084c174666bd605

[PATCH xf86-video-amdgpu 02/13] Move xorg_list backwards compatibility to new amdgpu_list.h header

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer (Cherry picked from radeon commits 7c3470f4b659206ed23f761948936ede3a2dba3d and 4a98f60117c387a228d5cbaadb6e298fb4e865df) Signed-off-by: Michel Dänzer --- src/Makefile.am | 1 + src/amdgpu_dri2.c | 9 + src/amdgpu_list.h | 39

[PATCH xf86-video-amdgpu 12/13] amdgpu_set_shared_pixmap_backing: Add support for GBM / glamor

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/amdgpu_bo_helper.c | 101 ++--- 1 file changed, 78 insertions(+), 23 deletions(-) diff --git a/src/amdgpu_bo_helper.c b/src/amdgpu_bo_helper.c index 0487b46..08e4048 100644 --- a/src

[PATCH xf86-video-amdgpu 06/13] DRI2: Move amdgpu_dri2_flip_event_handler

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer 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) Signed-off-by: Michel Dänzer --- src/amdgpu_dri2.c | 120

[PATCH xf86-video-amdgpu 0/13] DRI3/Present support ported from radeon

2015-06-02 Thread Michel Dänzer
This series ports the changes for DRI3/Present support from the radeon driver, with some followup fixes squashed in. Patch 11 was ported by Darren Powell, so I added my review tag. [PATCH xf86-video-amdgpu 01/13] Require at least xserver 1.8 [PATCH xf86-video-amdgpu 02/13] Move xorg_list backward

[PATCH xf86-video-amdgpu 05/13] DRI2: Remove superfluous assignments to *_info->frame

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer That field is only used for page flipping. (Cherry picked from radeon commit 65045112fdc8a9fa36e0e00f46739a6152b775ff) Signed-off-by: Michel Dänzer --- src/amdgpu_dri2.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c index

[PATCH xf86-video-amdgpu 07/13] DRI2: Use helper functions for DRM event queue management

2015-06-02 Thread Michel Dänzer
From: Michel Dänzer This is mostly in preparation for Present support, but it also simplifies the DRI2 specific code a little. (Cherry picked from radeon commit 6c3a721cde9317233072b573f9502348dcd21b16) Signed-off-by: Michel Dänzer --- src/amdgpu_dri2.c | 271

Re: [PATCH xf86-video-amdgpu 06/13] DRI2: Move amdgpu_dri2_flip_event_handler

2015-06-07 Thread Michel Dänzer
On 04.06.2015 00:11, Reverend Homer wrote: > On 02.06.2015 12:21, Michel Dänzer wrote: >> From: Michel Dänzer >> >> 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. >> >

Re: [PATCH xf86-video-amdgpu] Check GBM flag for textured pixmap creation

2015-06-07 Thread Michel Dänzer
priv->stride)) { > return TRUE; > } else { > How can AMDGPU_BO_FLAGS_GBM not be set when using glamor? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

Re: [PATCH xf86-video-amdgpu] Check GBM flag for textured pixmap creation

2015-06-07 Thread Michel Dänzer
clock is set incorrectly (in the future) on the system where you generated the patch. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-driver-ati maili

Re: [PATCH 2/2] Allow/Fix use of multiple ZaphodHead outputs per x-screen.

2015-06-08 Thread Michel Dänzer
> +/* Reset settings which must not persist across server regeneration > */ > +if (pRADEONEnt->reinitGeneration != serverGeneration) { > +pRADEONEnt->reinitGeneration = serverGeneration; > +/* Clear mask of assigned crtc's

[PATCH xf86-video-amdgpu 01/11] Rename scanout_pixmap_x field to prime_pixmap_x

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer To avoid confusion with upcoming changes. (cherry picked from radeon commit c32b0530302739f6512755bccf281c2300617376) Signed-off-by: Darren Powell Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 6 +++--- src/drmmode_display.h | 2 +- 2 files changed, 4

[PATCH xf86-video-amdgpu 06/11] Set AMDGPU_BO_FLAGS_GBM for cursor buffers allocated from GBM

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/amdgpu_kms.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c index 1e256af..cfdf716 100644 --- a/src/amdgpu_kms.c +++ b/src/amdgpu_kms.c @@ -1037,6 +1037,7 @@ static Bool amdgpu_setup_kernel_mem

[PATCH xf86-video-amdgpu 10/11] glamor: Remove the stride member of struct radeon_pixmap

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer Its value was always the same as that of the PixmapRec devKind member. (Cherry picked from radeon commit ed401f5b4f07375db17ff05e294907ec95fc946d) Signed-off-by: Michel Dänzer --- src/amdgpu_dri2.c | 5 +++-- src/amdgpu_glamor.c | 13 + src/amdgpu_pixmap.c

[PATCH xf86-video-amdgpu 11/11] Add Option "TearFree"

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer Avoids tearing by flipping between two scanout BOs per (non-rotated) CRTC (Cherry picked from radeon commit 43159ef400c3b18b9f4d3e6fa1c4aef2d60d38fe) Signed-off-by: Michel Dänzer --- src/amdgpu_drv.h | 2 + src/amdgpu_kms.c | 138

[PATCH xf86-video-amdgpu 03/11] Add RADEON_CREATE_PIXMAP_SCANOUT flag

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer It means that the pixmap is used for scanout exclusively. (cherry picked from radeon commit e96349ba6281fd18b8bf9c76629128276b065e6c) Signed-off-by: Darren Powell Signed-off-by: Michel Dänzer --- src/amdgpu_pixmap.h | 5 +++-- src/drmmode_display.c | 3 ++- 2 files

[PATCH xf86-video-amdgpu 04/11] glamor: Remove unused function radeon_glamor_pixmap_is_offscreen

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer (cherry picked from radeon commit 2fa021f77372ca93375a3d13a0c43a9089674899) Signed-off-by: Darren Powell Signed-off-by: Michel Dänzer --- src/amdgpu_glamor.c | 6 -- src/amdgpu_glamor.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/amdgpu_glamor.c b/src

[PATCH xf86-video-amdgpu 02/11] Split out struct drmmode_scanout for rotation shadow buffer information

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer Will be used for other kinds of dedicated scanout buffers as well. (cherry picked from radeon commit 9be7dd382e86d2b804de81d4e2af7431b2e16843) Signed-off-by: Darren Powell Signed-off-by: Michel Dänzer --- src/amdgpu_present.c | 2 +- src/drmmode_display.c | 159

[PATCH xf86-video-amdgpu 05/11] glamor: Add wrappers for the X server rendering hooks

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer 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 Signed-off-by: Michel Dänzer --- src/Makefile.am

[PATCH xf86-video-amdgpu 00/11] ShadowPrimary & TearFree support

2015-06-10 Thread Michel Dänzer
This series adds support for options "ShadowPrimary" and "TearFree", corresponding to the same options in the radeon driver. Most of the changes are ports from the radeon driver, large parts of which was done by Darren Powell. [PATCH xf86-video-amdgpu 01/11] Rename scanout_pixmap_x field to [PATCH

[PATCH xf86-video-amdgpu 07/11] Factor out amdgpu_bo_get_handle helper

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer The helper transparently handles BOs allocated from GBM and libdrm_amdgpu. Signed-off-by: Michel Dänzer --- src/amdgpu_bo_helper.c | 11 +++ src/amdgpu_bo_helper.h | 2 ++ src/amdgpu_glamor.c| 18 ++ src/drmmode_display.c | 32

[PATCH xf86-video-amdgpu 08/11] Add AMDGPU_CREATE_PIXMAP_GTT flag

2015-06-10 Thread Michel Dänzer
From: Michel Dänzer When set, the pixmap memory is allocated in GTT instead of in VRAM. Signed-off-by: Michel Dänzer --- src/amdgpu_bo_helper.c | 6 -- src/amdgpu_pixmap.h| 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/amdgpu_bo_helper.c b/src

[PATCH xf86-video-amdgpu 09/11] glamor: Add Option "ShadowPrimary"

2015-06-10 Thread Michel Dänzer
From: Michel 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. (Cherry

Re: [PATCH] Allow/Fix use of multiple ZaphodHead outputs per x-screen. (v2)

2015-06-10 Thread Michel Dänzer
warning message on crtc allocation > failure. Move clearing of per gpu assigned_crtc mask to > CloseScreen, indeed testing shows no need for the more > complex new server generation check from v1. > > Signed-off-by: Mario Kleiner > (v1) Reviewed-by: Ale

[PATCH] Don't attempt a DRI2/Present page flip while the other one is flipping

2015-06-11 Thread Michel Dänzer
From: Michel Dänzer Fixes corrupted display and hangs when switching between DRI2 and DRI3 fullscreen apps, e.g. a compositor using DRI3 and a fullscreen app using DRI2 or vice versa. Signed-off-by: Michel Dänzer --- src/drmmode_display.h | 3 +++ src/radeon_dri2.c | 23

[PATCH xf86-video-amdgpu] Handle CRTC DPMS from output DPMS hooks

2015-06-15 Thread Michel Dänzer
From: Michel Dänzer This fixes at least two issues: The CRTC DPMS hook isn't called after a modeset, so the vertical blank interrupt emulation code considered the CRTC disabled after a modeset. As a side effect, page flipping was no longer used after a modeset. This change also makes sur

[PATCH] Skip disabled CRTCs in radeon_scanout_(do_)update

2015-06-16 Thread Michel Dänzer
From: Michel Dänzer The vblank / page flip ioctls don't work as expected for a disabled CRTC. Signed-off-by: Michel Dänzer --- src/radeon_kms.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 25a746d..ba95653 100644 ---

Re: No Device Node and .ko files for xf86-video-ati

2015-06-17 Thread Michel Dänzer
sets these up. The xf86-video-ati radeon driver is a userspace driver for Xorg. It depends on the kernel radeon driver (and the corresponding /dev/dri/card* device node) having been set up correctly. Please provide the output of dmesg. -- Earthling Michel Dänzer |

Re: No Device Node and .ko files for xf86-video-ati

2015-06-18 Thread Michel Dänzer
NFIG_FRAMEBUFFER_CONSOLE). > but it seems my embedded OS is missing a lot of .ko's not just the > radeon.ko. That's the problem you need to solve, and I'm afraid we can't help you with that here. Good luck. -- Earthling Michel Dänzer

Re: [PATCH] Don't set TILE_SPLIT flags if surface.tile_split == 0.

2015-06-21 Thread Michel Dänzer
ge flipping > for pixmap presents. > > Change the ddx code to treat surface.tile_split==0 the > same way as the radeon gallium driver to avoid mismatched > tiling flags and thereby allow DRI3/Present page-flip to > work on pre-Evergreen hw. > > Tested on

Re: [PATCH] Disable CRTCs when disabling the outputs

2015-06-22 Thread Michel Dänzer
>fd, drmmode_crtc->mode_crtc->crtc_id, > +0, 0, 0, NULL, 0, NULL); > + } > } > > static PixmapPtr > Other than that, looks good to me. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

Re: [PATCH] Disable CRTCs when disabling the outputs

2015-06-22 Thread Michel Dänzer
On 23.06.2015 04:19, Piotr Redlewski wrote: > > > 2015-06-22 12:01 GMT+02:00 Piotr Redlewski <mailto:predlew...@gmail.com>>: > > > > 2015-06-22 9:49 GMT+02:00 Michel Dänzer <mailto:mic...@daenzer.net>>: > > On 21.06.2015 23

Re: [PATCH] Disable CRTCs when disabling the outputs

2015-06-23 Thread Michel Dänzer
On 23.06.2015 16:45, Piotr Redlewski wrote: > > 2015-06-23 8:28 GMT+02:00 Michel Dänzer <mailto:mic...@daenzer.net>>: > > On 23.06.2015 04:19, Piotr Redlewski wrote: > > > > 2015-06-22 12:01 GMT+02:00 Piotr Redlewski <mailto:predlew..

Re: [PATCH v2] Disable CRTCs when disabling the outputs

2015-06-23 Thread Michel Dänzer
effect of that is it calls drmmode_output_dpms() to enable the outputs associated with the CRTC, but I think the X server would do that anyway after enabling the CRTC. What do you think? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast

Re: [PATCH v3] Disable CRTCs when disabling the outputs

2015-06-25 Thread Michel Dänzer
Cs when leaving DPMS > > Signed-off-by: Piotr Redlewski Reviewed and pushed, thanks Piotr! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xo

Re: [PATCH] Fix inconsistent default eg_tile_split in evergreen_accel.c

2015-06-29 Thread Michel Dänzer
4096: tile_split = 6; break; > } > return tile_split; > Pushed, thanks! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http://lists.x.org/mailman/listinfo/xorg-driver-ati

Re: [PATCH xf86-video-amdgpu] Enable/disable CRTCs in DPMS hook

2015-06-29 Thread Michel Dänzer
NULL); > + else > + crtc->funcs->set_mode_major(crtc, &crtc->mode, crtc->rotation, > + crtc->x, crtc->y); > } > > /* TODO: currently this function only clear the front buffer to zero */ > Reviewed and pushed, thanks! -- Eart

Bug#790663: Extremely slow window dragging and very poor performance with KMS activated on RV100/M6 [Rage/Radeon Mobility Series]

2015-07-01 Thread Michel Dänzer
ssary with KMS and causes the driver to allocate at least twice as much VRAM as necessary for the front buffer. Please try commenting it out. > If I turn off hardware acceleration, the X environment is usable but still > more slow than I used in UMS mode. In UMS mode (option radeon mo

Bug#790663: Extremely slow window dragging and very poor performance with KMS activated on RV100/M6 [Rage/Radeon Mobility Series]

2015-07-01 Thread Michel Dänzer
MS. > On 01/07/15, Michel Dänzer wrote: >> On 01.07.2015 01:44, alfon wrote: >>> >>> Section "Extensions" >>> Option "Composite" "Disable" >>> EndSection >> >> Why are you disabling this? If

Re: [PATCH] Do not try to enable already enabled CRTCs in DPMS hook

2015-07-06 Thread Michel Dänzer
(crtc, &crtc->mode, crtc->rotation, > + crtc->x, crtc->y); > } > > static PixmapPtr > Reviewed and pushed. Thank you for taking responsibility for your code! -- Earthling Michel Dänzer | http://www.amd.

Bug#790663: Extremely slow window dragging and very poor performance with KMS activated on RV100/M6 [Rage/Radeon Mobility Series]

2015-07-08 Thread Michel Dänzer
On 03.07.2015 02:42, Alfonso García wrote: > On 02/07/15, Michel Dänzer wrote: >> On 02.07.2015 01:39, Alfonso García wrote: >>> On 01/07/15, Michel Dänzer wrote: >>>> On 01.07.2015 01:44, alfon wrote: >>>>> >> Can you try if a simple compo

[PATCH 3/3] present: Handle DPMS off in radeon_present_get_ust_msc

2015-07-08 Thread Michel Dänzer
From: Michel Dänzer The DRM_IOCTL_WAIT_VBLANK ioctl may return an error during DPMS off, which would trigger an error message in drmmode_crtc_get_ust_msc. Signed-off-by: Michel Dänzer --- src/radeon_present.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src

[PATCH 1/3] present: Fall back to modeset for unflip operation

2015-07-08 Thread Michel Dänzer
From: Michel Dänzer It's not always possible to use the page flip ioctl for this, e.g. during DPMS off. We were previously just skipping the unflip in that case, which could result in hangs when setting DPMS off while a fullscreen Present app is running, e.g. at the GNOME3 lock screen. S

[PATCH 2/3] present: Look at all CRTCs to determine if we can flip

2015-07-08 Thread Michel Dänzer
From: Michel Dänzer Inspired by modesetting driver change by Kenneth Graunke. Signed-off-by: Michel Dänzer --- src/radeon_present.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/radeon_present.c b/src/radeon_present.c index bc1053e..49acb23

Re: [PATCH xf86-video-amdgpu] Do not try to enable already enabled CRTCs in DPMS hook

2015-07-08 Thread Michel Dänzer
crtc->x, crtc->y); > } > Reviewed and pushed, thanks! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _

[PATCH xf86-video-amdgpu] DRI2: Don't ignore rotated CRTCs in amdgpu_dri2_drawable_crtc

2015-07-09 Thread Michel Dänzer
From: Michel Dänzer Waiting for vblank interrupts works fine with rotated CRTCs. The only case we can't handle with rotation is page flipping, which is handled in can_exchange(). This fixes gnome-shell hanging on rotation, probably because amdgpu_dri2_get_msc returned MSC/UST 0 for ro

[PATCH xf86-video-amdgpu] Adopt for new X server dirty tracking APIs.

2015-07-14 Thread Michel Dänzer
From: Dave Airlie Signed-off-by: Dave Airlie (Ported from radeon commit b6d871bf299c7d0f106c07ee4d8bd3b2337f53cc) Signed-off-by: Michel Dänzer --- src/amdgpu_kms.c | 4 src/drmmode_display.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/amdgpu_kms.c b

Re: [PATCH] Allow/Fix use of multiple ZaphodHead outputs per x-screen.

2015-07-15 Thread Michel Dänzer
rted from radeon commit afab7839fc15722dbaa7203d00fe7f6ce5336b9d) > > Signed-off-by: Mario Kleiner Reviewed and pushed, thanks! P.S. Please use [PATCH xf86-video-amdgpu] as the prefix for amdgpu driver patches. -- Earthling Michel Dänzer | http://www.amd.com Li

Re: [PATCH 1/2] configure: do not overlink radeon_drv.so

2015-07-22 Thread Michel Dänzer
access It's only used/needed by ati_drv.so. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-driver-ati mailing list xorg-driver-ati@l

Re: [PATCH 2/2] Fix the build without composite

2015-07-22 Thread Michel Dänzer
_x += drawable->x; > + off_y += drawable->y; > } There's more code which effectively relies on COMPOSITE being defined, because it doesn't add drawable->x/y otherwise. Either that needs to be fixed as well, or maybe we should just bail in configure if

Re: [PATCH 2/2] Fix the build without composite

2015-07-22 Thread Michel Dänzer
On 22.07.2015 19:53, Emil Velikov wrote: > On 22 July 2015 at 08:39, Michel Dänzer wrote: >> On 22.07.2015 07:55, Emil Velikov wrote: >>> Inspired by a identical commit for xf86-video-nouveau by Ilia Mirkin. >>> >>> Signed-off-by: Emil Velikov >>>

Re: [PATCH 1/2] configure: do not overlink radeon_drv.so

2015-07-22 Thread Michel Dänzer
On 22.07.2015 19:51, Emil Velikov wrote: > On 22 July 2015 at 08:30, Michel Dänzer wrote: >> On 22.07.2015 07:55, Emil Velikov wrote: >>> Remove the unused link dependency of libpciaccess. It's only >>> used/needed by ati_drv.so >>> >>> Signed-

[PATCH 1/2] Remove unused local variable pRADEONEnt

2015-07-30 Thread Michel Dänzer
From: Michel Dänzer ../../src/radeon_probe.c: In function 'radeon_get_scrninfo': ../../src/radeon_probe.c:157:22: warning: variable 'pRADEONEnt' set but not used [-Wunused-but-set-variable] RADEONEntPtr pRADEONEnt; ^ Signed-off-by: Mic

[PATCH 2/2] glamor: Move declaration of struct radeon_pixmap out of #if/#else blocks

2015-07-30 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/radeon_glamor.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/radeon_glamor.h b/src/radeon_glamor.h index c77466e..246336b 100644 --- a/src/radeon_glamor.h +++ b/src/radeon_glamor.h @@ -28,6 +28,9

Re: xf86-ati-radeon-7.5.99 and fltk-1.3

2015-07-30 Thread Michel Dänzer
-7.5.99, the buttons seem to be OK. But the > texts are still broken. > > I use a radeon 6850 card. Please attach the corresponding Xorg.0.log file. > Replacing this card with a nvidia geforce gt 720 card, all buttons > and all texts are OK. Is that using the nouveau or nvid

Re: xf86-ati-radeon-7.5.99 and fltk-1.3

2015-07-31 Thread Michel Dänzer
On 31.07.2015 16:53, szukw...@arcor.de wrote: > On Fri, 31 Jul 2015 11:57:00 +0900, Michel Dänzer wrote: > >> Please attach the corresponding Xorg.0.log file. > >> Is that using the nouveau or nvidia driver? > > I repeated the test with the nvidia card. And found that

Re: xf86-ati-radeon-7.5.99 and fltk-1.3

2015-08-02 Thread Michel Dänzer
On 01.08.2015 02:28, szukw...@arcor.de wrote: > On Fri, 31 Jul 2015 18:04:15 +0900, Michel Dänzer wrote: > >> For radeon, does >> >>Option "AccelMethod" "glamor" >> >> help? Note that you currently have the old libglamoregl.so >&g

Re: [PATCH xf86-video-amdgpu 1/2] Add fiji support

2015-08-04 Thread Michel Dänzer
On 04.08.2015 02:52, Alex Deucher wrote: > Signed-off-by: Alex Deucher The series is Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X develo

[PATCH 2/2] Wait for scanout BO initialization to finish before setting mode

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer This should avoid intermittent artifacts which could sometimes be visible when setting a new scanout pixmap, e.g. on server startup or when changing resolutions. Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[PATCH 1/2] Only call drmmode_copy_fb (at most) once on server startup

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer It doesn't make sense to copy the screen contents from console when VT switching back to Xorg or when Xorg resets. Fixes intermittent artifacts when VT switching back from console to the gdm login screen. Signed-off-by: Michel Dänzer --- src/radeon_kms.c

[PATCH xf86-video-amdgpu] Add .dir-locals.el file with Emacs indentation settings

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- .dir-locals.el | 12 1 file changed, 12 insertions(+) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 000..2e58e90 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,12

[PATCH xf86-video-amdgpu 4/6] Update scanout pixmap contents before setting a mode with it

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer This ensures the scanout pixmaps used for Option "TearFree" and Option "ShadowPrimary" have been initialized when their initial mode is set. (Ported from radeon commit a4a8cdbcc10c1c5f07485a2af9e9e81e490c3e1d) Signed-off-by: Michel Dänzer --- src/a

[PATCH xf86-video-amdgpu 6/6] On screen resize, clear the new buffer before displaying it

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer Fixes garbage being intermittently visible during a screen resize. (Ported from radeon commit 80f3d727f93cb6efedd2b39338d2301035965fe2) Signed-off-by: Michel Dänzer --- src/amdgpu_drv.h | 1 + src/amdgpu_glamor_wrappers.c | 9 + src/drmmode_display.c

[PATCH xf86-video-amdgpu 2/6] Defer initial drmmode_copy_fb call until root window creation

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer That's late enough for acceleration to be fully initialized, but still early enough to set pScreen->canDoBGNoneRoot. (Ported from radeon commit 37874a4eeace5df04b02c8fc28f67b824e3f0f5f) Signed-off-by: Michel Dänzer --- src/amdgpu_drv.h | 3 +++ src/amdg

[PATCH xf86-video-amdgpu 1/6] Only copy fbcon BO contents if bgNoneRoot is TRUE

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer Otherwise, the X server will initialize the screen pixmap contents anyway. (Ported from radeon commit 39c497f3efca5ca08343b884f44c93215dcdef31) Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 9 - src/drmmode_display.h | 2 ++ 2 files changed, 10

[PATCH xf86-video-amdgpu 3/6] Defer initial modeset until the first BlockHandler invocation

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer This ensures that the screen pixmap contents have been initialized when the initial modes are set. (Ported from radeon commits 673e1c7637687c74fc9bdeeeffb7ace0d04b734f and 1584dc545c78e0bce8d4b4b9f26b568e2c211453) Signed-off-by: Michel Dänzer --- src/amdgpu_kms.c

[PATCH xf86-video-amdgpu 5/6] Make drmmode_copy_fb() work with glamor

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer Needed for Xorg -background none. (Ported from radeon commit 3999bf88cdb192fe2f30b03bd2ed6f6a3f9f9057) Signed-off-by: Michel Dänzer --- src/amdgpu_drv.h | 1 + src/amdgpu_kms.c | 7 +++- src/drmmode_display.c | 113

[PATCH xf86-video-amdgpu 2/3] glamor: Add amdgpu_glamor_finish to wait for glamor rendering to finish

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer This is a bit sneaky, because it calls glFinish directly from the driver, but it seems to work fine. Signed-off-by: Michel Dänzer --- configure.ac| 2 ++ src/amdgpu_glamor.c | 12 src/amdgpu_glamor.h | 1 + 3 files changed, 15 insertions(+) diff

[PATCH xf86-video-amdgpu 3/3] Wait for scanout BO initialization to finish before setting mode

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer This should avoid intermittent artifacts which could sometimes be visible when setting a new scanout pixmap, e.g. on server startup or when changing resolutions. (Ported from radeon commit 3791fceabf2cb037467dc41c15364e9f9ec1e47e) Signed-off-by: Michel Dänzer --- src

[PATCH xf86-video-amdgpu 1/3] Only call drmmode_copy_fb (at most) once on server startup

2015-08-06 Thread Michel Dänzer
From: Michel Dänzer It doesn't make sense to copy the screen contents from console when VT switching back to Xorg or when Xorg resets. Fixes intermittent artifacts when VT switching back from console to the gdm login screen. (Ported from radeon commit 4e3dfa69e4630df2e0ec0f5b81d61159757

Re: [PATCH xf86-video-ati] Make selection between DRI2 and DRI3 consistent with other drivers.

2015-08-10 Thread Michel Dänzer
"DRI3" working, it's probably better to keep the Bool variable and add an int one: 1. Initialize Bool variable to FALSE 2. xf86GetOptValBool(info->Options, OPTION_DRI3, &) 3. xf86GetOptValInteger(info->Options, OPTION_DRI, &), set Bool variable = == 3. In 3. it mi

Re: [PATCH 2/2] Fix the build without composite

2015-08-10 Thread Michel Dänzer
On 08.08.2015 03:29, Emil Velikov wrote: > On 22 July 2015 at 08:39, Michel Dänzer wrote: >> On 22.07.2015 07:55, Emil Velikov wrote: >>> Inspired by a identical commit for xf86-video-nouveau by Ilia Mirkin. >>> >>> Signed-off-by: Emil Velikov >>>

Re: [PATCH] add new OLAND pci id

2015-08-10 Thread Michel Dänzer
On 11.08.2015 04:33, Alex Deucher wrote: > Signed-off-by: Alex Deucher Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X develo

Re: Switch Option DRI3 to DRI for consistency with other video drivers. (v2)

2015-08-10 Thread Michel Dänzer
patches pushed, thanks! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http://list

Re: [PATCH xf86-video-ati] Make selection between DRI2 and DRI3 consistent with other drivers.

2015-08-10 Thread Michel Dänzer
On 10.08.2015 21:15, Ilia Mirkin wrote: > Is it necessary to keep dri3? AFAIK there hasn't been a release with it... Yes. So? :) It's been used in the wild for months. -- Earthling Michel Dänzer | http://www.amd.com Libre softwa

[PATCH xf86-video-amdgpu] DRI2: Keep MSC monotonic when moving window between CRTCs

2015-08-14 Thread Michel Dänzer
From: Michel Dänzer This mirrors the DRI3 implementation in xserver. Fixes VDPAU video playback hanging when moving the window between CRTCs. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66384 Signed-off-by: Michel Dänzer --- src/amdgpu_dri2.c | 202

Bug#796050: xserver-xorg-video-radeon: Xorg does not start on ATI/AMD RadeonHD4670 on PowerPC G5 QuadCore

2015-08-18 Thread Michel Dänzer
t start at all. [...] > [ 3578.790] (II) [KMS] Kernel modesetting enabled. This message means the driver probe hook returns TRUE. > [ 3578.791] (EE) No devices detected. So I'm not sure why Xorg would say this. Looks like a Xorg bug. -- Earthling Michel Dänzer |

[PATCH 1/2] DRI2: Don't ignore rotated CRTCs in amdgpu_dri2_drawable_crtc

2015-08-19 Thread Michel Dänzer
From: Michel Dänzer Waiting for vblank interrupts works fine with rotated CRTCs. The only case we can't handle with rotation is page flipping, which is handled in can_exchange(). This fixes gnome-shell hanging on rotation, probably because amdgpu_dri2_get_msc returned MSC/UST 0 for ro

[PATCH 2/2] DRI2: Keep MSC monotonic when moving window between CRTCs

2015-08-19 Thread Michel Dänzer
From: Michel Dänzer This mirrors the DRI3 implementation in xserver. Fixes VDPAU video playback hanging when moving the window between CRTCs. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66384 (Ported from amdgpu commit 63948ea091a9b324327ade7ec4fc5d67ca7e6f6f) Signed-off-by: Michel

Bug#798317: xserver-xorg-video-radeon: Strange interaction of radeon config, screenshot and x11vnc

2015-09-07 Thread Michel Dänzer
[ 542.255] (**) RADEON(0): Option "EXAVSync" "off" I don't know what the problem is, but FWIW you shouldn't enable Option "RenderAccel", because RENDER acceleration uses the 3D engine, which isn't validated on RN100 GPUs. That might explain at least th

Bug#798317: xserver-xorg-video-radeon: Strange interaction of radeon config, screenshot and x11vnc

2015-09-08 Thread Michel Dänzer
thout Option "EXAPixmaps"? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-driver-ati mailing list xorg-driver-ati@lists.x.org http

Bug#798317: xserver-xorg-video-radeon: Strange interaction of radeon config, screenshot and x11vnc

2015-09-08 Thread Michel Dänzer
On 09.09.2015 11:46, Luis Mochan wrote: > I haven´t rebooted without that option, but it seems it runs faster without > it (I turned it off and restarted X). The EXAPixmaps option was specifically introduced to be disabled on GPUs like yours for this reason. :) -- Earthling Michel

Bug#798317: xserver-xorg-video-radeon: Strange interaction of radeon config, screenshot and x11vnc

2015-09-17 Thread Michel Dänzer
if you just restart lightdm without any configuration changes? Does that make it work properly as well? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer

Re: BUG in Xorg

2015-09-17 Thread Michel Dänzer
essie 3.16.0-4-amd64 > > I installed the newest AMD Catalyst driver fglrx 15.7 This mailing list is for the open source drivers for AMD GPUs. For Catalyst issues, please use a Catalyst support channel. -- Earthling Michel Dänzer | http://www.

Re: Does radeon support dual display setups?

2015-09-29 Thread Michel Dänzer
ase provide the corresponding Xorg.0.log file and the output of dmesg. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-driver-ati mailing

Re: Hello, will radeon support AMD APU turbo boost?

2015-09-30 Thread Michel Dänzer
stable on some machines, which is why it's not enabled by default. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-driver-ati mailing l

[PATCH] Only align screen / scanout pixmap height where necessary

2015-10-02 Thread Michel Dänzer
From: Michel Dänzer When using glamor acceleration, the pixmap's header has to have a height that matches exactly what the actual height is minus the GPU memory alignment. Otherwise CRTCs scanning out from the main scanout buffer (e.g. every CRTC that isn't rotated or transformed i

<    1   2   3   4   5   6   7   8   9   10   >