diff options
author | Christoph Bumiller <[email protected]> | 2011-10-14 19:54:34 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-10-21 23:00:38 +0200 |
commit | 6b27f1468071ab68f38da0472b4bc20f4a0b0e87 (patch) | |
tree | 8ef6dde914420611216f307d55b1d3b3e06d4b64 | |
parent | 63ca1abcc48726aa69f0319060463933b3bda77c (diff) |
nv50/ir: initialize default prog_info values for GP,TP
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir.cpp index 23fb3bf8478..15625a97b9b 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir.cpp @@ -926,6 +926,16 @@ extern "C" { static void nv50_ir_init_prog_info(struct nv50_ir_prog_info *info) { +#if defined(PIPE_SHADER_HULL) && defined(PIPE_SHADER_DOMAIN) + if (info->type == PIPE_SHADER_HULL || info->type == PIPE_SHADER_DOMAIN) { + info->prop.tp.domain = PIPE_PRIM_MAX; + info->prop.tp.outputPrim = PIPE_PRIM_MAX; + } +#endif + if (info->type == PIPE_SHADER_GEOMETRY) { + info->prop.gp.instanceCount = 1; + info->prop.gp.maxVertices = 1; + } info->io.clipDistance = 0xff; info->io.pointSize = 0xff; info->io.edgeFlagIn = 0xff; |