mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
i965: Add support for emitting the LRP instruction.
Like MAD, this is another three-source instruction. Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
af2c64063e
commit
015a48743d
4 changed files with 4 additions and 0 deletions
|
|
@ -685,6 +685,7 @@ enum opcode {
|
|||
BRW_OPCODE_LINE = 89,
|
||||
BRW_OPCODE_PLN = 90,
|
||||
BRW_OPCODE_MAD = 91,
|
||||
BRW_OPCODE_LRP = 92,
|
||||
BRW_OPCODE_NOP = 126,
|
||||
|
||||
/* These are compiler backend opcodes that get translated into other
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ const struct opcode_desc opcode_descs[128] = {
|
|||
[BRW_OPCODE_LINE] = { .name = "line", .nsrc = 2, .ndst = 1 },
|
||||
[BRW_OPCODE_PLN] = { .name = "pln", .nsrc = 2, .ndst = 1 },
|
||||
[BRW_OPCODE_MAD] = { .name = "mad", .nsrc = 3, .ndst = 1 },
|
||||
[BRW_OPCODE_LRP] = { .name = "lrp", .nsrc = 3, .ndst = 1 },
|
||||
[BRW_OPCODE_SAD2] = { .name = "sad2", .nsrc = 2, .ndst = 1 },
|
||||
[BRW_OPCODE_SADA2] = { .name = "sada2", .nsrc = 2, .ndst = 1 },
|
||||
[BRW_OPCODE_DP4] = { .name = "dp4", .nsrc = 2, .ndst = 1 },
|
||||
|
|
|
|||
|
|
@ -175,6 +175,7 @@ ALU2(DP2)
|
|||
ALU2(LINE)
|
||||
ALU2(PLN)
|
||||
ALU3(MAD)
|
||||
ALU3(LRP)
|
||||
|
||||
ROUND(RNDZ)
|
||||
ROUND(RNDE)
|
||||
|
|
|
|||
|
|
@ -924,6 +924,7 @@ ALU2(DP2)
|
|||
ALU2(LINE)
|
||||
ALU2(PLN)
|
||||
ALU3(MAD)
|
||||
ALU3(LRP)
|
||||
|
||||
ROUND(RNDZ)
|
||||
ROUND(RNDE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue