diff options
author | Christoph Bumiller <[email protected]> | 2011-10-17 23:30:02 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-10-21 23:00:39 +0200 |
commit | 44c23e9052d787f5e87bc028409424f417a15831 (patch) | |
tree | d3daddac2988d5bec1a29d6acc95326305d3f0f7 /src/gallium/drivers/nv50/codegen | |
parent | 8bc3a87f4046c995c31a06ee100852c2261625d1 (diff) |
nvc0: fixes for program tessellation parameters
Diffstat (limited to 'src/gallium/drivers/nv50/codegen')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_driver.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_driver.h b/src/gallium/drivers/nv50/codegen/nv50_ir_driver.h index ff3af0a0c74..a6a5e93f58c 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_driver.h +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_driver.h @@ -68,6 +68,25 @@ struct nv50_ir_varying # define NV50_IR_DEBUG_REG_ALLOC 0 #endif +#define NV50_SEMANTIC_CLIPDISTANCE (TGSI_SEMANTIC_COUNT + 0) +#define NV50_SEMANTIC_TEXCOORD (TGSI_SEMANTIC_COUNT + 1) +#define NV50_SEMANTIC_POINTCOORD (TGSI_SEMANTIC_COUNT + 2) +#define NV50_SEMANTIC_VERTEXID (TGSI_SEMANTIC_COUNT + 3) +#define NV50_SEMANTIC_VIEWPORTINDEX (TGSI_SEMANTIC_COUNT + 4) +#define NV50_SEMANTIC_LAYER (TGSI_SEMANTIC_COUNT + 5) +#define NV50_SEMANTIC_INVOCATIONID (TGSI_SEMANTIC_COUNT + 6) +#define NV50_SEMANTIC_TESSFACTOR (TGSI_SEMANTIC_COUNT + 7) +#define NV50_SEMANTIC_TESSCOORD (TGSI_SEMANTIC_COUNT + 8) +#define NV50_SEMANTIC_SAMPLEMASK (TGSI_SEMANTIC_COUNT + 9) +#define NV50_SEMANTIC_COUNT (TGSI_SEMANTIC_COUNT + 10) + +#define NV50_TESS_PART_FRACT_ODD 0 +#define NV50_TESS_PART_FRACT_EVEN 1 +#define NV50_TESS_PART_POW2 2 +#define NV50_TESS_PART_INTEGER 3 + +#define NV50_PRIM_PATCHES PIPE_PRIM_MAX + struct nv50_ir_prog_info { uint16_t target; /* chipset (0x50, 0x84, 0xc0, ...) */ |