mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
dlist: remove OPCODE_EXT_0
This should have been removed in bb108bdec7 ("dlist: remove ListExt feature")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11493>
This commit is contained in:
parent
2e9c8d9dc3
commit
c731928cf4
1 changed files with 8 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue