i965: Add a helper function intel_get_tile_dims()
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 18 Aug 2015 22:48:56 +0000 (15:48 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Mon, 28 Sep 2015 19:43:43 +0000 (12:43 -0700)
commit21fdc59d349eb396b48f0919dfd1a8dc234b96b1
tree84fa0efee2db5fe3ea380e7e4ce2a1b7f6655259
parent5edd9961c15a80d557ba42f48c97a471b23d9c5e
i965: Add a helper function intel_get_tile_dims()

V2:
- Do the tile width/height computations in the new helper
  function and use it later in intel_miptree_get_tile_masks().
- Change the name to intel_get_tile_dims().

V3: Return the tile_h in number of rows in place of bytes.
    Document the units of tile_w, tile_h parameters.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h