diff options
author | Ilia Mirkin <[email protected]> | 2014-04-23 23:14:55 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-04-26 11:57:09 -0400 |
commit | 4be146b1088c33ca377a2cf8a01e73c7f66732f7 (patch) | |
tree | 46c2509f5628445b8107195e2b96efbca65388ff /src/gallium/auxiliary/tgsi/tgsi_ureg.c | |
parent | 76db20fc672dafd70d40cbb184ae8793e72c7f80 (diff) |
gallium: add GS_INVOCATIONS property
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_ureg.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_ureg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index 38cce584900..2bf93ee6adb 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c @@ -1468,6 +1468,14 @@ static void emit_decls( struct ureg_program *ureg ) ureg->property_gs_max_vertices); } + if (ureg->property_gs_invocations != ~0) { + assert(ureg->processor == TGSI_PROCESSOR_GEOMETRY); + + emit_property(ureg, + TGSI_PROPERTY_GS_INVOCATIONS, + ureg->property_gs_invocations); + } + if (ureg->property_fs_coord_origin) { assert(ureg->processor == TGSI_PROCESSOR_FRAGMENT); @@ -1757,6 +1765,7 @@ struct ureg_program *ureg_create( unsigned processor ) ureg->property_gs_input_prim = ~0; ureg->property_gs_output_prim = ~0; ureg->property_gs_max_vertices = ~0; + ureg->property_gs_invocations = ~0; ureg->free_temps = util_bitmask_create(); if (ureg->free_temps == NULL) |