From 9143940da2c4f0deb07d01c1b48d16bb16022997 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Tue, 22 Jul 2014 23:45:13 -0400 Subject: [PATCH] gm107/ir: add lane/vertex count sysvals Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ee0487f..22db368 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: -- 2.7.4