i965: more register number assertions
This commit is contained in:
@@ -170,6 +170,13 @@ static INLINE struct brw_reg brw_reg( GLuint file,
|
||||
GLuint writemask )
|
||||
{
|
||||
struct brw_reg reg;
|
||||
if (type == BRW_GENERAL_REGISTER_FILE)
|
||||
assert(nr < 128);
|
||||
else if (type == BRW_MESSAGE_REGISTER_FILE)
|
||||
assert(nr < 9);
|
||||
else if (type == BRW_ARCHITECTURE_REGISTER_FILE)
|
||||
assert(nr <= BRW_ARF_IP);
|
||||
|
||||
reg.type = type;
|
||||
reg.file = file;
|
||||
reg.nr = nr;
|
||||
|
||||
Reference in New Issue
Block a user