#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)
/* Flush */
#define MI_FLUSH (0x04<<23)
#define MI_ARB_ON_OFF (0x8 << 23)
#define MI_DISPLAY_FLIP ((0x14 << 23) | 1)
-#define MI_LOAD_REGISTER_IMM ((0x22 << 23) | 1)
#define GFX_OP_PIPE_CONTROL ((0x3<<29)|(0x3<<27)|(0x2<<24)|2)
#define PIPE_CONTROL_QW_WRITE (1<<14)
* should fail if the non-secure handling works correctly.
*/
-#define MI_LOAD_REGISTER_IMM (0x22<<23)
-
static int num_rings = 1;
static void
int ring = random() % num_rings + 1;
BEGIN_BATCH(4, 0);
- OUT_BATCH(MI_LOAD_REGISTER_IMM | 1);
+ OUT_BATCH(MI_LOAD_REGISTER_IMM);
OUT_BATCH(0x203c); /* RENDER RING CTL */
OUT_BATCH(0); /* try to stop the ring */
OUT_BATCH(MI_NOOP);
return NULL;
}
-#define MI_LOAD_REGISTER_IMM (0x22<<23)
#define MI_STORE_REGISTER_MEM (0x24<<23)
igt_simple_main
struct drm_i915_gem_exec_object2 exec[2];
struct drm_i915_gem_relocation_entry reloc[2];
uint32_t b[] = {
- MI_LOAD_REGISTER_IMM | 1,
+ MI_LOAD_REGISTER_IMM,
FORCEWAKE_MT,
2 << 16 | 2,
MI_STORE_REGISTER_MEM | 1,
FORCEWAKE_MT,
0, // to be patched
- MI_LOAD_REGISTER_IMM | 1,
+ MI_LOAD_REGISTER_IMM,
FORCEWAKE_MT,
2 << 16,
MI_STORE_REGISTER_MEM | 1,