mesa: Use assert() instead of ASSERT wrapper.

Acked-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Matt Turner
2015-02-20 20:18:47 -08:00
parent 52049f8fd8
commit bfcdb84383
131 changed files with 732 additions and 743 deletions

View File

@@ -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;