diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-20 11:44:23 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-20 11:58:37 +0100 |
commit | ebc5e9c3b2241be69bee7b96bd63ef00dacf816c (patch) | |
tree | bb0ca0889e12f8173b392bed057530aabaf2bb76 /src/sna/sna.h | |
parent | 52c9d7ca2467bc273a8ef3c61c1b690ac56caa74 (diff) |
sna/video: Create one XvAdapter for each sprite plane
The caveat here is that the sprite plane must be available on all CRTCs
so that the availability of the XvAdapter is not dependent upon output
configuration or Window placement.
Based on a patch by Michael Hadley <michaelx.hadley@intel.com>
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 033781e1..64bf498c 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -611,6 +611,7 @@ static inline void sna_present_vblank_handler(struct drm_event_vblank *event) { static inline void sna_present_cancel_flip(struct sna *sna) { } #endif +extern unsigned sna_crtc_count_sprites(xf86CrtcPtr crtc); extern bool sna_crtc_set_sprite_rotation(xf86CrtcPtr crtc, unsigned idx, uint32_t rotation); extern uint32_t sna_crtc_to_sprite(xf86CrtcPtr crtc, unsigned idx); extern bool sna_crtc_is_transformed(xf86CrtcPtr crtc); |