mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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.
This commit is contained in:
parent
f72820c851
commit
bd09bb1629
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue