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:
Eric Anholt
2019-02-13 11:59:10 -08:00
parent 339155122b
commit 4586f9f902
5 changed files with 18 additions and 14 deletions

View File

@@ -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.