drm/vc4: Add support for rendering with ETC1 textures.
authorEric Anholt <eric@anholt.net>
Fri, 4 Nov 2016 01:53:10 +0000 (18:53 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:00:14 +0000 (01:00 +0000)
commit12763e74dc331f56fee0ccf866c3ae703c7ea40f
tree1d30865972bbcee607c4efeeb91db20c83b7aa2d
parente2ffc4c9a7d72add8e9268ea44035b1edcbdc74e
drm/vc4: Add support for rendering with ETC1 textures.

The validation for it ends up being quite simple, but I hadn't got
around to it before merging the driver.  For backwards compatibility,
we also need to add a flag so that the userspace GL driver can easily
tell if the kernel will allow ETC1 textures (on an old kernel, it will
continue to convert to RGBA8)

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 7154d76fedf549607afbc0d13db9aaf02da5cebf)
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_validate.c
include/uapi/drm/vc4_drm.h