Commit 25e95c5f authored by Connor Abbott's avatar Connor Abbott

bifrost: Add more LD_VAR_ADDR opcodes

parent 5a6b8ab9
......@@ -851,7 +851,10 @@ static const ADDOpInfo ADDOpInfos[] = {
// 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.
{ 0x18100, "LD_VAR_ADDR", ADDVaryingAddress, true },
{ 0x18000, "LD_VAR_ADDR.f16", ADDVaryingAddress, true },
{ 0x18100, "LD_VAR_ADDR.f32", ADDVaryingAddress, true },
{ 0x18200, "LD_VAR_ADDR.i32", ADDVaryingAddress, true },
{ 0x18300, "LD_VAR_ADDR.u32", ADDVaryingAddress, true },
// Implements alpha-to-coverage, as well as possibly the late depth and
// stencil tests. The first source is the existing sample mask in R60
// (possibly modified by gl_SampleMask), and the second source is the alpha
......@@ -863,11 +866,11 @@ static const ADDOpInfo ADDOpInfos[] = {
{ 0x191e8, "ATEST.f32", ADDTwoSrc, true },
{ 0x191f0, "ATEST.X.f16", ADDTwoSrc, true },
{ 0x191f8, "ATEST.Y.f16", ADDTwoSrc, true },
// store a varying given the descriptor
{ 0x19300, "ST_VAR.f32", ADDThreeSrc, true },
{ 0x19340, "ST_VAR.v2f32", ADDThreeSrc, true },
{ 0x19380, "ST_VAR.v3f32", ADDThreeSrc, true },
{ 0x193c0, "ST_VAR.v4f32", ADDThreeSrc, true },
// store a varying given the address and datatype from LD_VAR_ADDR
{ 0x19300, "ST_VAR.v1", ADDThreeSrc, true },
{ 0x19340, "ST_VAR.v2", ADDThreeSrc, true },
{ 0x19380, "ST_VAR.v3", ADDThreeSrc, true },
{ 0x193c0, "ST_VAR.v4", ADDThreeSrc, true },
// This takes the sample coverage mask (computed by ATEST above) as a
// regular argument, in addition to the vec4 color in the special register.
{ 0x1952c, "BLEND", ADDBlending, true },
......
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