aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_resource.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-01-14 10:39:43 -0800
committerEric Anholt <[email protected]>2019-01-14 15:40:55 -0800
commitbd09bb1629a73933aaa4d12b8226cbd8c5f6c34b (patch)
tree865378f13d267e9ec3b67d253a2730b0853a50b9 /src/gallium/drivers/v3d/v3d_resource.c
parentf72820c851858819b6abf28bd75494f3c4bb7057 (diff)
v3d: SHARED but not necessarily SCANOUT buffers on RO must be linear.
We don't have a way to talk to RO about modifiers it can do yet, so assume the minimum.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_resource.c')
-rw-r--r--src/gallium/drivers/v3d/v3d_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c
index fba1661cd3f..d95abaa8fd4 100644
--- a/src/gallium/drivers/v3d/v3d_resource.c
+++ b/src/gallium/drivers/v3d/v3d_resource.c
@@ -764,7 +764,7 @@ v3d_resource_create_with_modifiers(struct pipe_screen *pscreen,
* the modifiers to see if we're allocating a scanout object.
*/
if (screen->ro &&
- ((tmpl->bind & PIPE_BIND_SCANOUT) ||
+ ((tmpl->bind & (PIPE_BIND_SCANOUT | PIPE_BIND_SHARED)) ||
(count == 1 && modifiers[0] == DRM_FORMAT_MOD_LINEAR))) {
struct winsys_handle handle;
rsc->scanout =