intel/blorp: Rework alloc_binding_table
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 24 Aug 2016 03:51:26 +0000 (20:51 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Sep 2016 19:40:11 +0000 (12:40 -0700)
commitcb780c9ccf7b7c68943b3e3f4850a60cd4f703e1
treeff78a706109d79ea1e4e04d18c450c2fdada4748
parent524fd55d2d973f50a5d8bc2255684610f5faae32
intel/blorp: Rework alloc_binding_table

The original blorp_alloc_binding_table helper was supposed to return the
binding table offset and map along with the surface state maps.  This isn't
quite what we want, however.  What we really want is the binding table
offsets, surface state offsets, and surface state maps.  In the GL driver,
the binding table map *is* an array of surface state offsets.  However, in
Vulkan, this isn't quite true as the entries in the binding table are
surface state offsets combined with another binding table block offset.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp_genX_exec.h
src/mesa/drivers/dri/i965/genX_blorp_exec.c