Mesa (18.2): st/nine: Increase maximum number of temp registers

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 3 12:42:51 UTC 2018


Module: Mesa
Branch: 18.2
Commit: 4c34a42189c0171012dd8131f366a7a93f119553
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c34a42189c0171012dd8131f366a7a93f119553

Author: Axel Davy <davyaxel0 at gmail.com>
Date:   Sun Sep 23 18:24:18 2018 +0200

st/nine: Increase maximum number of temp registers

With some test app I hit the limit.
As we allocate on demand (up to the maximum),
it is free to increase the limit.

Signed-off-by: Axel Davy <davyaxel0 at gmail.com>
CC: <mesa-stable at lists.freedesktop.org>
(cherry picked from commit 7ae2509ce06d9d3da44de3f25afc7370e2330030)

---

 src/gallium/state_trackers/nine/nine_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c
index 5b8ad3f161..f9e6b962a7 100644
--- a/src/gallium/state_trackers/nine/nine_shader.c
+++ b/src/gallium/state_trackers/nine/nine_shader.c
@@ -483,7 +483,7 @@ struct shader_translator
         struct ureg_dst a0;
         struct ureg_dst tS[8]; /* texture stage registers */
         struct ureg_dst tdst; /* scratch dst if we need extra modifiers */
-        struct ureg_dst t[5]; /* scratch TEMPs */
+        struct ureg_dst t[8]; /* scratch TEMPs */
         struct ureg_src vC[2]; /* PS color in */
         struct ureg_src vT[8]; /* PS texcoord in */
         struct ureg_dst rL[NINE_MAX_LOOP_DEPTH]; /* loop ctr */




More information about the mesa-commit mailing list