diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-05-29 21:33:12 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-31 20:35:38 +0100 |
commit | 9c281c62dd8cd40913fd21ec5857bb55624fed8e (patch) | |
tree | 159fbb087a16e781ebf5a922325cf8b8d24949a4 /src/sna/sna.h | |
parent | d2a21702bde1d368177b5ead977b1fa9e078f25e (diff) |
sna/video/sprite: Query planes for RGB565
Not all sprite planes support RGB565. Insrtead of hardcoding which
platforms have it let's ask the kernel instead.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index 6fe1f0d2..496460ca 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -636,6 +636,7 @@ extern bool sna_crtc_set_sprite_rotation(xf86CrtcPtr crtc, unsigned idx, uint32_ extern void sna_crtc_set_sprite_colorspace(xf86CrtcPtr crtc, unsigned idx, int colorspace); extern uint32_t sna_crtc_to_sprite(xf86CrtcPtr crtc, unsigned idx); extern bool sna_crtc_is_transformed(xf86CrtcPtr crtc); +bool sna_has_sprite_format(struct sna *sna, uint32_t format); #define CRTC_VBLANK 0x7 #define CRTC_ON 0x80000000 |