i965: Support accelerated blit for depth 30 formats. (v2)

Graphics / Mesa 3D Graphics Library / Mesa - Mario Kleiner [gmail.com] - 3 January 2018 21:57 EST

Extend intel_miptree_blit() to handle at least ARGB2101010 -> XRGB2101010, ARGB2101010 -> ARGB2101010, and XRGB2101010 -> XRGB2101010 via the BLT engine, but not XRGB2101010 -> ARGB2101010 yet.

This works as tested under Compiz, KDE-5, Gnome-Shell.

v2: Restrict BLT fast path to exclude XRGB2101010 -> ARGB2101010, as intel_miptree_set_alpha_to_one() isn't ready to set 2 bit alpha channels to 1.0 yet. However, couldn't find a test case where this specific blit would be needed, so maybe not much of a point to improve here.

26c4d804ff i965: Support accelerated blit for depth 30 formats. (v2)
src/mesa/drivers/dri/i965/intel_blit.c | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share