Skip to contentSkip to conversation

sna: Use VMask in 3DSTATE_PS

PATCH In review Rodrigo Vivi 3 participants 3 messages Nov 5, 2014 – Nov 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Reference: https://bugs.freedesktop.org/show_bug.cgi?id=83207

Cc Timo Aaltonen <[email protected]>
Cc Gary Wang <[email protected]>
---
 src/sna/gen8_render.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/sna/gen8_render.c +1 -1
index d375753..ac22808 100644
@@ -954,7 +954,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 |
Signature · 6 lines
1.9.3

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Tested-by on v1 1/1
#1 lore raw
Quoted 10 lines · Rodrigo Vivi

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.

Reference: https://bugs.freedesktop.org/show_bug.cgi?id=83207

Cc Timo Aaltonen <[email protected]>
Cc Gary Wang <[email protected]>

works great, thanks!

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw
Quoted 7 lines · Timo Aaltonen
Quoted 6 lines · Rodrigo Vivi

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.

Quoted 8 lines
Quoted 4 lines

Reference: https://bugs.freedesktop.org/show_bug.cgi?id=83207

Cc Timo Aaltonen <[email protected]>
Cc Gary Wang <[email protected]>

works great, thanks!

Thanks for finding that and testing,
Pushed.
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx