ecore_drm2: Remove ECORE_DRM2_THREAD_CODE_COMMIT op code

As a portion of the upcoming API will require sending return values
from called functions, we will not use threading for doing atomic
commits so there is no need for this op code.
This commit is contained in:
Christopher Michael 2022-12-03 06:12:58 -05:00
parent cd5afa6128
commit 3cd26bcdc2
5 changed files with 0 additions and 49 deletions

View File

@ -130,12 +130,6 @@ cont:
_ecore_drm2_connector_state_thread_send(ECORE_DRM2_THREAD_CODE_DEBUG);
}
static void
_ecore_drm2_connector_state_commit(Ecore_Drm2_Connector *conn EINA_UNUSED)
{
DBG("Connector State Commit");
}
static void
_ecore_drm2_connector_state_thread(void *data, Ecore_Thread *thread)
{
@ -157,9 +151,6 @@ _ecore_drm2_connector_state_thread(void *data, Ecore_Thread *thread)
case ECORE_DRM2_THREAD_CODE_FILL:
_ecore_drm2_connector_state_fill(conn);
break;
case ECORE_DRM2_THREAD_CODE_COMMIT:
_ecore_drm2_connector_state_commit(conn);
break;
case ECORE_DRM2_THREAD_CODE_DEBUG:
_ecore_drm2_connector_state_debug(conn);
break;

View File

@ -117,15 +117,6 @@ cont:
_ecore_drm2_crtc_state_thread_send(ECORE_DRM2_THREAD_CODE_DEBUG);
}
static void
_ecore_drm2_crtc_state_commit(Ecore_Drm2_Crtc *crtc EINA_UNUSED)
{
/* Ecore_Drm2_Crtc_State *cstate; */
/* cstate = crtc->state; */
DBG("CRTC State Commit");
}
static void
_ecore_drm2_crtc_state_thread(void *data, Ecore_Thread *thread)
{
@ -147,9 +138,6 @@ _ecore_drm2_crtc_state_thread(void *data, Ecore_Thread *thread)
case ECORE_DRM2_THREAD_CODE_FILL:
_ecore_drm2_crtc_state_fill(crtc);
break;
case ECORE_DRM2_THREAD_CODE_COMMIT:
_ecore_drm2_crtc_state_commit(crtc);
break;
case ECORE_DRM2_THREAD_CODE_DEBUG:
_ecore_drm2_crtc_state_debug(crtc);
break;
@ -256,7 +244,4 @@ void
_ecore_drm2_crtc_mode_set(Ecore_Drm2_Crtc *crtc EINA_UNUSED, Ecore_Drm2_Display_Mode *mode EINA_UNUSED, int x EINA_UNUSED, int y EINA_UNUSED)
{
/* TODO: add code to actually set crtc mode */
/* send message to thread queue that we have work to do */
_ecore_drm2_crtc_state_thread_send(ECORE_DRM2_THREAD_CODE_COMMIT);
}

View File

@ -403,15 +403,6 @@ _ecore_drm2_display_state_fill(Ecore_Drm2_Display *disp)
_ecore_drm2_display_state_thread_send(ECORE_DRM2_THREAD_CODE_DEBUG);
}
static void
_ecore_drm2_display_state_commit(Ecore_Drm2_Display *disp EINA_UNUSED)
{
/* Ecore_Drm2_Display_State *state; */
/* state = disp->state; */
DBG("Display State Commit");
}
static void
_ecore_drm2_display_state_thread(void *data, Ecore_Thread *thread EINA_UNUSED)
{
@ -433,9 +424,6 @@ _ecore_drm2_display_state_thread(void *data, Ecore_Thread *thread EINA_UNUSED)
case ECORE_DRM2_THREAD_CODE_FILL:
_ecore_drm2_display_state_fill(disp);
break;
case ECORE_DRM2_THREAD_CODE_COMMIT:
_ecore_drm2_display_state_commit(disp);
break;
case ECORE_DRM2_THREAD_CODE_DEBUG:
_ecore_drm2_display_state_debug(disp);
break;

View File

@ -180,15 +180,6 @@ _ecore_drm2_plane_state_fill(Ecore_Drm2_Plane *plane)
_ecore_drm2_plane_state_thread_send(ECORE_DRM2_THREAD_CODE_DEBUG);
}
static void
_ecore_drm2_plane_state_commit(Ecore_Drm2_Plane *plane EINA_UNUSED)
{
/* Ecore_Drm2_Plane_State *pstate; */
/* pstate = plane->state; */
DBG("Plane Commit");
}
static void
_ecore_drm2_plane_state_thread(void *data, Ecore_Thread *thread EINA_UNUSED)
{
@ -210,9 +201,6 @@ _ecore_drm2_plane_state_thread(void *data, Ecore_Thread *thread EINA_UNUSED)
case ECORE_DRM2_THREAD_CODE_FILL:
_ecore_drm2_plane_state_fill(plane);
break;
case ECORE_DRM2_THREAD_CODE_COMMIT:
_ecore_drm2_plane_state_commit(plane);
break;
case ECORE_DRM2_THREAD_CODE_DEBUG:
_ecore_drm2_plane_state_debug(plane);
break;

View File

@ -64,7 +64,6 @@ extern int _ecore_drm2_log_dom;
typedef enum _Ecore_Drm2_Thread_Op_Code
{
ECORE_DRM2_THREAD_CODE_FILL,
ECORE_DRM2_THREAD_CODE_COMMIT,
ECORE_DRM2_THREAD_CODE_DEBUG
} Ecore_Drm2_Thread_Op_Code;