From: Ben Skeggs Date: Sat, 6 Jun 2020 23:51:58 +0000 (+1000) Subject: nvir: introduce OP_FINAL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a831967c72c57abca347396403fa59d232845282;p=mesa.git nvir: introduce OP_FINAL Required to support SM70 GS. Signed-off-by: Ben Skeggs Reviewed-by: Karol Herbst Part-of: --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.h b/src/gallium/drivers/nouveau/codegen/nv50_ir.h index add0e270e56..d58c0d206ec 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h @@ -118,6 +118,7 @@ enum operation OP_PINTERP, OP_EMIT, // emit vertex OP_RESTART, // restart primitive + OP_FINAL, // finish emitting primitives OP_TEX, OP_TXB, // texture bias OP_TXL, // texure lod diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp index a0fd9eb08bf..ce0d2507dc1 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp @@ -144,6 +144,7 @@ const char *operationStr[OP_LAST + 1] = "pinterp", "emit", "restart", + "final", "tex", "texbias", "texlod", diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp index 3a772003271..b0057cb7dce 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp @@ -43,7 +43,7 @@ const uint8_t Target::operationSrcNr[] = 0, 0, 0, // PRERET,CONT,BREAK 0, 0, 0, 0, 0, 0, // BRKPT, JOINAT, JOIN, DISCARD, EXIT, MEMBAR 1, 1, 1, 2, 1, 2, // VFETCH, PFETCH, AFETCH, EXPORT, LINTERP, PINTERP - 1, 1, // EMIT, RESTART + 1, 1, 1, // EMIT, RESTART, FINAL 1, 1, 1, // TEX, TXB, TXL, 1, 1, 1, 1, 1, 1, 2, // TXF, TXQ, TXD, TXG, TXLQ, TEXCSAA, TEXPREP 1, 1, 2, 2, 2, 2, 2, // SULDB, SULDP, SUSTB, SUSTP, SUREDB, SUREDP, SULEA @@ -105,8 +105,8 @@ const OpClass Target::operationClass[] = OPCLASS_LOAD, OPCLASS_OTHER, OPCLASS_OTHER, OPCLASS_STORE, // LINTERP, PINTERP OPCLASS_SFU, OPCLASS_SFU, - // EMIT, RESTART - OPCLASS_CONTROL, OPCLASS_CONTROL, + // EMIT, RESTART, FINAL + OPCLASS_CONTROL, OPCLASS_CONTROL, OPCLASS_CONTROL, // TEX, TXB, TXL, TXF; TXQ, TXD, TXG, TXLQ; TEXCSAA, TEXPREP OPCLASS_TEXTURE, OPCLASS_TEXTURE, OPCLASS_TEXTURE, OPCLASS_TEXTURE, OPCLASS_TEXTURE, OPCLASS_TEXTURE, OPCLASS_TEXTURE, OPCLASS_TEXTURE,