Mesa (master): pan/bi: Restrict registers to r0-r15 when compiling blend shaders

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 11 20:54:31 UTC 2021


Module: Mesa
Branch: master
Commit: f61be082d32e0ada4e4ac9b8d81ec84fd32726ad
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f61be082d32e0ada4e4ac9b8d81ec84fd32726ad

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Fri Jan  8 19:18:36 2021 +0100

pan/bi: Restrict registers to r0-r15 when compiling blend shaders

Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8417>

---

 src/panfrost/bifrost/bi_ra.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c
index c3c216bf251..0be5bdbf62f 100644
--- a/src/panfrost/bifrost/bi_ra.c
+++ b/src/panfrost/bifrost/bi_ra.c
@@ -74,8 +74,8 @@ bi_allocate_registers(bi_context *ctx, bool *success)
 
         if (ctx->is_blend) {
                 /* R0-R3 are reserved for the blend input */
-                l->class_start[BI_REG_CLASS_WORK] = 4 * 4;
-                l->class_size[BI_REG_CLASS_WORK] = 64 * 4;
+                l->class_start[BI_REG_CLASS_WORK] = 0;
+                l->class_size[BI_REG_CLASS_WORK] = 16 * 4;
         } else {
                 /* R0 - R63, all 32-bit */
                 l->class_start[BI_REG_CLASS_WORK] = 0;



More information about the mesa-commit mailing list