aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/renderer.c
diff options
context:
space:
mode:
authorMariusz Bialonczyk <manio@skyboo.net>2018-08-02 23:41:59 +0200
committerMariusz Bialonczyk <manio@skyboo.net>2018-08-03 07:43:22 +0200
commite547e55be079b612a8b81b18cdca09f3c523f939 (patch)
tree1c8f67e7b6166ad9e381a0f190b45306744b5931 /backend/drm/renderer.c
parentad406db21c7cebf21bf73ae6ceb88fdf1849395e (diff)
multi-gpu: do not flip screens on secondary GPU
All screens on secondary GPU in multiple GPU configurations was flipped 180. The flipped screens was always on secondary card (the primary card was always correct). Tested on nouveau with: WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card2 WLR_DRM_DEVICES=/dev/dri/card2:/dev/dri/card1 The commit is fixing this problem. Now all screens are "normal".
Diffstat (limited to 'backend/drm/renderer.c')
-rw-r--r--backend/drm/renderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index 38e6315d..b5485327 100644
--- a/backend/drm/renderer.c
+++ b/backend/drm/renderer.c
@@ -238,7 +238,7 @@ struct gbm_bo *copy_drm_surface_mgpu(struct wlr_drm_surface *dest,
assert(tex);
float mat[9];
- wlr_matrix_projection(mat, 1, 1, WL_OUTPUT_TRANSFORM_FLIPPED_180);
+ wlr_matrix_projection(mat, 1, 1, WL_OUTPUT_TRANSFORM_NORMAL);
struct wlr_renderer *renderer = dest->renderer->wlr_rend;
wlr_renderer_begin(renderer, dest->width, dest->height);