[Mesa-dev] [PATCH 1/3] tgsi: set implicit array size for tess stages

2015-08-16 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza marcos.souza@gmail.com

---
 src/gallium/auxiliary/tgsi/tgsi_text.c | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c 
b/src/gallium/auxiliary/tgsi/tgsi_text.c
index a6675c5..24e2dbd 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_text.c
@@ -259,7 +259,7 @@ struct translate_ctx
struct tgsi_token *tokens_end;
struct tgsi_header *header;
unsigned processor : 4;
-   int implied_array_size : 5;
+   unsigned implied_array_size : 6;
unsigned num_immediates;
 };
 
@@ -1623,6 +1623,10 @@ static boolean translate( struct translate_ctx *ctx )
if (!parse_header( ctx ))
   return FALSE;
 
+   if (ctx-processor == TGSI_PROCESSOR_TESS_CTRL ||
+   ctx-processor == TGSI_PROCESSOR_TESS_EVAL)
+   ctx-implied_array_size = 32 ;
+
while (*ctx-cur != '\0') {
   uint label_val = 0;
   if (!eat_white( ctx-cur )) {
-- 
2.4.3

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH 1/3] tgsi: set implicit array size for tess stages

2015-08-16 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza marcos.souza@gmail.com

---
 src/gallium/auxiliary/tgsi/tgsi_text.c | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c 
b/src/gallium/auxiliary/tgsi/tgsi_text.c
index a6675c5..24e2dbd 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_text.c
@@ -259,7 +259,7 @@ struct translate_ctx
struct tgsi_token *tokens_end;
struct tgsi_header *header;
unsigned processor : 4;
-   int implied_array_size : 5;
+   unsigned implied_array_size : 6;
unsigned num_immediates;
 };
 
@@ -1623,6 +1623,10 @@ static boolean translate( struct translate_ctx *ctx )
if (!parse_header( ctx ))
   return FALSE;
 
+   if (ctx-processor == TGSI_PROCESSOR_TESS_CTRL ||
+   ctx-processor == TGSI_PROCESSOR_TESS_EVAL)
+   ctx-implied_array_size = 32 ;
+
while (*ctx-cur != '\0') {
   uint label_val = 0;
   if (!eat_white( ctx-cur )) {
-- 
2.4.3

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev