summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2015-08-16 13:31:56 -0300
committerIlia Mirkin <imirkin@alum.mit.edu>2015-08-17 22:50:16 -0400
commita37fa7653bead4985668c359391bdf01dec8b084 (patch)
treefda7b6e3cf869599af088bf96ef7133b91c82522 /src/gallium/auxiliary
parent46684d3ae3a4084b00355df3feeeb25159656a8e (diff)
downloadexternal_mesa3d-a37fa7653bead4985668c359391bdf01dec8b084.zip
external_mesa3d-a37fa7653bead4985668c359391bdf01dec8b084.tar.gz
external_mesa3d-a37fa7653bead4985668c359391bdf01dec8b084.tar.bz2
tgsi: set implicit array size for tess stages
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_text.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
index a6675c5..0018b1b 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 )) {