tegra: Treat resources with modifiers as scanout
authorThierry Reding <treding@nvidia.com>
Wed, 4 Apr 2018 14:04:25 +0000 (16:04 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 29 May 2018 14:48:37 +0000 (16:48 +0200)
commit9e539012dfaa848fc4cfde83c3f3a83fee274ca4
tree235069029b566aa10c7b6796fd4536c114defbb5
parent9603d81df05105857b676f20dff964ef3ab0ecff
tegra: Treat resources with modifiers as scanout

Resources created with modifiers are treated as scanout because there is
no way for applications to specify the usage (though that capability may
be useful to have in the future). Currently all the resources created by
applications with modifiers are for scanout, so make sure they have bind
flags set accordingly.

This is necessary in order to properly export buffers for such resources
so that they can be shared with scanout hardware.

Tested-by: Daniel Kolesa <daniel@octaforge.org>
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Thierry Reding <treding@nvidia.com>
src/gallium/drivers/tegra/tegra_screen.c