aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_blorp.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-06-22 16:46:20 -0700
committerJason Ekstrand <[email protected]>2016-08-17 14:46:22 -0700
commitaa4117a9e45928289ba193506b377d06d1e09584 (patch)
tree13a1e5fa8e558d18ce6ab909ad77a8cc558f6aab /src/mesa/drivers/dri/i965/brw_blorp.c
parent801189e1994a0daa96ff64b9f27a2e14b19cb446 (diff)
i965/blorp: Get rid of brw_blorp_surface_info::map_stencil_as_y_tiled
Now that we're carrying around the isl_surf, we can just modify it directly instead of passing an extra bit around. Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index 220be8390ae..7a4b94b1ee7 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -71,7 +71,6 @@ brw_blorp_surface_info_init(struct brw_context *brw,
info->num_samples = mt->num_samples;
info->array_layout = mt->array_layout;
- info->map_stencil_as_y_tiled = false;
info->msaa_layout = mt->msaa_layout;
info->swizzle = SWIZZLE_XYZW;
@@ -80,11 +79,8 @@ brw_blorp_surface_info_init(struct brw_context *brw,
switch (format) {
case MESA_FORMAT_S_UINT8:
- /* The miptree is a W-tiled stencil buffer. Surface states can't be set
- * up for W tiling, so we'll need to use Y tiling and have the WM
- * program swizzle the coordinates.
- */
- info->map_stencil_as_y_tiled = true;
+ assert(info->surf.tiling == ISL_TILING_W);
+ /* Prior to Broadwell, we can't render to R8_UINT */
info->brw_surfaceformat = brw->gen >= 8 ? BRW_SURFACEFORMAT_R8_UINT :
BRW_SURFACEFORMAT_R8_UNORM;
break;
@@ -290,10 +286,6 @@ brw_blorp_emit_surface_state(struct brw_context *brw,
surf.image_alignment_el = isl_extent3d(4, 2, 1);
}
- /* We need to fake W-tiling with Y-tiling */
- if (surface->map_stencil_as_y_tiled)
- surf.tiling = ISL_TILING_Y0;
-
union isl_color_value clear_color = { .u32 = { 0, 0, 0, 0 } };
const struct isl_surf *aux_surf = NULL;