From c731928cf435ca8a951bd98aef2bd3c39d412026 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 15 Jun 2021 12:14:22 +0200 Subject: [PATCH] dlist: remove OPCODE_EXT_0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should have been removed in bb108bdec73 ("dlist: remove ListExt feature") Reviewed-by: Marek Olšák Part-of: --- src/mesa/main/dlist.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index e8572ecf582..94c7c76139c 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -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