dlist: remove OPCODE_EXT_0
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 15 Jun 2021 10:14:22 +0000 (12:14 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 9 Jul 2021 10:05:46 +0000 (10:05 +0000)
This should have been removed in bb108bdec73 ("dlist: remove ListExt feature")

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11493>

src/mesa/main/dlist.c

index e8572ec..94c7c76 100644 (file)
@@ -635,8 +635,7 @@ typedef enum
    OPCODE_ERROR,                /* raise compiled-in error */
    OPCODE_CONTINUE,
    OPCODE_NOP,                  /* No-op (used for 8-byte alignment */
-   OPCODE_END_OF_LIST,
-   OPCODE_EXT_0
+   OPCODE_END_OF_LIST
 } OpCode;
 
 
@@ -1535,15 +1534,13 @@ dlist_alloc(struct gl_context *ctx, OpCode opcode, GLuint bytes, bool align8)
 
    assert(bytes <= BLOCK_SIZE * sizeof(Node));
 
-   if (opcode < OPCODE_EXT_0) {
-      if (InstSize[opcode] == 0) {
-         /* save instruction size now */
-         InstSize[opcode] = numNodes;
-      }
-      else {
-         /* make sure instruction size agrees */
-         assert(numNodes == InstSize[opcode]);
-      }
+   if (InstSize[opcode] == 0) {
+      /* save instruction size now */
+      InstSize[opcode] = numNodes;
+   }
+   else {
+      /* make sure instruction size agrees */
+      assert(numNodes == InstSize[opcode]);
    }
 
    if (sizeof(void *) > sizeof(Node) && align8