nvc0/ir: set instance count based on the GS_INVOCATIONS property
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 24 Apr 2014 03:15:03 +0000 (23:15 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 26 Apr 2014 16:01:13 +0000 (12:01 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp

index e076e72f66c544bd409f33aa50fad5d539e6d509..ef00a2ff7009ab477e991e5d35b2fd7aea7d1da4 100644 (file)
@@ -829,11 +829,9 @@ void Source::scanProperty(const struct tgsi_full_property *prop)
    case TGSI_PROPERTY_GS_MAX_OUTPUT_VERTICES:
       info->prop.gp.maxVertices = prop->u[0].Data;
       break;
-#if 0
-   case TGSI_PROPERTY_GS_INSTANCE_COUNT:
+   case TGSI_PROPERTY_GS_INVOCATIONS:
       info->prop.gp.instanceCount = prop->u[0].Data;
       break;
-#endif
    case TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS:
       info->prop.fp.separateFragData = TRUE;
       break;