aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4/vc4_drv.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-11-03 18:53:10 -0700
committerEric Anholt <eric@anholt.net>2016-11-03 18:55:46 -0700
commit7154d76fedf549607afbc0d13db9aaf02da5cebf (patch)
tree293a38135a214f039c88351724c3605b988afb31 /drivers/gpu/drm/vc4/vc4_drv.c
parentdrm/vc4: Fix termination of the initial scan for branch targets. (diff)
downloadlinux-dev-7154d76fedf549607afbc0d13db9aaf02da5cebf.tar.xz
linux-dev-7154d76fedf549607afbc0d13db9aaf02da5cebf.zip
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>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.c')
-rw-r--r--drivers/gpu/drm/vc4/vc4_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
index 8703f56b7947..b087404c2784 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.c
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
@@ -78,6 +78,7 @@ static int vc4_get_param_ioctl(struct drm_device *dev, void *data,
pm_runtime_put(&vc4->v3d->pdev->dev);
break;
case DRM_VC4_PARAM_SUPPORTS_BRANCHES:
+ case DRM_VC4_PARAM_SUPPORTS_ETC1:
args->value = true;
break;
default: