From: Alyssa Rosenzweig Date: Fri, 21 Aug 2020 13:31:43 +0000 (-0400) Subject: pan/decode: Drop legacy 32-bit job support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aac5a559cc281f0a375cdf81d4b1441d165ee6f4;p=mesa.git pan/decode: Drop legacy 32-bit job support We already dropped support for this a long time ago, this is a vestigial artefact that we missed. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Part-of: --- diff --git a/src/panfrost/lib/decode.c b/src/panfrost/lib/decode.c index e51c7fb8289..f2f5df97dc6 100644 --- a/src/panfrost/lib/decode.c +++ b/src/panfrost/lib/decode.c @@ -2369,14 +2369,7 @@ pandecode_jc(mali_ptr jc_gpu_va, bool bifrost, unsigned gpu_id, bool minimal) h = PANDECODE_PTR(mem, jc_gpu_va, struct mali_job_descriptor_header); - /* On Midgard, for 32-bit jobs except for fragment jobs, the - * high 32-bits of the 64-bit pointer are reused to store - * something else. - */ - int offset = h->job_descriptor_size == MALI_JOB_32 && - h->job_type != MALI_JOB_TYPE_FRAGMENT ? 4 : 0; - mali_ptr payload_ptr = jc_gpu_va + sizeof(*h) - offset; - + mali_ptr payload_ptr = jc_gpu_va + sizeof(*h); payload = pandecode_fetch_gpu_mem(mem, payload_ptr, 256); int job_no = job_descriptor_number++;