summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_blorp.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-06-22 16:13:42 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-08-17 14:46:22 -0700
commit0aa0b397695b9001d5e962622909f9546e2a6836 (patch)
tree72c826faf5cda88098d29594275dceb4d30c4a35 /src/mesa/drivers/dri/i965/brw_blorp.c
parent573f6ffd04be3380721dcca6d607b3490b7a118c (diff)
downloadexternal_mesa3d-0aa0b397695b9001d5e962622909f9546e2a6836.zip
external_mesa3d-0aa0b397695b9001d5e962622909f9546e2a6836.tar.gz
external_mesa3d-0aa0b397695b9001d5e962622909f9546e2a6836.tar.bz2
i965/miptree: Remove the stencil_as_y_tiled parameter from get_tile_masks
It's only used to stomp the tiling to Y and it's only used by blorp so there's no reason why blorp can't do it itself. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index 282a5b2..e0d9526 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -122,9 +122,11 @@ brw_blorp_compute_tile_offsets(const struct brw_blorp_surface_info *info,
uint32_t *tile_x, uint32_t *tile_y)
{
uint32_t mask_x, mask_y;
+ uint32_t tiling = info->mt->tiling;
+ if (info->map_stencil_as_y_tiled)
+ tiling = I915_TILING_Y;
- intel_get_tile_masks(info->mt->tiling, info->mt->tr_mode, info->mt->cpp,
- info->map_stencil_as_y_tiled,
+ intel_get_tile_masks(tiling, info->mt->tr_mode, info->mt->cpp,
&mask_x, &mask_y);
*tile_x = info->x_offset & mask_x;