freedreno: add screen->setup_slices() for tex layout
authorRob Clark <robdclark@gmail.com>
Sun, 14 Jan 2018 13:57:29 +0000 (08:57 -0500)
committerRob Clark <robdclark@gmail.com>
Sun, 14 Jan 2018 21:10:06 +0000 (16:10 -0500)
commit16b91c2254b1287b135ee363f9f669c5595ebdaf
treedc997d380763ef249f32f3d53c7ee77d3cf905ff
parent047c6fe2c59712aa4db909ff3b3653009cd693bf
freedreno: add screen->setup_slices() for tex layout

The rules are sufficiently different for a5xx with tiled textures, so
split this out into something that can be implemented per-generation.
The a5xx specific implementation will come in a later patch.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/freedreno/freedreno_resource.h
src/gallium/drivers/freedreno/freedreno_screen.h