Commit d3e4c3aa authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Disable AVX optimizations for 32-bit composite ops in Krita 4.2

They cause artifacts and we don't have a fix yet :(

CCBUG:404133
parent bc0a4b9d
...@@ -94,9 +94,19 @@ template<> ...@@ -94,9 +94,19 @@ template<>
struct OptimizedOpsSelector<KoRgbF32Traits> struct OptimizedOpsSelector<KoRgbF32Traits>
{ {
static KoCompositeOp* createAlphaDarkenOp(const KoColorSpace *cs) { static KoCompositeOp* createAlphaDarkenOp(const KoColorSpace *cs) {
return useCreamyAlphaDarken() ?
KoOptimizedCompositeOpFactory::createAlphaDarkenOpCreamy128(cs) : // TODO: optimized code is disabled for 4.2 release,
KoOptimizedCompositeOpFactory::createAlphaDarkenOpHard128(cs); // becasue it causes bug https://bugs.kde.org/show_bug.cgi?id=404133
if (useCreamyAlphaDarken()) {
return new KoCompositeOpAlphaDarken<KoRgbF32Traits, KoAlphaDarkenParamsWrapperCreamy>(cs);
} else {
return new KoCompositeOpAlphaDarken<KoRgbF32Traits, KoAlphaDarkenParamsWrapperHard>(cs);
}
// TODO: please restore this optimized version when the bug is fixed
// return useCreamyAlphaDarken() ?
// KoOptimizedCompositeOpFactory::createAlphaDarkenOpCreamy128(cs) :
// KoOptimizedCompositeOpFactory::createAlphaDarkenOpHard128(cs);
} }
static KoCompositeOp* createOverOp(const KoColorSpace *cs) { static KoCompositeOp* createOverOp(const KoColorSpace *cs) {
return KoOptimizedCompositeOpFactory::createOverOp128(cs); return KoOptimizedCompositeOpFactory::createOverOp128(cs);
......
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