* [PATCH] sna: Use VMask in 3DSTATE_PS
@ 2014-11-05 23:48 Rodrigo Vivi
2014-11-06 6:22 ` Timo Aaltonen
0 siblings, 1 reply; 3+ messages in thread
From: Rodrigo Vivi @ 2014-11-05 23:48 UTC (permalink / raw)
To: intel-gfx; +Cc: Gary Wang, 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 <tjaalton@ubuntu.com>
Cc: Gary Wang <gary.c.wang@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
src/sna/gen8_render.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c
index d375753..ac22808 100644
--- a/src/sna/gen8_render.c
+++ b/src/sna/gen8_render.c
@@ -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 |
--
1.9.3
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] sna: Use VMask in 3DSTATE_PS
2014-11-05 23:48 [PATCH] sna: Use VMask in 3DSTATE_PS Rodrigo Vivi
@ 2014-11-06 6:22 ` Timo Aaltonen
2014-11-06 10:44 ` Chris Wilson
0 siblings, 1 reply; 3+ messages in thread
From: Timo Aaltonen @ 2014-11-06 6:22 UTC (permalink / raw)
To: Rodrigo Vivi, intel-gfx; +Cc: Gary Wang
On 06.11.2014 01:48, Rodrigo Vivi wrote:
> 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 <tjaalton@ubuntu.com>
> Cc: Gary Wang <gary.c.wang@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
works great, thanks!
Tested-by: Timo Aaltonen <timo.aaltonen@canonical.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sna: Use VMask in 3DSTATE_PS
2014-11-06 6:22 ` Timo Aaltonen
@ 2014-11-06 10:44 ` Chris Wilson
0 siblings, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2014-11-06 10:44 UTC (permalink / raw)
To: Timo Aaltonen; +Cc: intel-gfx, Gary Wang, Rodrigo Vivi
On Thu, Nov 06, 2014 at 08:22:54AM +0200, Timo Aaltonen wrote:
> On 06.11.2014 01:48, Rodrigo Vivi wrote:
> > 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 <tjaalton@ubuntu.com>
> > Cc: Gary Wang <gary.c.wang@intel.com>
> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> works great, thanks!
>
> Tested-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Thanks for finding that and testing,
Pushed.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-06 10:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05 23:48 [PATCH] sna: Use VMask in 3DSTATE_PS Rodrigo Vivi
2014-11-06 6:22 ` Timo Aaltonen
2014-11-06 10:44 ` Chris Wilson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.