diff options
author | Anuj Phogat <anuj.phogat@gmail.com> | 2015-08-18 15:47:13 -0700 |
---|---|---|
committer | Anuj Phogat <anuj.phogat@gmail.com> | 2015-09-28 12:43:43 -0700 |
commit | 1dc41be9ebd07825836b0ca4b98e00ffc7ecc0ec (patch) | |
tree | 0f792533704f12dada31f4d133bb200d79ecd990 /src/mesa/drivers/dri/i965/intel_mipmap_tree.h | |
parent | 21fdc59d349eb396b48f0919dfd1a8dc234b96b1 (diff) | |
download | external_mesa3d-1dc41be9ebd07825836b0ca4b98e00ffc7ecc0ec.zip external_mesa3d-1dc41be9ebd07825836b0ca4b98e00ffc7ecc0ec.tar.gz external_mesa3d-1dc41be9ebd07825836b0ca4b98e00ffc7ecc0ec.tar.bz2 |
i965: Use intel_get_tile_dims() to get tile masks
This will require change in the parameters passed to
intel_miptree_get_tile_masks().
V2: Rearrange the order of parameters. (Ben)
Change the name to intel_get_tile_masks(). (Topi)
V3: Use temporary variables in intel_get_tile_masks()
for clarity. Fix mask_y computation.
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h index 294e301..bd77f95 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h @@ -623,9 +623,9 @@ intel_miptree_get_dimensions_for_image(struct gl_texture_image *image, int *width, int *height, int *depth); void -intel_miptree_get_tile_masks(const struct intel_mipmap_tree *mt, - uint32_t *mask_x, uint32_t *mask_y, - bool map_stencil_as_y_tiled); +intel_get_tile_masks(uint32_t tiling, uint32_t tr_mode, uint32_t cpp, + bool map_stencil_as_y_tiled, + uint32_t *mask_x, uint32_t *mask_y); void intel_get_tile_dims(uint32_t tiling, uint32_t tr_mode, uint32_t cpp, |