v3d: drop incorrect MAYBE_UNUSED
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 22 Jun 2019 14:29:03 +0000 (15:29 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 31 Jul 2019 08:41:05 +0000 (09:41 +0100)
While at it, use that `screen` variable everywhere.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/drivers/v3d/v3d_job.c

index 9892e0ecff271ceb25fc4b04444c5d6711ad60b3..3226059161acd4db99068d32de2b67b88d84acfc 100644 (file)
@@ -435,12 +435,12 @@ v3d_clif_dump(struct v3d_context *v3d, struct v3d_job *job)
 void
 v3d_job_submit(struct v3d_context *v3d, struct v3d_job *job)
 {
-        MAYBE_UNUSED struct v3d_screen *screen = v3d->screen;
+        struct v3d_screen *screen = v3d->screen;
 
         if (!job->needs_flush)
                 goto done;
 
-        if (v3d->screen->devinfo.ver >= 41)
+        if (screen->devinfo.ver >= 41)
                 v3d41_emit_rcl(job);
         else
                 v3d33_emit_rcl(job);