i965/miptree: Take an isl_format in render_aux_usage
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Oct 2017 21:25:44 +0000 (14:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 26 Oct 2017 22:24:38 +0000 (15:24 -0700)
commit39c5c12f8fbee9eec26a627f247d1f3ef7d4bf39
tree052cc7d4b7d81f34f3aa66ca1f40d8ad640f40d4
parent78e50185d6f9546f8b09cf281f5e5a17195a7ee5
i965/miptree: Take an isl_format in render_aux_usage

Not all rendering matches the miptree format.  We allow rendering to
texture views so there are cases where it may not match.  In those
cases, our current scheme of just passing the value of ctx->sRGBEnabled
isn't viable.  Instead, just do what we do for texturing and pass the
view format in directly.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h