Only linear framebuffers supported as is

tight-png
Andri Yngvason 2019-08-29 14:02:29 +00:00 committed by Andri Yngvason
parent 33324c9373
commit 6d195dd484
1 changed files with 4 additions and 0 deletions

View File

@ -724,6 +724,10 @@ int nvnc_update_fb(struct nvnc *self, const struct nvnc_fb *fb,
{
int rc = -1;
/* TODO: Support some more tiling modes */
if (fb->fourcc_modifier != DRM_FORMAT_MOD_LINEAR)
return -1;
struct rfb_pixel_format server_fmt;
rfb_pixfmt_from_fourcc(&server_fmt, fb->fourcc_format);