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)
committerEric Anholt <eric@anholt.net>
Fri, 4 Nov 2016 01:55:46 +0000 (18:55 -0700)
commit7154d76fedf549607afbc0d13db9aaf02da5cebf
tree293a38135a214f039c88351724c3605b988afb31
parent457e67a728696c4f8e6423c64e93def50530db9a
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>
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_validate.c
include/uapi/drm/vc4_drm.h