i965/Gen7: Move decision to allocate MCS surface into intel_mipmap_create
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 30 Nov 2013 22:44:39 +0000 (11:44 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 7 Dec 2013 03:08:55 +0000 (16:08 +1300)
commitb1604841c2407c336f1069844649e51a3d135115
treedbc26ee717620232175f652625fef5db4618b07d
parent6ca9a6f4d7f93277cbd958ded9786d13a9cdd675
i965/Gen7: Move decision to allocate MCS surface into intel_mipmap_create

This gives us correct behavior for both renderbuffers (which previously
worked) and multisample textures (which would never get an MCS surface
allocated, even if CMS layout was selected)

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c