diff options
author | Ilia Mirkin <[email protected]> | 2014-07-22 23:45:13 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-04-27 21:25:29 -0400 |
commit | 9143940da2c4f0deb07d01c1b48d16bb16022997 (patch) | |
tree | a2fc5d62fe12fd06f8a64897e3e10588f11ea752 /src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | |
parent | 89e0b08794a56e2ef78e8573a8c11e0cc4589f9e (diff) |
gm107/ir: add lane/vertex count sysvals
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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: |