[Mesa-dev] [PATCH 7/7] nvc0/ir: set instance count based on the GS_INVOCATIONS property

Ilia Mirkin imirkin at alum.mit.edu
Wed Apr 23 20:48:55 PDT 2014


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
index e076e72..ef00a2f 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -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;
-- 
1.8.3.2



More information about the mesa-dev mailing list