On Thu, Jul 10, 2014 at 07:00:06PM +0100, Damien Lespiau wrote:
> +typedef enum {
> +     /* this maps to the kernel API */
> +     IGT_ROTATION_0   = 1 << 0,
> +     IGT_ROTATION_90  = 1 << 1,
> +     IGT_ROTATION_180 = 1 << 2,
> +     IGT_ROTATION_270 = 1 << 3,
> +} igt_rotation_t;

Should we also add the flip X/Y bits, even if we currently don't support
this in the kernel?
-Daniel

> +
>  #include "igt_fb.h"
>  
>  struct kmstest_connector_config {
> @@ -116,6 +124,7 @@ typedef struct {
>       unsigned int fb_changed       : 1;
>       unsigned int position_changed : 1;
>       unsigned int panning_changed  : 1;
> +     unsigned int rotation_changed : 1;
>       /*
>        * drm_plane can be NULL for primary and cursor planes (when not
>        * using the atomic modeset API)
> @@ -129,6 +138,7 @@ typedef struct {
>       int crtc_x, crtc_y;
>       /* panning offset within the fb */
>       unsigned int pan_x, pan_y;
> +     igt_rotation_t rotation;
>  } igt_plane_t;
>  
>  struct igt_pipe {
> @@ -184,6 +194,7 @@ static inline bool 
> igt_plane_supports_rotation(igt_plane_t *plane)
>  void igt_plane_set_fb(igt_plane_t *plane, struct igt_fb *fb);
>  void igt_plane_set_position(igt_plane_t *plane, int x, int y);
>  void igt_plane_set_panning(igt_plane_t *plane, int x, int y);
> +void igt_plane_set_rotation(igt_plane_t *plane, igt_rotation_t rotation);
>  
>  void igt_wait_for_vblank(int drm_fd, enum pipe pipe);
>  
> -- 
> 1.8.3.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to