diff options
author | José Fonseca <[email protected]> | 2011-11-04 20:07:26 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-11-04 20:10:01 +0000 |
commit | 2df15d07c04e768b15c33e142502e70cf1bf4ace (patch) | |
tree | 43232ca5f8874c17c041ff5a9e47ced81570c310 | |
parent | 26ebf9c5e106962aa440586296b8fde76ef0c76a (diff) |
svga: Tighten the register file assertions.
Untested. But should fix fdo 42576.
-rw-r--r-- | src/gallium/drivers/svga/svga_tgsi_emit.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_emit.h b/src/gallium/drivers/svga/svga_tgsi_emit.h index 943433d9558..3f458eb09cf 100644 --- a/src/gallium/drivers/svga/svga_tgsi_emit.h +++ b/src/gallium/drivers/svga/svga_tgsi_emit.h @@ -264,8 +264,7 @@ dst_register( unsigned file, /* check values against bitfield sizes */ assert(number < (1 << 11)); - assert((file >> 3) < 4); - assert((file & 0x7) < 8); + assert(file <= SVGA3DREG_PREDICATE); dest.value = 0; dest.num = number; @@ -298,8 +297,7 @@ src_token( unsigned file, int number ) /* check values against bitfield sizes */ assert(number < (1 << 11)); - assert((file >> 3) < 4); - assert((file & 0x7) < 8); + assert(file <= SVGA3DREG_PREDICATE); src.value = 0; src.num = number; |