panfrost: Combine has_afbc/tiled in layout enum
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 7 Mar 2019 03:52:20 +0000 (03:52 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 12 Mar 2019 02:37:41 +0000 (02:37 +0000)
commit536bcaa68ffb2b6f939cda4477929f5c3ff55a8c
tree305d7b37d03b9321893995bf7de51a66ba78d676
parentd93c5c314882ea2d5befb6cb14bc8062e57dc703
panfrost: Combine has_afbc/tiled in layout enum

AFBC, tiled, and linear BO layouts are mutually exclusive; they should
be coupled via a single enum rather than ad hoc checks of booleans.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Tomeu Vizoso <tomeu.visozo@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_resource.c
src/gallium/drivers/panfrost/pan_resource.h