From: Alyssa Rosenzweig Date: Tue, 3 Mar 2020 02:32:31 +0000 (-0500) Subject: panfrost: Add note about preloaded varyings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb15525ab798aea74b02a7160c0fa4b9ec6212be;p=mesa.git 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: --- 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