[igt-dev] [PATCH i-g-t 1/7] lib: intel: add a new macro for number of register to MI_LRI
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu Jun 14 10:32:46 UTC 2018
To be reuse in the following commits.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
lib/intel_reg.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/intel_reg.h b/lib/intel_reg.h
index f85fb742..c2330411 100644
--- a/lib/intel_reg.h
+++ b/lib/intel_reg.h
@@ -2569,7 +2569,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW (1<<1)
#define MI_LOAD_SCAN_LINES_INCL (0x12<<23)
-#define MI_LOAD_REGISTER_IMM ((0x22 << 23) | 1)
+#define MI_LOAD_REGISTER_IMM_n(n) ((0x22 << 23) | (2 * (n) - 1))
+#define MI_LOAD_REGISTER_IMM MI_LOAD_REGISTER_IMM_n(1)
/* Flush */
#define MI_FLUSH (0x04<<23)
--
2.17.1
More information about the igt-dev
mailing list