mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
ARB prog parser: Silence unused variable warnings.
This commit is contained in:
parent
7df06e7e9d
commit
88bd32383a
1 changed files with 4 additions and 0 deletions
|
|
@ -2297,7 +2297,9 @@ set_dst_reg(struct prog_dst_register *r, gl_register_file file, GLint index)
|
|||
const GLint maxIndex = 1 << INST_INDEX_BITS;
|
||||
const GLint minIndex = 0;
|
||||
ASSERT(index >= minIndex);
|
||||
(void) minIndex;
|
||||
ASSERT(index <= maxIndex);
|
||||
(void) maxIndex;
|
||||
ASSERT(file == PROGRAM_TEMPORARY ||
|
||||
file == PROGRAM_ADDRESS ||
|
||||
file == PROGRAM_OUTPUT);
|
||||
|
|
@ -2338,7 +2340,9 @@ set_src_reg_swz(struct asm_src_register *r, gl_register_file file, GLint index,
|
|||
const GLint minIndex = -(1 << INST_INDEX_BITS);
|
||||
ASSERT(file < PROGRAM_FILE_MAX);
|
||||
ASSERT(index >= minIndex);
|
||||
(void) minIndex;
|
||||
ASSERT(index <= maxIndex);
|
||||
(void) maxIndex;
|
||||
memset(r, 0, sizeof(*r));
|
||||
r->Base.File = file;
|
||||
r->Base.Index = index;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue