i965: Replace draw_aux_buffer_disabled with draw_aux_usage
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 24 Jan 2018 07:13:10 +0000 (23:13 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 Jan 2018 03:05:36 +0000 (19:05 -0800)
commite52a9f18d69c94b7cb7f81361cdb9e2582c3d742
tree286529e9e6a6c7bfa97769e6b4e107626c5fb436
parent468ea3cc451f2c71e7d1be528090cb0334d500c2
i965: Replace draw_aux_buffer_disabled with draw_aux_usage

Instead of keeping an array of booleans, we now hang onto an array of
isl_aux_usage enums.  This means that the thing we are passing from
brw_draw.c to surface state setup is the thing that surface state setup
actually needs instead of an input to compute what it needs.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_compute.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c