Commit 551478a9 by Alexis Hetu Committed by Alexis Hétu

Fix for MSAN issues

Chromium's memory sanitizer doesn't work with JIT compiled code, so we have to skip blitReactor when using MSAN, otherwise most uses of glReadPixels() will cause MSAN to detect a false use-of-uninitialized-value, since it doesn't instrument the inside of JIT compiled code. Bug chromium:848035 chromium:860533 Change-Id: Idfa194ce0fcd41eb7acf7868cbcebfc04d598f5b Reviewed-on: https://swiftshader-review.googlesource.com/19808Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent e1fa9ea7
...@@ -141,10 +141,13 @@ namespace sw ...@@ -141,10 +141,13 @@ namespace sw
return; return;
} }
if(blitReactor(source, sourceRect, dest, destRect, options)) // The memory sanitizer doesn't work with JIT compiled code
{ #if !defined(MEMORY_SANITIZER)
return; if(blitReactor(source, sourceRect, dest, destRect, options))
} {
return;
}
#endif
SliceRectF sRect = sourceRect; SliceRectF sRect = sourceRect;
SliceRect dRect = destRect; SliceRect dRect = destRect;
......
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