panfrost: Cleanup tiling selection logic
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 4 Jan 2020 18:00:50 +0000 (13:00 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 6 Jan 2020 12:49:53 +0000 (07:49 -0500)
commit32851ff71521d203c08e26b3198d96d0f6467bb5
tree7c22b3b545e634921682efd294e443ef1f53c35b
parentdadfca3775bf2c5086947ab63e64dc67d8e8373a
panfrost: Cleanup tiling selection logic

Make it a lot more obvious what we're doing and fix more than a few
corner cases in the process.

Fixes
dEQP-GLES3.functional.buffer.map.write.render_as_index_array.pixel*, and
likely others.

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