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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx