pan/decode: Remove last_size
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 23 Jan 2020 20:32:58 +0000 (15:32 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 18:53:31 +0000 (18:53 +0000)
Fixes ../src/panfrost/pandecode/decode.c: In function ‘pandecode_jc’:
../src/panfrost/pandecode/decode.c:2859:14: warning: variable ‘last_size’ set but not used [-Wunused-but-set-variable]
 2859 |         bool last_size;

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3543>

src/panfrost/pandecode/decode.c

index c28b13f2efa257c864b3854d60095067592cf7e1..80ac64440f5085e02043d239232d5f7bb5817f53 100644 (file)
@@ -2859,7 +2859,6 @@ pandecode_jc(mali_ptr jc_gpu_va, bool bifrost, unsigned gpu_id)
         int start_number = 0;
 
         bool first = true;
-        bool last_size;
 
         do {
                 struct pandecode_mapped_memory *mem =
@@ -2889,9 +2888,6 @@ pandecode_jc(mali_ptr jc_gpu_va, bool bifrost, unsigned gpu_id)
 
                 pandecode_prop("job_type = %s", pandecode_job_type(h->job_type));
 
-                /* Save for next job fixing */
-                last_size = h->job_descriptor_size;
-
                 if (h->job_descriptor_size)
                         pandecode_prop("job_descriptor_size = %d", h->job_descriptor_size);