i965: Make a better helper function for UBO/SSBO/ABO surface handling.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Nov 2017 00:05:43 +0000 (16:05 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Nov 2017 17:37:32 +0000 (09:37 -0800)
commitf48f52b0306e37d4d41dbf6a32970ee468298b2b
tree28802d078597319d9c902c4a171a5948e3e6f0d8
parent059d25a06de2bd396bd8d6d2dc1580361d3db915
i965: Make a better helper function for UBO/SSBO/ABO surface handling.

This fixes the missing AutomaticSize handling in the ABO code, removes
a bunch of duplicated code, and drops an extra layer of wrapping around
brw_emit_buffer_surface_state().

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen6_constant_state.c