Scanline wait hack for IVB
You need to set DE_RRMR (offset 0x44050) to unmask scanline waits, but this at least doesn't hang on my IVB.
However I still see tearing on my config, need to verify the pipe and inclusive/exclusive setting.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
src/i830_reg.h +20 -0
@@ -52,19 +52,39 @@/* Wait for Events */ #define MI_WAIT_FOR_EVENT (0x03<<23) +#define MI_WAIT_FOR_PIPEC_SVBLANK_SNB (1<<21) +#define MI_WAIT_FOR_PIPEB_SVBLANK_SNB (1<<11) +#define MI_WAIT_FOR_PIPEA_SVBLANK_SNB (1<<3)#define MI_WAIT_FOR_PIPEB_SVBLANK (1<<18)#define MI_WAIT_FOR_PIPEA_SVBLANK (1<<17)#define MI_WAIT_FOR_OVERLAY_FLIP (1<<16) +#define MI_WAIT_FOR_PIPEC_SCAN_LINE_WINDOW_SNB (1<<14)#define MI_WAIT_FOR_PIPEB_VBLANK (1<<7)#define MI_WAIT_FOR_PIPEB_SCAN_LINE_WINDOW (1<<5) +#define MI_WAIT_FOR_PIPEB_SCAN_LINE_WINDOW_SNB (1<<8)#define MI_WAIT_FOR_PIPEA_VBLANK (1<<3)#define MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW (1<<1) +#define MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW_SNB (1<<0)/* Set the scan line for MI_WAIT_FOR_PIPE?_SCAN_LINE_WINDOW */ #define MI_LOAD_SCAN_LINES_INCL (0x12<<23)#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEA (0)#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEB (0x1<<20) +#define MI_LOAD_SCAN_LINES_EXCL (0x13<<23) +#define MI_LOAD_SCAN_LINES_EXCL_PIPEA (0) +#define MI_LOAD_SCAN_LINES_EXCL_PIPEB (1<<19) +#define MI_LOAD_SCAN_LINES_EXCL_PIPEC (4<<19) + +#define _PIPE (pipe, a, b) ((a) + (pipe)*((b)-(a))) + +#define _DE_LOAD_SL_A 0x70068 +#define _DE_LOAD_SL_B 0x71068 +#define _DE_LOAD_SL_C 0x72068 +#define DE_LOAD_SL (pipe) _PIPE(pipe, _DE_LOAD_SL_A, _DE_LOAD_SL_B) + +#define MI_LOAD_REGISTER_IMM (0x22<<23 | 1) +/* BLT commands */ #define COLOR_BLT_CMD ((2<<29)|(0x40<<22)|(0x3))#define COLOR_BLT_WRITE_ALPHA (1<<21)
src/intel_dri.c +59 -0
65 lines not on this page · raw message
Quoted 5 lines · On Fri, 30 Mar 2012 13:30:17 -0700 Jesse Barnes <[email protected]>…
You need to set
DE_RRMR(offset0x44050) to unmask scanline waits, but this at least doesn't hang on my IVB.However I still see tearing on my config, need to verify the pipe and inclusive/exclusive setting.
So it looks like we can't use this on the BLT ring in SNB or IVB. So we'll need a render ring BLT routine to use here instead (hello SNA).
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
<#part sign=pgpmime>
Quoted 2 lines · Jesse Barnes
So it looks like we can't use this on the BLT ring in SNB or IVB. So we'll need a render ring BLT routine to use here instead (hello SNA).
Or a semaphore to block the render ring?
Signature · 1 line
[email protected]