projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fe19bc
)
i965: use BRW_MAX_GRF, BRW_MAX_MRF
author
Brian Paul
<brianp@vmware.com>
Tue, 30 Jun 2009 22:36:11 +0000
(16:36 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 30 Jun 2009 23:12:44 +0000
(17:12 -0600)
src/mesa/drivers/dri/i965/brw_eu.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_eu.h
b/src/mesa/drivers/dri/i965/brw_eu.h
index 3ee56fe1b6c0657e651ac8a832c2c7eeb9a80ea1..b7116d45f531206d276dae67cb322e29f32a471b 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_eu.h
+++ b/
src/mesa/drivers/dri/i965/brw_eu.h
@@
-171,9
+171,9
@@
static INLINE struct brw_reg brw_reg( GLuint file,
{
struct brw_reg reg;
if (type == BRW_GENERAL_REGISTER_FILE)
- assert(nr <
128
);
+ assert(nr <
BRW_MAX_GRF
);
else if (type == BRW_MESSAGE_REGISTER_FILE)
- assert(nr <
9
);
+ assert(nr <
BRW_MAX_MRF
);
else if (type == BRW_ARCHITECTURE_REGISTER_FILE)
assert(nr <= BRW_ARF_IP);
@@
-538,6
+538,7
@@
static INLINE struct brw_reg brw_mask_reg( GLuint subnr )
static INLINE struct brw_reg brw_message_reg( GLuint nr )
{
+ assert(nr < BRW_MAX_MRF);
return brw_vec8_reg(BRW_MESSAGE_REGISTER_FILE,
nr,
0);