sna: Add a DBG option to control native rotations for testing

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-07-16 10:16:07 +01:00
parent 2c5063938c
commit b549b4fd38
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,8 @@ struct local_mode_obj_get_properties {
#define __DBG(x)
#endif
#define DBG_NATIVE_ROTATION ~0 /* minimum RR_Rotate_0 */
extern XF86ConfigPtr xf86configptr;
struct sna_cursor {
@ -2832,6 +2834,8 @@ static int plane_details(struct sna *sna, struct plane *p)
}
}
p->rotation.supported &= DBG_NATIVE_ROTATION;
if (props != (uint32_t *)stack_props)
free(props);