nv50/ir: add missing SV_TID and SV_CTAID sysvals on GM107
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 13 Feb 2016 21:25:46 +0000 (22:25 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 13 Feb 2016 21:26:38 +0000 (22:26 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp

index 8fcff37e617cb12f26dc68f937f7112e073288df..e583e27682b2aaf9bdd4ab0e6d20200538d71054 100644 (file)
@@ -250,6 +250,8 @@ CodeEmitterGM107::emitSYS(int pos, const Value *val)
    case SV_INVOCATION_ID  : id = 0x11; break;
    case SV_THREAD_KILL    : id = 0x13; break;
    case SV_INVOCATION_INFO: id = 0x1d; break;
+   case SV_TID            : id = 0x21 + val->reg.data.sv.index; break;
+   case SV_CTAID          : id = 0x25 + val->reg.data.sv.index; break;
    default:
       assert(!"invalid system value");
       id = 0;