diff options
author | Kenneth Graunke <[email protected]> | 2019-06-26 23:24:56 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-06-27 08:12:22 -0700 |
commit | 85c72da1b16f02d8d270ebd9ea93fa4ea29efcb5 (patch) | |
tree | 37e7a7121a3012625f19d7a95bdaf0bd8ba19ac9 /src/gallium/drivers/iris/iris_state.c | |
parent | f94ebf0c9db8dcd2257fd7eb20d457caad3bdeef (diff) |
iris: Drop UBO range stuff from iris_restore_compute_saved_bos
Compute doesn't use UBO ranges (annoyingly), so this is dead code.
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 80c574845b0..83b5d9c7e35 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4353,30 +4353,6 @@ iris_restore_compute_saved_bos(struct iris_context *ice, const int stage = MESA_SHADER_COMPUTE; struct iris_shader_state *shs = &ice->state.shaders[stage]; - if (clean & IRIS_DIRTY_CONSTANTS_CS) { - struct iris_compiled_shader *shader = ice->shaders.prog[stage]; - - if (shader) { - struct brw_stage_prog_data *prog_data = (void *) shader->prog_data; - const struct brw_ubo_range *range = &prog_data->ubo_ranges[0]; - - if (range->length > 0) { - /* Range block is a binding table index, map back to UBO index. */ - unsigned block_index = iris_bti_to_group_index( - &shader->bt, IRIS_SURFACE_GROUP_UBO, range->block); - assert(block_index != IRIS_SURFACE_NOT_USED); - - struct pipe_shader_buffer *cbuf = &shs->constbuf[block_index]; - struct iris_resource *res = (void *) cbuf->buffer; - - if (res) - iris_use_pinned_bo(batch, res->bo, false); - else - iris_use_pinned_bo(batch, batch->screen->workaround_bo, false); - } - } - } - if (clean & IRIS_DIRTY_BINDINGS_CS) { /* Re-pin any buffers referred to by the binding table. */ iris_populate_binding_table(ice, batch, stage, true); |