On Sun, Nov 01, 2015 at 10:51:45AM +0100, Thomas Weinbrenner wrote:
> Thank you Jonathan.
>
> I just upgraded to #1556.
>
> X starts as fast as it should be. Acceleration doesn't work (fonts are
> not displayed, firefox doesn't display anything), but if I disable
> acceleration via xorg.conf everything is fine.
> I guess I have to wait for the next drm update to use hardware acceleration.
>
> One of the dmesg warnings disappeared, the other is still there.
The warning is due to a mistake in the Intel code. I will commit
a fix for that shortly.
With the following xenocara patch you should be able to use acceleration:
Index: driver/xf86-video-intel/src/sna/gen8_render.c
===================================================================
RCS file: /cvs/xenocara/driver/xf86-video-intel/src/sna/gen8_render.c,v
retrieving revision 1.3
diff -u -p -r1.3 gen8_render.c
--- driver/xf86-video-intel/src/sna/gen8_render.c 12 Apr 2015 19:42:06
-0000 1.3
+++ driver/xf86-video-intel/src/sna/gen8_render.c 9 Oct 2015 02:01:54
-0000
@@ -462,21 +462,21 @@ gen8_emit_urb(struct sna *sna)
{
/* num of VS entries must be divisible by 8 if size < 9 */
OUT_BATCH(GEN8_3DSTATE_URB_VS | (2 - 2));
- OUT_BATCH(1024 << URB_ENTRY_NUMBER_SHIFT |
+ OUT_BATCH(960 << URB_ENTRY_NUMBER_SHIFT |
(2 - 1) << URB_ENTRY_SIZE_SHIFT |
- 0 << URB_STARTING_ADDRESS_SHIFT);
+ 4 << URB_STARTING_ADDRESS_SHIFT);
OUT_BATCH(GEN8_3DSTATE_URB_HS | (2 - 2));
OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
- 0 << URB_STARTING_ADDRESS_SHIFT);
+ 4 << URB_STARTING_ADDRESS_SHIFT);
OUT_BATCH(GEN8_3DSTATE_URB_DS | (2 - 2));
OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
- 0 << URB_STARTING_ADDRESS_SHIFT);
+ 4 << URB_STARTING_ADDRESS_SHIFT);
OUT_BATCH(GEN8_3DSTATE_URB_GS | (2 - 2));
OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
- 0 << URB_STARTING_ADDRESS_SHIFT);
+ 4 << URB_STARTING_ADDRESS_SHIFT);
}
static void