summaryrefslogtreecommitdiff
path: root/lib/rendercopy_gen8.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-07-03 16:36:12 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-07-03 22:23:00 +0100
commitaeb3f4143572b81a907921ad9442858aafe1931e (patch)
tree21eee18df61e007eed6cd7eabe8173796b654664 /lib/rendercopy_gen8.c
parent199220052af977598033d3810ffb4cc32d377522 (diff)
lib/rendercopy: Use gen8_wm_kernel__affine
The shaders/blit.g7a has weird artefacts (random pixel kill) when drawing to an odd destination coordinate. Rather than debug the issue with the asm/assembler, replace the kernel with the one used by SNA for simple copies. Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Tested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> #chv, skl Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/rendercopy_gen8.c')
-rw-r--r--lib/rendercopy_gen8.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c
index 2b5d9b52..7dd7cc47 100644
--- a/lib/rendercopy_gen8.c
+++ b/lib/rendercopy_gen8.c
@@ -51,12 +51,10 @@ struct {
/* see shaders/ps/blit.g7a */
static const uint32_t ps_kernel[][4] = {
#if 1
- { 0x0060005a, 0x21403ae8, 0x3a0000c0, 0x008d0040 },
- { 0x0060005a, 0x21603ae8, 0x3a0000c0, 0x008d0080 },
- { 0x0060005a, 0x21803ae8, 0x3a0000d0, 0x008d0040 },
- { 0x0060005a, 0x21a03ae8, 0x3a0000d0, 0x008d0080 },
- { 0x02800031, 0x2e0022e8, 0x0e000140, 0x08840001 },
- { 0x05800031, 0x200022e0, 0x0e000e00, 0x90031000 },
+ { 0x0080005a, 0x2f403ae8, 0x3a0000c0, 0x008d0040 },
+ { 0x0080005a, 0x2f803ae8, 0x3a0000d0, 0x008d0040 },
+ { 0x02800031, 0x2e203a48, 0x0e8d0f40, 0x08840001 },
+ { 0x05800031, 0x20003a40, 0x0e8d0e20, 0x90031000 },
#else
/* Write all -1 */
{ 0x00600001, 0x2e000608, 0x00000000, 0x3f800000 },