mesa: Use assert() instead of ASSERT wrapper.
Acked-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -2333,11 +2333,11 @@ 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);
|
||||
assert(index >= minIndex);
|
||||
(void) minIndex;
|
||||
ASSERT(index <= maxIndex);
|
||||
assert(index <= maxIndex);
|
||||
(void) maxIndex;
|
||||
ASSERT(file == PROGRAM_TEMPORARY ||
|
||||
assert(file == PROGRAM_TEMPORARY ||
|
||||
file == PROGRAM_ADDRESS ||
|
||||
file == PROGRAM_OUTPUT);
|
||||
memset(r, 0, sizeof(*r));
|
||||
@@ -2375,10 +2375,10 @@ set_src_reg_swz(struct asm_src_register *r, gl_register_file file, GLint index,
|
||||
{
|
||||
const GLint maxIndex = (1 << INST_INDEX_BITS) - 1;
|
||||
const GLint minIndex = -(1 << INST_INDEX_BITS);
|
||||
ASSERT(file < PROGRAM_FILE_MAX);
|
||||
ASSERT(index >= minIndex);
|
||||
assert(file < PROGRAM_FILE_MAX);
|
||||
assert(index >= minIndex);
|
||||
(void) minIndex;
|
||||
ASSERT(index <= maxIndex);
|
||||
assert(index <= maxIndex);
|
||||
(void) maxIndex;
|
||||
memset(r, 0, sizeof(*r));
|
||||
r->Base.File = file;
|
||||
|
Reference in New Issue
Block a user