diff options
author | Chris Forbes <[email protected]> | 2013-12-01 11:30:45 +1300 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2013-12-07 16:08:52 +1300 |
commit | 6ca9a6f4d7f93277cbd958ded9786d13a9cdd675 (patch) | |
tree | 59c8b145be4dd07e4ec36b5b97d7e56d6aa34c23 /src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | |
parent | dfa952da97817093b7f7f95095c8598044126e09 (diff) |
i965/Gen7: emit mcs info for multisample textures
Previously this was only done for render targets.
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_wm_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 c3bd96d274e..dbd73099fb6 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, |