panfrost: Don't allocate SHARED as scanout

This is useless and might cause problems.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Extremely-acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16334>
This commit is contained in:
Alyssa Rosenzweig 2022-05-04 15:42:09 -04:00 committed by Marge Bot
parent f625c5a8a0
commit d6112acf18

View file

@ -637,8 +637,7 @@ panfrost_resource_create_with_modifier(struct pipe_screen *screen,
(bind & PIPE_BIND_SHADER_IMAGE) ? "Shader image" :
"Other resource";
if (dev->ro && (template->bind &
(PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_SCANOUT | PIPE_BIND_SHARED))) {
if (dev->ro && (template->bind & PIPE_BIND_SCANOUT)) {
struct winsys_handle handle;
struct pan_block_size blocksize = panfrost_block_size(modifier, template->format);