OSDN Git Service

virgl: do color-conversion during when mapping transfer
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 4 Apr 2019 09:55:24 +0000 (11:55 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 17 Apr 2019 07:27:08 +0000 (07:27 +0000)
commit3fdacf1c390b5281c9adb4fbfdacd2757023941c
treea1865dd1c26d704f06983aaece94f28f7373cd0f
parent9e9d9b352e7a87f42f4fb9117faaf8a350953a0c
virgl: do color-conversion during when mapping transfer

When running on OpenGL ES, we can't just map any format for reading,
because of limitations on glReadPixels. So let's fall back to the
blit code-path, and translate the pixels to the correct format in the
end.

This fixes the remaining failures of KHR-GL32.packed_pixels.* apart
from the sRGB tests.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/drivers/virgl/virgl_texture.c