Skip to content
Snippets Groups Projects
Commit 7d6478cf authored by Brian Paul's avatar Brian Paul
Browse files

i965: more register number assertions

parent a10ec131
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment