Commit 8c03c252 authored by Connor Abbott's avatar Connor Abbott

bifrost: Add a few more instructions

parent 41d3af04
......@@ -806,13 +806,18 @@ static const ADDOpInfo ADDOpInfos[] = {
{ 0x0a000, "LD_VAR.32", ADDVaryingInterp, true },
{ 0x0b000, "TEX", ADDTexCompact, true },
{ 0x0c188, "LOAD.i32", ADDTwoSrc, true },
{ 0x0c1a0, "LD_UBO.i32", ADDTwoSrc, true },
{ 0x0c1c8, "LOAD.v2i32", ADDTwoSrc, true },
{ 0x0c1e0, "LD_UBO.v2i32", ADDTwoSrc, true },
{ 0x0c208, "LOAD.v4i32", ADDTwoSrc, true },
// src0 = offset, src1 = binding
{ 0x0c220, "LD_UBO.v4i32", ADDTwoSrc, true },
{ 0x0c248, "STORE.v4i32", ADDTwoSrc, true },
{ 0x0c588, "STORE.i32", ADDTwoSrc, true },
{ 0x0c5c8, "STORE.v2i32", ADDTwoSrc, true },
{ 0x0c648, "LOAD.u16", ADDTwoSrc, true }, // zero-extends
{ 0x0ca88, "LOAD.v3i32", ADDTwoSrc, true },
{ 0x0caa0, "LD_UBO.v3i32", ADDTwoSrc, true },
{ 0x0cb88, "STORE.v3i32", ADDTwoSrc, true },
// Does not exist on G71 (added to G51, G72, and everything after)
{ 0x0cc00, "FRCP_FAST.f32", ADDOneSrc },
......@@ -848,6 +853,10 @@ static const ADDOpInfo ADDOpInfos[] = {
{ 0x17900, "ADD.v2i16", ADDTwoSrc },
{ 0x17ac0, "SUB.i32", ADDTwoSrc },
{ 0x17c10, "ADDC.i32", ADDTwoSrc }, // adds src0 to the bottom bit of src1
{ 0x17d80, "ADD.i32.i16.X", ADDTwoSrc },
{ 0x17d90, "ADD.i32.u16.X", ADDTwoSrc },
{ 0x17dc0, "ADD.i32.i16.Y", ADDTwoSrc },
{ 0x17dd0, "ADD.i32.u16.Y", ADDTwoSrc },
// Compute varying address and datatype (for storing in the vertex shader),
// and store the vec3 result in the data register. The result is passed as
// the 3 normal arguments to ST_VAR.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment