From eb15525ab798aea74b02a7160c0fa4b9ec6212be Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 2 Mar 2020 21:32:31 -0500 Subject: [PATCH] panfrost: Add note about preloaded varyings There's a magic bit in preload_regs which controls this. It doesn't appear to be supported on G71 but it is on G52. I'd guess G72 supports it too but I don't have a way to check this. Needless to say, we'll need a quirks database for this. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/include/panfrost-job.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h index 1e67c150aa8..4f1edeb8453 100644 --- a/src/panfrost/include/panfrost-job.h +++ b/src/panfrost/include/panfrost-job.h @@ -601,6 +601,11 @@ struct mali_shader_meta { * - R61 : gl_SampleMaskIn and gl_SampleID, used by * varying interpolation. * - R62 : unknown (bit always unset). + * + * Later GPUs (starting with Mali-G52?) support + * preloading float varyings into r0-r7. This is + * indicated by setting 0x40. There is no distinction + * here between 1 varying and 2. */ u32 preload_regs : 8; /* In units of 8 bytes or 64 bits, since the -- 2.30.2