v3d: Add a helper function for getting a nop register.
Just a little refactor to explain what's going on with QFILE_NULL.
This commit is contained in:
@@ -105,6 +105,11 @@ static inline struct qreg vir_reg(enum qfile file, uint32_t index)
|
||||
return (struct qreg){file, index};
|
||||
}
|
||||
|
||||
static inline struct qreg vir_nop_reg(void)
|
||||
{
|
||||
return (struct qreg){QFILE_NULL, 0};
|
||||
}
|
||||
|
||||
/**
|
||||
* A reference to an actual register at the QPU level, for register
|
||||
* allocation.
|
||||
|
Reference in New Issue
Block a user