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)
Showing the changes to include/uapi/drm (1 of 3 files). Show all
Unified · Split
| @@ -286,6 +286,7 @@ struct drm_vc4_get_hang_state { · 285 unmodified lines | ||
| 286 | 286 | #define DRM_VC4_PARAM_V3D_IDENT1 1 |
| 287 | 287 | #define DRM_VC4_PARAM_V3D_IDENT2 2 |
| 288 | 288 | #define DRM_VC4_PARAM_SUPPORTS_BRANCHES 3 |
| 289 | +#define DRM_VC4_PARAM_SUPPORTS_ETC1 4 | |
| 289 | 290 | |
| 290 | 291 | struct drm_vc4_get_param { |
| 291 | 292 | __u32 param; |