mesa: Remove PROG_EMIT_VERTEX and PROG_END_PRIMITIVE opcodes.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Oct 2012 18:45:00 +0000 (11:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Nov 2012 08:00:46 +0000 (00:00 -0800)
These were only used for geometry shader support back in the days before
the new GLSL compiler.  Future geometry shader support will not use
these.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/program/prog_instruction.c
src/mesa/program/prog_instruction.h
src/mesa/program/prog_print.c
src/mesa/state_tracker/st_mesa_to_tgsi.c

index 0bd45b09bab1aeb3537c8f5171e1ea42469d0732..ab93932ef0cf433d14fcb01abc4d8b0097a4457e 100644 (file)
@@ -171,9 +171,7 @@ static const struct instruction_info InstInfo[MAX_OPCODE] = {
    { OPCODE_DPH,    "DPH",     2, 1 },
    { OPCODE_DST,    "DST",     2, 1 },
    { OPCODE_ELSE,   "ELSE",    0, 0 },
-   { OPCODE_EMIT_VERTEX,   "EMIT_VERTEX",    0, 0 },
    { OPCODE_END,    "END",     0, 0 },
-   { OPCODE_END_PRIMITIVE,    "END_PRIMITIVE",     0, 0 },
    { OPCODE_ENDIF,  "ENDIF",   0, 0 },
    { OPCODE_ENDLOOP,"ENDLOOP", 0, 0 },
    { OPCODE_ENDSUB, "ENDSUB",  0, 0 },
index 8bb0c6541ba0a1581c554455b95717fdaca47063..a7bba75f1faaea804a7462eda4dd21202e542764 100644 (file)
@@ -165,9 +165,7 @@ typedef enum prog_opcode {
    OPCODE_DPH,       /*   X        X       1.1                   */
    OPCODE_DST,       /*   X        X       X       X             */
    OPCODE_ELSE,      /*                                     opt  */
-   OPCODE_EMIT_VERTEX,/*                                     X   */
    OPCODE_END,       /*   X        X       X       X        opt  */
-   OPCODE_END_PRIMITIVE,/*                                   X   */
    OPCODE_ENDIF,     /*                                     opt  */
    OPCODE_ENDLOOP,   /*                                     opt  */
    OPCODE_ENDSUB,    /*                                     opt  */
index dbaa4d01761655436b992c3f4c3ba68bf2dd982e..7e7e081f76b4788e707a8c9a90b8670cd71ca009 100644 (file)
@@ -810,12 +810,6 @@ _mesa_fprint_instruction_opt(FILE *f,
          fprintf(f, "# %s\n", inst->Comment);
       }
       break;
-   case OPCODE_EMIT_VERTEX:
-      fprintf(f, "EMIT_VERTEX\n");
-      break;
-   case OPCODE_END_PRIMITIVE:
-      fprintf(f, "END_PRIMITIVE\n");
-      break;
    /* XXX may need other special-case instructions */
    default:
       if (inst->Opcode < MAX_OPCODE) {
index 0acab4340a0466677e429f39c2698e74b9ae474f..0822be7571c69ac5f0b0ea70aa5e8c446f7fb1c1 100644 (file)
@@ -563,10 +563,6 @@ translate_opcode( unsigned op )
       return TGSI_OPCODE_DST;
    case OPCODE_ELSE:
       return TGSI_OPCODE_ELSE;
-   case OPCODE_EMIT_VERTEX:
-      return TGSI_OPCODE_EMIT;
-   case OPCODE_END_PRIMITIVE:
-      return TGSI_OPCODE_ENDPRIM;
    case OPCODE_ENDIF:
       return TGSI_OPCODE_ENDIF;
    case OPCODE_ENDLOOP: