diff options
author | Jason Ekstrand <[email protected]> | 2016-06-23 15:50:18 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-08-17 14:46:22 -0700 |
commit | 09879eff30ad4501bf72c1f3d0a45779be0235a6 (patch) | |
tree | b037a3f8057b0f820ad7592a1ac6ced8deb1647c /src/mesa/drivers/dri/i965/brw_blorp.c | |
parent | e2a1bdb3c524f0a25bc311b1025e257f6b16cfaa (diff) |
i965/blorp: Use isl_msaa_layout instead of intel_msaa_layout
We also remove brw_blorp_surface_info::msaa_layout.
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.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index d38be8aa79b..96201e46aea 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -70,7 +70,6 @@ brw_blorp_surface_info_init(struct brw_context *brw, &info->x_offset, &info->y_offset); info->array_layout = mt->array_layout; - info->msaa_layout = mt->msaa_layout; info->swizzle = SWIZZLE_XYZW; if (format == MESA_FORMAT_NONE) @@ -210,22 +209,6 @@ brw_blorp_compile_nir_shader(struct brw_context *brw, struct nir_shader *nir, return program; } -static enum isl_msaa_layout -get_isl_msaa_layout(enum intel_msaa_layout layout) -{ - switch (layout) { - case INTEL_MSAA_LAYOUT_NONE: - return ISL_MSAA_LAYOUT_NONE; - case INTEL_MSAA_LAYOUT_IMS: - return ISL_MSAA_LAYOUT_INTERLEAVED; - case INTEL_MSAA_LAYOUT_UMS: - case INTEL_MSAA_LAYOUT_CMS: - return ISL_MSAA_LAYOUT_ARRAY; - default: - unreachable("Invalid MSAA layout"); - } -} - struct surface_state_info { unsigned num_dwords; unsigned ss_align; /* Required alignment of RENDER_SURFACE_STATE in bytes */ @@ -255,7 +238,6 @@ brw_blorp_emit_surface_state(struct brw_context *brw, /* Stomp surface dimensions and tiling (if needed) with info from blorp */ surf.dim = ISL_SURF_DIM_2D; surf.dim_layout = ISL_DIM_LAYOUT_GEN4_2D; - surf.msaa_layout = get_isl_msaa_layout(surface->msaa_layout); surf.logical_level0_px.width = surface->width; surf.logical_level0_px.height = surface->height; surf.logical_level0_px.depth = 1; |