[Mesa-dev] [PATCH kmscube 5/7] drm-atomic.c: remove unused variables `gpu_fence_fd`, `kms_fence_fd`

Eric Engestrom eric.engestrom at imgtec.com
Tue Mar 14 13:33:55 UTC 2017


Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
I feel like I might be missing something here; is copying the fields
into these vars of any use when debugging?
---
 drm-atomic.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drm-atomic.c b/drm-atomic.c
index 5d64e50..27c6b1e 100644
--- a/drm-atomic.c
+++ b/drm-atomic.c
@@ -201,9 +201,6 @@ static int atomic_run(const struct gbm *gbm, const struct egl *egl)
 		struct gbm_bo *next_bo;
 		EGLSyncKHR gpu_fence = NULL;   /* out-fence from gpu, in-fence to kms */
 		EGLSyncKHR kms_fence = NULL;   /* in-fence to gpu, out-fence from kms */
-		int gpu_fence_fd, kms_fence_fd;  /* just for debugging */
-
-		kms_fence_fd = drm.kms_out_fence_fd;
 
 		if (drm.kms_out_fence_fd != -1) {
 			kms_fence = create_fence(egl, drm.kms_out_fence_fd);
@@ -233,7 +230,6 @@ static int atomic_run(const struct gbm *gbm, const struct egl *egl)
 		 * to get fd:
 		 */
 		drm.kms_in_fence_fd = egl->eglDupNativeFenceFDANDROID(egl->display, gpu_fence);
-		gpu_fence_fd = drm.kms_in_fence_fd;
 		egl->eglDestroySyncKHR(egl->display, gpu_fence);
 		assert(drm.kms_in_fence_fd != -1);
 
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list