ecore_drm2: remove unused crtc bitfield
authorDerek Foreman <derekf@osg.samsung.com>
Tue, 1 Aug 2017 18:38:13 +0000 (13:38 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Wed, 9 Aug 2017 19:56:58 +0000 (14:56 -0500)
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.

src/lib/ecore_drm2/ecore_drm2_outputs.c
src/lib/ecore_drm2/ecore_drm2_private.h

index a6e84ee..c5f0d6b 100644 (file)
@@ -771,7 +771,6 @@ _output_create(Ecore_Drm2_Device *dev, const drmModeRes *res, const drmModeConne
         output->enabled = EINA_FALSE;
      }
 
-   dev->alloc.crtc |= (1 << output->crtc_id);
    dev->alloc.conn |= (1 << output->conn_id);
    dev->outputs = eina_list_append(dev->outputs, output);
 
@@ -906,7 +905,6 @@ _output_destroy(Ecore_Drm2_Device *dev, Ecore_Drm2_Output *output)
         free(mode);
      }
 
-   dev->alloc.crtc &= ~(1 << output->crtc_id);
    dev->alloc.conn &= ~(1 << output->conn_id);
 
    eina_stringshare_del(output->backlight.path);
index a85cb0c..e48449e 100644 (file)
@@ -276,7 +276,7 @@ struct _Ecore_Drm2_Device
 
    struct
      {
-        uint32_t crtc, conn;
+        uint32_t conn;
      } alloc;
 
    struct