diff options
author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2014-11-05 15:48:14 -0800 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-11-06 10:43:17 +0000 |
commit | 97fe3c1c860978c7a649cba93a55fa497010ccc1 (patch) | |
tree | 9efa9ac5c823ef6ad5d7e3a7d7e7392434a454dd /src/sna/gen8_render.c | |
parent | 0532a3313ad9c76a6e1d28e8a1c2ea495583fead (diff) |
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 <tjaalton@ubuntu.com>
Cc: Gary Wang <gary.c.wang@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Tested-by: Timo Aaltonen <tjaalton@ubuntu.com>
Diffstat (limited to 'src/sna/gen8_render.c')
-rw-r--r-- | src/sna/gen8_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |