On Friday, October 23, 2015 4:27 PM, Chris Wilson wrote: > 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 Yepp, I'll rewrite this one. Thanks. > -- > Chris Wilson, Intel Open Source Technology Centre > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/intel-gfx ---------------------------------------------------------------------- Intel Sweden AB Registered Office: Isafjordsgatan 30B, 164 40 Kista, Stockholm, Sweden Registration Number: 556189-6027 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx