gm107/ir: Emit SV_CLOCK system value
authorBoyan Ding <boyan.j.ding@gmail.com>
Fri, 31 Mar 2017 02:33:05 +0000 (10:33 +0800)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 9 Apr 2017 17:03:13 +0000 (13:03 -0400)
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp

index 6903132efa71ac08a0634161a627d002a473b58d..c3c0dcd9fc1100a6279bf857e50726306b7a02ee 100644 (file)
@@ -269,6 +269,7 @@ CodeEmitterGM107::emitSYS(int pos, const Value *val)
    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;
+   case SV_CLOCK          : id = 0x50 + val->reg.data.sv.index; break;
    default:
       assert(!"invalid system value");
       id = 0;