summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-03-06 09:28:29 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-03-21 14:00:15 -0400
commit20b52359ff0205699df19caf9c609d181a40d2a0 (patch)
treeda50cb136b8b9eae8baca9afff00b269a7dda0cd
parentd7ed26df3493ce74e88bf973530c1e83e5d3639c (diff)
ecore-drm2: Set output rotation value
When we call ecore_drm2_output_rotation_set we need to store that value in the Output structure so that it can be checked later when needed. ref T7690 Differential Revision: https://phab.enlightenment.org/D8113
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c4
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_private.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index f45b5657f5..7642025ef4 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1518,10 +1518,12 @@ ecore_drm2_output_supported_rotations_get(Ecore_Drm2_Output *output)
1518EAPI Eina_Bool 1518EAPI Eina_Bool
1519ecore_drm2_output_rotation_set(Ecore_Drm2_Output *output, int rotation) 1519ecore_drm2_output_rotation_set(Ecore_Drm2_Output *output, int rotation)
1520{ 1520{
1521 Eina_Bool ret = EINA_FALSE; 1521 Eina_Bool ret = EINA_TRUE;
1522 1522
1523 EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE); 1523 EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE);
1524 1524
1525 output->rotation = rotation;
1526
1525#if 0 1527#if 0
1526 /* XXX: Disable hardware plane rotation for now as this has broken 1528 /* XXX: Disable hardware plane rotation for now as this has broken
1527 * recently. The break happens because of an invalid argument, 1529 * recently. The break happens because of an invalid argument,
diff --git a/src/lib/ecore_drm2/ecore_drm2_private.h b/src/lib/ecore_drm2/ecore_drm2_private.h
index d1a749a871..25aaac7d71 100644
--- a/src/lib/ecore_drm2/ecore_drm2_private.h
+++ b/src/lib/ecore_drm2/ecore_drm2_private.h
@@ -208,6 +208,7 @@ struct _Ecore_Drm2_Output
208 int fd; 208 int fd;
209 int pipe; 209 int pipe;
210 int x, y, w, h, pw, ph; 210 int x, y, w, h, pw, ph;
211 int rotation;
211 212
212 long fallback_sec, fallback_usec; 213 long fallback_sec, fallback_usec;
213 214