tegra: Fix scanout resources without modifiers
authorThierry Reding <treding@nvidia.com>
Thu, 15 Mar 2018 20:59:02 +0000 (21:59 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 29 May 2018 14:48:34 +0000 (16:48 +0200)
commit9603d81df05105857b676f20dff964ef3ab0ecff
tree52ce134ff73bd91e184a0578e39aadcdfcaa51ec
parentbd3e97e5aad7800b8e17ed10d34a070926691945
tegra: Fix scanout resources without modifiers

Resources created for scanout but without modifiers need to be treated
as pitch-linear. This is because applications that don't use modifiers
to create resources must be assumed to not understand modifiers and in
turn won't be able to create a DRM framebuffer and passing along which
modifiers were picked by the implementation.

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