blorp: Pass the batch to lookup/upload_shader instead of context
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 9 Jan 2019 23:15:49 +0000 (15:15 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Jan 2019 04:52:04 +0000 (20:52 -0800)
commitad9832d17b5b42f23081fcfabfe0ea4b1dea00df
tree5c9ef31e31c1d6324f3de1312430142e0ef5f826
parent084a1cdbb7f7e5cf8f8cee42d2edd3bfb58867ab
blorp: Pass the batch to lookup/upload_shader instead of context

This will allow drivers to pin shader buffers if necessary.

i965 and anv do not need to do this today, but iris will.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/blorp/blorp.c
src/intel/blorp/blorp.h
src/intel/blorp/blorp_blit.c
src/intel/blorp/blorp_clear.c
src/intel/blorp/blorp_priv.h
src/intel/vulkan/anv_blorp.c
src/mesa/drivers/dri/i965/brw_blorp.c