turnip: add tu_tiling_config
authorChia-I Wu <olvaffe@gmail.com>
Tue, 22 Jan 2019 18:27:22 +0000 (10:27 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:02:13 +0000 (10:02 -0700)
commit429e2d5755ea8fe2cf9db82b01262a248a0d2671
treef4ece5379442bdc941b87d07b19059101b8881d0
parent7c4483de0ee7b46981dab0459d222774524db461
turnip: add tu_tiling_config

We need the current color/depth/stencil attachments and the current
render area to compute the tiling config.

We compute the tiling config at the beginning of each subpass for
the moment.  We should change that when the driver can reorder/merge
subpasses.

It is very common that the render area is the entire framebuffer.
We might want to optimize for the case and compute the tiling config
in tu_framebuffer ctor.
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_private.h