projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb527d2
)
v3d: If the modifier is not known on BO import, default to linear for RO.
author
Eric Anholt
<eric@anholt.net>
Tue, 15 Jan 2019 20:47:02 +0000
(12:47 -0800)
committer
Eric Anholt
<eric@anholt.net>
Thu, 17 Jan 2019 00:28:41 +0000
(16:28 -0800)
Part of fixing DRI3 rendering with RO on X11.
Fixes: e113b21cb779 ("v3d: Add renderonly support.")
src/gallium/drivers/v3d/v3d_resource.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/v3d/v3d_resource.c
b/src/gallium/drivers/v3d/v3d_resource.c
index d95abaa8fd4d8af0da0624787b76108a71f8a1ff..c0688d60ceefda2c3d937f3768f9d0c8ca515bab 100644
(file)
--- 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",