nouveau/nvc0: Extract common tile mode macro
authorThierry Reding <treding@nvidia.com>
Wed, 11 Oct 2017 12:41:26 +0000 (14:41 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 9 Mar 2018 10:47:54 +0000 (11:47 +0100)
commitb964cab80a094207cbdc33c56d0904533670c8a9
tree0baef960823960f4486d952fdff557cdee703516
parent75bf4896282b89cb06e3638941479d306b63b163
nouveau/nvc0: Extract common tile mode macro

Add a new macro that can be used to extract the tiling mode from a
tile_mode value. This is will be used to determine the number of GOBs
used in block linear mode.

Acked-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Thierry Reding <treding@nvidia.com>
src/gallium/drivers/nouveau/nvc0/nvc0_resource.h