i965: Support multisampling in surface_state for textures
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 22 Dec 2012 10:27:24 +0000 (23:27 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 1 Mar 2013 22:35:24 +0000 (11:35 +1300)
commit8cc26ae9937685438d1554463e0ba69972ec26cf
tree4f4048cd002ba0781034955ed5f7c00cd8512cd3
parente62b6a10bcebae9fe6cb8fe81e95941ac06f13cd
i965: Support multisampling in surface_state for textures

The surface_state setup for renderbuffers already worked; only the
texturing side needed work. BLORP does something similar, but does its
own surface_state setup.

On Gen6, we just need to set the correct sample count.

On Gen7: - set the correct sample count
         - set the correct layout mode
         - set GEN7_SURFACE_ARYSPC_LOD0 if it's set in the miptree.

V2: - Clarify commit message
    - Rebased onto Paul's physical/logical dims cleanup
    - Added Gen7 support

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c