gallium: remove TGSI opcode DP2A

From Mesa 86e6f7a73bdbced24e10fb80fdcba591e0568120

Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Elie Tournier 6 years ago committed by Dave Airlie
parent 69a9443c38
commit d559aa4675
  1. 2
      src/gallium/auxiliary/tgsi/tgsi_info.c
  2. 1
      src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h
  3. 4
      src/gallium/auxiliary/tgsi/tgsi_util.c
  4. 1
      src/gallium/include/pipe/p_shader_tokens.h

@ -58,7 +58,7 @@ static const struct tgsi_opcode_info opcode_info[TGSI_OPCODE_LAST] =
{ 1, 3, 0, 0, 0, 0, COMP, "LRP", TGSI_OPCODE_LRP }, { 1, 3, 0, 0, 0, 0, COMP, "LRP", TGSI_OPCODE_LRP },
{ 1, 3, 0, 0, 0, 0, COMP, "FMA", TGSI_OPCODE_FMA }, { 1, 3, 0, 0, 0, 0, COMP, "FMA", TGSI_OPCODE_FMA },
{ 1, 1, 0, 0, 0, 0, REPL, "SQRT", TGSI_OPCODE_SQRT }, { 1, 1, 0, 0, 0, 0, REPL, "SQRT", TGSI_OPCODE_SQRT },
{ 1, 3, 0, 0, 0, 0, REPL, "DP2A", TGSI_OPCODE_DP2A }, { 1, 3, 0, 0, 0, 0, REPL, "", 21 }, /* removed */
{ 0, 0, 0, 0, 0, 0, NONE, "", 22 }, /* removed */ { 0, 0, 0, 0, 0, 0, NONE, "", 22 }, /* removed */
{ 0, 0, 0, 0, 0, 0, NONE, "", 23 }, /* removed */ { 0, 0, 0, 0, 0, 0, NONE, "", 23 }, /* removed */
{ 1, 1, 0, 0, 0, 0, COMP, "FRC", TGSI_OPCODE_FRC }, { 1, 1, 0, 0, 0, 0, COMP, "FRC", TGSI_OPCODE_FRC },

@ -76,7 +76,6 @@ OP13(MAD)
OP12(SUB) OP12(SUB)
OP13(LRP) OP13(LRP)
OP11(SQRT) OP11(SQRT)
OP13(DP2A)
OP11(FRC) OP11(FRC)
OP11(FLR) OP11(FLR)
OP11(ROUND) OP11(ROUND)

@ -262,10 +262,6 @@ tgsi_util_get_inst_usage_mask(const struct tgsi_full_instruction *inst,
read_mask = write_mask & TGSI_WRITEMASK_XYZ ? TGSI_WRITEMASK_X : 0; read_mask = write_mask & TGSI_WRITEMASK_XYZ ? TGSI_WRITEMASK_X : 0;
break; break;
case TGSI_OPCODE_DP2A:
read_mask = src_idx == 2 ? TGSI_WRITEMASK_X : TGSI_WRITEMASK_XY;
break;
case TGSI_OPCODE_DP2: case TGSI_OPCODE_DP2:
read_mask = TGSI_WRITEMASK_XY; read_mask = TGSI_WRITEMASK_XY;
break; break;

@ -351,7 +351,6 @@ struct tgsi_property_data {
#define TGSI_OPCODE_LRP 18 #define TGSI_OPCODE_LRP 18
#define TGSI_OPCODE_FMA 19 #define TGSI_OPCODE_FMA 19
#define TGSI_OPCODE_SQRT 20 #define TGSI_OPCODE_SQRT 20
#define TGSI_OPCODE_DP2A 21
/* gap */ /* gap */
#define TGSI_OPCODE_FRC 24 #define TGSI_OPCODE_FRC 24
/* gap */ /* gap */

Loading…
Cancel
Save