projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26ebf9c
)
svga: Tighten the register file assertions.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 4 Nov 2011 20:07:26 +0000
(20:07 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 4 Nov 2011 20:10:01 +0000
(20:10 +0000)
Untested. But should fix fdo 42576.
src/gallium/drivers/svga/svga_tgsi_emit.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_tgsi_emit.h
b/src/gallium/drivers/svga/svga_tgsi_emit.h
index 943433d955813452bf7cc7b30300f49eeb61ec59..3f458eb09cf7306b3cd394ebd089e148dae5ddc3 100644
(file)
--- 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;