Mesa (master): nvc0: a geometry shader can have up to 1024 vertices output
Ilia Mirkin
imirkin at kemper.freedesktop.org
Sat May 23 21:56:30 UTC 2015
Module: Mesa
Branch: master
Commit: 921917c8d8e707dd854e7be05fba7a3e55bc71bf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=921917c8d8e707dd854e7be05fba7a3e55bc71bf
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sat May 23 17:35:42 2015 -0400
nvc0: a geometry shader can have up to 1024 vertices output
The 1024 is already reported everywhere, not sure where this 0x1ff came
from.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: "10.5 10.6" <mesa-stable at lists.freedesktop.org>
---
src/gallium/drivers/nouveau/nvc0/nvc0_program.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
index 5589695..4a47cb2 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
@@ -392,7 +392,7 @@ nvc0_gp_gen_header(struct nvc0_program *gp, struct nv50_ir_prog_info *info)
break;
}
- gp->hdr[4] = info->prop.gp.maxVertices & 0x1ff;
+ gp->hdr[4] = MIN2(info->prop.gp.maxVertices, 1024);
return nvc0_vtgp_gen_header(gp, info);
}
More information about the mesa-commit
mailing list