summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-11-30 16:06:20 +1000
committerDave Airlie <airlied@redhat.com>2015-12-04 04:04:01 +0000
commit9a43d7bc39094c9a1421bcd5cb0e929a59ceeff6 (patch)
treedb3d5d31f460a256ef0014f9a03d45d84422377b
parent977795a6c7c26b475180e505aea8f86e1ac9156d (diff)
r600/asm: enable nstack check for tess ctrl/eval shaders.
This just makes sure they register at least one stack usage frame like vertex shaders. Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/gallium/drivers/r600/r600_asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 88e35bc414e..c3a565ebff3 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -1690,7 +1690,7 @@ int r600_bytecode_build(struct r600_bytecode *bc)
if (!bc->nstack) // If not 0, Stack_size already provided by llvm
bc->nstack = bc->stack.max_entries;
- if (bc->type == TGSI_PROCESSOR_VERTEX && !bc->nstack) {
+ if ((bc->type == TGSI_PROCESSOR_VERTEX || bc->type == TGSI_PROCESSOR_TESS_EVAL || bc->type == TGSI_PROCESSOR_TESS_CTRL) && !bc->nstack) {
bc->nstack = 1;
}