allow DRM_FORMAT_MOD_LINEAR on nvidia
This commit is contained in:
parent
aff000aa05
commit
265c982409
1 changed files with 3 additions and 1 deletions
4
drm.c
4
drm.c
|
@ -376,7 +376,9 @@ int drm_vendors() {
|
|||
{
|
||||
if (check_pixfmt_non_vaapi()) return 1;
|
||||
printf("warn: nvidia card detected. Currently only x-tiled framebuffer is supported. Performance may suffer.\n");
|
||||
drm->funcs->convert = &convert_nvidia_x_tiled_kmsbuf;
|
||||
if (drm->mfb->modifier != DRM_FORMAT_MOD_NONE && drm->mfb->modifier != DRM_FORMAT_MOD_LINEAR) {
|
||||
drm->funcs->convert = &convert_nvidia_x_tiled_kmsbuf;
|
||||
}
|
||||
if (drm_kmsbuf_dumb()) return 1;
|
||||
}
|
||||
else if (strcmp(driver_name, "vmwgfx") == 0 ||
|
||||
|
|
Loading…
Reference in a new issue