The red and blue color values in the output of our read_pixels_into function are sometimes swapped. We should revisit what is the expected format and what is the actual format the target Texture(image) has, and properly handle the cases where those differs. Some failing gecko reftests to reproduce this:
layout/reftests/image-element/element-paint-recursion.html [dx12]
layout/reftests/svg/filters/feDropShadow-01.svg
The result base64 images will have the wrong colors.
The red and blue color values in the output of our
read_pixels_into
function are sometimes swapped. We should revisit what is the expected format and what is the actual format the target Texture(image) has, and properly handle the cases where those differs. Some failing gecko reftests to reproduce this:layout/reftests/image-element/element-paint-recursion.html
[dx12]layout/reftests/svg/filters/feDropShadow-01.svg
The result base64 images will have the wrong colors.