etnaviv: rework etna_resource_create tiling choice
authorJonathan Marek <jonathan@marek.ca>
Wed, 24 Jul 2019 14:35:46 +0000 (10:35 -0400)
committerJonathan Marek <jonathan@marek.ca>
Fri, 11 Oct 2019 11:26:52 +0000 (07:26 -0400)
commit7e3b900c80bc9eb8c3c57337bf699d448a61c9ce
tree256c58bea666daef7ccace6beb58ce2aabf9268e
parentb9627765303356328c409cd59bef43d15f4eafcf
etnaviv: rework etna_resource_create tiling choice

Now that the base resource is allowed to be incompatible with PE, we can
make a smarter choice of tiling mode to avoid allocating a PE compatible
base that is never used for regular textures. This affects GPUs like GC2000
where there is no tiling compatible with both PE and TE.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c