i965: Use helper function for modifier -> tiling
authorDaniel Stone <daniels@collabora.com>
Wed, 3 May 2017 17:05:10 +0000 (18:05 +0100)
committerDaniel Stone <daniels@collabora.com>
Fri, 5 May 2017 16:34:10 +0000 (17:34 +0100)
commit467332a0ab2a2328a37ad302dedd81a654e36313
tree49c4968fca2a7acc301c8100a66d8ac875c1496c
parent485ece83aceb3a35792efbc6fe2bca57ba46c04a
i965: Use helper function for modifier -> tiling

Use a helper function and struct to convert between a modifier and
tiling mode, so we can use it later for a tiling -> modifier lookup.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mesa/drivers/dri/i965/intel_screen.c