Skip to content

Commit

Permalink
Merge pull request #50 from digetx/xv-16bit-framebuffer-support
Browse files Browse the repository at this point in the history
Xv 16bit framebuffer support
  • Loading branch information
digetx committed Jan 15, 2019
2 parents 419adb2 + 57a430f commit feac058
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/xv.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ static XF86ImageRec XvImages[] = {
};

static XF86VideoFormatRec XvFormats[] = {
{
.depth = 16,
.class = TrueColor,
},
{
.depth = 24,
.class = TrueColor,
Expand Down Expand Up @@ -572,10 +576,13 @@ static Bool TegraVideoOverlayInitialize(TegraVideoPtr priv, ScrnInfoPtr scrn,

res = drmModeGetResources(tegra->fd);
if (!res) {
return FALSE;
ErrorMsg("drmModeGetResources failed\n");
success = FALSE;
goto end;
}

if (overlay_id > res->count_crtcs) {
ErrorMsg("Invalid overlay_id %u:%u\n", overlay_id, res->count_crtcs);
success = FALSE;
goto end;
}
Expand Down Expand Up @@ -1315,8 +1322,10 @@ Bool TegraXvScreenInit(ScreenPtr pScreen)
if (!TegraXvGetDrmProps(scrn, priv))
goto err_free_adaptor;

if (!xf86XVScreenInit(pScreen, &xvAdaptor, 1))
if (!xf86XVScreenInit(pScreen, &xvAdaptor, 1)) {
ErrorMsg("xf86XVScreenInit failed\n");
goto err_free_adaptor;
}

xf86DrvMsg(scrn->scrnIndex, X_INFO, "XV adaptor initialized\n");

Expand Down

0 comments on commit feac058

Please sign in to comment.