diff options
author | Eric Anholt <[email protected]> | 2019-01-15 12:47:02 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-01-16 16:28:41 -0800 |
commit | d70eb2302b0594c2d097fd857a8bf83f45d05ddc (patch) | |
tree | f7c11323735c7f0184af7cca14eaff51ab2c36fc /src/gallium/drivers/v3d/v3d_resource.c | |
parent | cb527d2c4c813d787a9ab79c973c067f87c5de1a (diff) |
v3d: If the modifier is not known on BO import, default to linear for RO.
Part of fixing DRI3 rendering with RO on X11.
Fixes: e113b21cb779 ("v3d: Add renderonly support.")
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_resource.c')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_resource.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c index d95abaa8fd4..c0688d60cee 100644 --- a/src/gallium/drivers/v3d/v3d_resource.c +++ b/src/gallium/drivers/v3d/v3d_resource.c @@ -814,9 +814,11 @@ v3d_resource_from_handle(struct pipe_screen *pscreen, rsc->tiled = false; break; case DRM_FORMAT_MOD_BROADCOM_UIF: - case DRM_FORMAT_MOD_INVALID: rsc->tiled = true; break; + case DRM_FORMAT_MOD_INVALID: + rsc->tiled = screen->ro == NULL; + break; default: fprintf(stderr, "Attempt to import unsupported modifier 0x%llx\n", |