Commit fae8e66d authored by Frank Barchard's avatar Frank Barchard

Fix for AVX2 dither function.

Fix for 64 bit gcc parameter in dither function which requires m not r,
when ABI uses register.

BUG=none

Review URL: https://codereview.chromium.org/1399463002 .
parent 8f0caded
......@@ -566,7 +566,7 @@ void ARGBToRGB565DitherRow_SSE2(const uint8* src, uint8* dst,
: "+r"(src), // %0
"+r"(dst), // %1
"+r"(pix) // %2
: "rm"(dither4) // %3
: "m"(dither4) // %3
: "memory", "cc",
"xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"
);
......@@ -610,7 +610,7 @@ void ARGBToRGB565DitherRow_AVX2(const uint8* src, uint8* dst,
: "+r"(src), // %0
"+r"(dst), // %1
"+r"(pix) // %2
: "rm"(dither4) // %3
: "m"(dither4) // %3
: "memory", "cc",
"xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment