gm107/ir: add lane/vertex count sysvals
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 23 Jul 2014 03:45:13 +0000 (23:45 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 28 Apr 2015 01:25:29 +0000 (21:25 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp

index ee0487f15d6c788f2a1a71261b1a359fd3b892bf..22db368b3712325a984f573eb14dfa8a82a39977 100644 (file)
@@ -240,6 +240,8 @@ CodeEmitterGM107::emitSYS(int pos, const Value *val)
    int id = val ? val->reg.data.id : -1;
 
    switch (id) {
+   case SV_LANEID         : id = 0x00; break;
+   case SV_VERTEX_COUNT   : id = 0x10; break;
    case SV_INVOCATION_ID  : id = 0x11; break;
    case SV_INVOCATION_INFO: id = 0x1d; break;
    default: