mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02: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 )
|
GLuint writemask )
|
||||||
{
|
{
|
||||||
struct brw_reg reg;
|
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.type = type;
|
||||||
reg.file = file;
|
reg.file = file;
|
||||||
reg.nr = nr;
|
reg.nr = nr;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue