diff options
Diffstat (limited to 'src/sna/sna_video_textured.c')
-rw-r--r-- | src/sna/sna_video_textured.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c index 81833960..95011939 100644 --- a/src/sna/sna_video_textured.c +++ b/src/sna/sna_video_textured.c @@ -312,7 +312,7 @@ void sna_video_textured_setup(struct sna *sna, ScreenPtr screen) { XvAdaptorPtr adaptor; struct sna_video *video; - int nports = 16, i; + int nports, i; if (!sna->render.video) { xf86DrvMsg(sna->scrn->scrnIndex, X_INFO, @@ -330,6 +330,12 @@ void sna_video_textured_setup(struct sna *sna, ScreenPtr screen) if (adaptor == NULL) return; + nports = 16; + if (sna->kgem.gen >= 060) + nports = 32; + if (sna->kgem.gen >= 0100) + nports = 64; + video = calloc(nports, sizeof(struct sna_video)); adaptor->pPorts = calloc(nports, sizeof(XvPortRec)); if (video == NULL || adaptor->pPorts == NULL) { @@ -339,7 +345,6 @@ void sna_video_textured_setup(struct sna *sna, ScreenPtr screen) return; } - adaptor->type = XvInputMask | XvImageMask; adaptor->pScreen = screen; adaptor->name = (char *)"Intel(R) Textured Video"; |