From: Ilia Mirkin Date: Wed, 23 Jul 2014 03:45:13 +0000 (-0400) Subject: gm107/ir: add lane/vertex count sysvals X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9143940da2c4f0deb07d01c1b48d16bb16022997;p=mesa.git gm107/ir: add lane/vertex count sysvals Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp index ee0487f15d6..22db368b371 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -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: