summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-08-01 13:38:13 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-08-09 14:56:58 -0500
commit2f9cb33f0b41fb82ba481ca4f9792f59e0995def (patch)
tree5406d2469ab0ac237b29e20d4dedf683f44b3197
parent135ac29817d585b6700e1db09f6c2d7445a0a695 (diff)
ecore_drm2: remove unused crtc bitfield
We'll need something like this when multi-head works, but it can't be implemented this way anyway. There's no guarantee that crtc ids will be low enough to fit sensibly in a bitfield.
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c2
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_private.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index a6e84ee268..c5f0d6b995 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -771,7 +771,6 @@ _output_create(Ecore_Drm2_Device *dev, const drmModeRes *res, const drmModeConne
771 output->enabled = EINA_FALSE; 771 output->enabled = EINA_FALSE;
772 } 772 }
773 773
774 dev->alloc.crtc |= (1 << output->crtc_id);
775 dev->alloc.conn |= (1 << output->conn_id); 774 dev->alloc.conn |= (1 << output->conn_id);
776 dev->outputs = eina_list_append(dev->outputs, output); 775 dev->outputs = eina_list_append(dev->outputs, output);
777 776
@@ -906,7 +905,6 @@ _output_destroy(Ecore_Drm2_Device *dev, Ecore_Drm2_Output *output)
906 free(mode); 905 free(mode);
907 } 906 }
908 907
909 dev->alloc.crtc &= ~(1 << output->crtc_id);
910 dev->alloc.conn &= ~(1 << output->conn_id); 908 dev->alloc.conn &= ~(1 << output->conn_id);
911 909
912 eina_stringshare_del(output->backlight.path); 910 eina_stringshare_del(output->backlight.path);
diff --git a/src/lib/ecore_drm2/ecore_drm2_private.h b/src/lib/ecore_drm2/ecore_drm2_private.h
index a85cb0c2d5..e48449ead6 100644
--- a/src/lib/ecore_drm2/ecore_drm2_private.h
+++ b/src/lib/ecore_drm2/ecore_drm2_private.h
@@ -276,7 +276,7 @@ struct _Ecore_Drm2_Device
276 276
277 struct 277 struct
278 { 278 {
279 uint32_t crtc, conn; 279 uint32_t conn;
280 } alloc; 280 } alloc;
281 281
282 struct 282 struct