mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
i965: more register number assertions
This commit is contained in:
parent
a10ec13143
commit
7d6478cfcc
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue