[Intel-gfx] [PATCH] drm/i915: Add extra plane information in debugfs.

Chris Wilson chris at chris-wilson.co.uk
Fri Oct 23 07:27:14 PDT 2015


On Fri, Oct 23, 2015 at 04:24:25PM +0200, Robert Fekete wrote:
> +static const char *plane_rotation(unsigned int rotation)
> +{
> +	switch (rotation) {
> +	case DRM_ROTATE_0:
> +		return "0";
> +	case DRM_ROTATE_90:
> +		return "90";
> +	case DRM_ROTATE_180:
> +		return "180";
> +	case DRM_ROTATE_270:
> +		return "270";
> +	case DRM_REFLECT_X:
> +		return "FLIP X";
> +	case DRM_REFLECT_Y:
> +		return "FLIP Y";
> +	default:
> +		MISSING_CASE(rotation);
> +		return "unknown";
> +	}

Note you can have DRM_ROTATE_foo | DRM_REFLECT_bar.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list