From ad9832d17b5b42f23081fcfabfe0ea4b1dea00df Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 9 Jan 2019 15:15:49 -0800 Subject: 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 Reviewed-by: Jason Ekstrand --- src/intel/blorp/blorp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/intel/blorp/blorp.h') diff --git a/src/intel/blorp/blorp.h b/src/intel/blorp/blorp.h index 1e22712602d..3487ea7cf46 100644 --- a/src/intel/blorp/blorp.h +++ b/src/intel/blorp/blorp.h @@ -45,10 +45,10 @@ struct blorp_context { const struct brw_compiler *compiler; - bool (*lookup_shader)(struct blorp_context *blorp, + bool (*lookup_shader)(struct blorp_batch *batch, const void *key, uint32_t key_size, uint32_t *kernel_out, void *prog_data_out); - bool (*upload_shader)(struct blorp_context *blorp, + bool (*upload_shader)(struct blorp_batch *batch, const void *key, uint32_t key_size, const void *kernel, uint32_t kernel_size, const struct brw_stage_prog_data *prog_data, -- cgit v1.2.3