broadcom/compiler: document that spill_base is used for spills and scratch
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 17 Feb 2022 07:55:16 +0000 (08:55 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Feb 2022 08:38:19 +0000 (08:38 +0000)
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15041>

src/broadcom/compiler/v3d_compiler.h

index ef59948..58411bf 100644 (file)
@@ -797,9 +797,11 @@ struct v3d_compile {
 
         /**
          * Register spilling's per-thread base address, shared between each
-         * spill/fill's addressing calculations.
+         * spill/fill's addressing calculations (also used for scratch
+         * access).
          */
         struct qreg spill_base;
+
         /* Bit vector of which temps may be spilled */
         BITSET_WORD *spillable;