Simple program to fill a rectangle with texture paint or gradient paint results in visual artifacts if XOR composite mode is set.
Looking at the debug log hints at this is implemented at java level to break down area into small tiles and call surface_to_sw blit.
As of now surface to sw blit is not implemented in Metal.
This bug needs to be checked after we implement it.
Also, I think, in metal, we can do it in shader.
In that case, we may need to diverge code paths for this workflow at java level.
Looking at the debug log hints at this is implemented at java level to break down area into small tiles and call surface_to_sw blit.
As of now surface to sw blit is not implemented in Metal.
This bug needs to be checked after we implement it.
Also, I think, in metal, we can do it in shader.
In that case, we may need to diverge code paths for this workflow at java level.
- relates to
-
JDK-8233226 Implement XOR Mode rendering option
- Resolved