[Mesa-dev] [PATCH V2 04/10] i965/Gen7: emit mcs info for multisample textures
Chris Forbes
chrisf at ijw.co.nz
Sat Nov 30 15:30:02 PST 2013
Previously this was only done for render targets.
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
index c3bd96d..dbd7309 100644
--- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
@@ -349,6 +349,11 @@ gen7_update_texture_surface(struct gl_context *ctx,
SET_FIELD(brw_swizzle_to_scs(GET_SWZ(swizzle, 3), need_scs_green_to_blue), GEN7_SURFACE_SCS_A);
}
+ if (mt->mcs_mt) {
+ gen7_set_surface_mcs_info(brw, surf, *surf_offset,
+ mt->mcs_mt, false /* is RT */);
+ }
+
/* Emit relocation to surface contents */
drm_intel_bo_emit_reloc(brw->batch.bo,
*surf_offset + 4,
--
1.8.4.2
More information about the mesa-dev
mailing list