From 97fe3c1c860978c7a649cba93a55fa497010ccc1 Mon Sep 17 00:00:00 2001 From: Rodrigo Vivi Date: Wed, 5 Nov 2014 15:48:14 -0800 Subject: sna: Use VMask in 3DSTATE_PS Using dispatch mask cause hangs waiting PS Done on some cases like bug #83207, with larger screen or when scaling it. Also mesa uses VMask instead of Dmask for 3DSTATE_PS because in some cases they were getting incorrect derivatives for subspans. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83207 Cc: Timo Aaltonen Cc: Gary Wang Signed-off-by: Rodrigo Vivi Tested-by: Timo Aaltonen --- src/sna/gen8_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sna/gen8_render.c') diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c index 6deb6b5c..6eb11452 100644 --- a/src/sna/gen8_render.c +++ b/src/sna/gen8_render.c @@ -962,7 +962,7 @@ gen8_emit_wm(struct sna *sna, int kernel) OUT_BATCH(GEN8_3DSTATE_PS | (12 - 2)); OUT_BATCH64(kernels[0] ?: kernels[1] ?: kernels[2]); OUT_BATCH(1 << PS_SAMPLER_COUNT_SHIFT | - //PS_VECTOR_MASK_ENABLE | + PS_VECTOR_MASK_ENABLE | wm_kernels[kernel].num_surfaces << PS_BINDING_TABLE_ENTRY_COUNT_SHIFT); OUT_BATCH64(0); /* scratch address */ OUT_BATCH(PS_MAX_THREADS | -- cgit v1.2.3