diff options
author | Kenneth Graunke <[email protected]> | 2019-01-09 15:15:49 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-01-10 20:52:04 -0800 |
commit | ad9832d17b5b42f23081fcfabfe0ea4b1dea00df (patch) | |
tree | 5c9ef31e31c1d6324f3de1312430142e0ef5f826 /src/mesa | |
parent | 084a1cdbb7f7e5cf8f8cee42d2edd3bfb58867ab (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index b286b231537..97a5f6a9937 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -43,24 +43,24 @@ #define FILE_DEBUG_FLAG DEBUG_BLORP static bool -brw_blorp_lookup_shader(struct blorp_context *blorp, +brw_blorp_lookup_shader(struct blorp_batch *batch, const void *key, uint32_t key_size, uint32_t *kernel_out, void *prog_data_out) { - struct brw_context *brw = blorp->driver_ctx; + struct brw_context *brw = batch->driver_batch; return brw_search_cache(&brw->cache, BRW_CACHE_BLORP_PROG, key, key_size, kernel_out, prog_data_out, true); } static bool -brw_blorp_upload_shader(struct blorp_context *blorp, +brw_blorp_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, uint32_t prog_data_size, uint32_t *kernel_out, void *prog_data_out) { - struct brw_context *brw = blorp->driver_ctx; + struct brw_context *brw = batch->driver_batch; brw_upload_cache(&brw->cache, BRW_CACHE_BLORP_PROG, key, key_size, kernel, kernel_size, prog_data, prog_data_size, kernel_out, prog_data_out); |