diff options
author | Kenneth Graunke <[email protected]> | 2018-11-09 11:56:15 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:09 -0800 |
commit | 1ef68d77c06993d44bd44e0fc48abeb1a848e597 (patch) | |
tree | 3f5e776e402a5b929d23ebdd69b122330108add9 /src | |
parent | 7eeb124c025fc0ef7e750603f8c1c6471ba746c1 (diff) |
iris: drop iris_setup_push_uniform_range
it doesn't do anything, we have no params. I guess I thought there
would be some, but they all get dead code eliminated even if we try
to make them exist in the first place.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_program.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index 348ff05b44b..e2dcc73dab9 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -533,29 +533,6 @@ iris_setup_uniforms(const struct brw_compiler *compiler, } /** - * If we still have regular uniforms as push constants after the backend - * compilation, set up a UBO range for them. This will be used to fill - * out the 3DSTATE_CONSTANT_* packets which cause the data to be pushed. - */ -static void -iris_setup_push_uniform_range(const struct brw_compiler *compiler, - struct brw_stage_prog_data *prog_data) -{ - // XXX: I don't think this code does anything at all. - - if (prog_data->nr_params) { - for (int i = 3; i > 0; i--) - prog_data->ubo_ranges[i] = prog_data->ubo_ranges[i - 1]; - - prog_data->ubo_ranges[0] = (struct brw_ubo_range) { - .block = 0, - .start = 0, - .length = DIV_ROUND_UP(prog_data->nr_params, 8), - }; - } -} - -/** * Compile a vertex shader, and upload the assembly. */ static bool @@ -610,8 +587,6 @@ iris_compile_vs(struct iris_context *ice, return false; } - iris_setup_push_uniform_range(compiler, prog_data); - uint32_t *so_decls = ice->vtbl.create_so_decl_list(&ish->stream_output, &vue_prog_data->vue_map); @@ -751,8 +726,6 @@ iris_compile_tcs(struct iris_context *ice, return false; } - iris_setup_push_uniform_range(compiler, prog_data); - iris_upload_and_bind_shader(ice, IRIS_CACHE_TCS, key, program, prog_data, NULL, system_values, num_system_values); @@ -828,8 +801,6 @@ iris_compile_tes(struct iris_context *ice, return false; } - iris_setup_push_uniform_range(compiler, prog_data); - uint32_t *so_decls = ice->vtbl.create_so_decl_list(&ish->stream_output, &vue_prog_data->vue_map); @@ -902,8 +873,6 @@ iris_compile_gs(struct iris_context *ice, return false; } - iris_setup_push_uniform_range(compiler, prog_data); - uint32_t *so_decls = ice->vtbl.create_so_decl_list(&ish->stream_output, &vue_prog_data->vue_map); @@ -980,8 +949,6 @@ iris_compile_fs(struct iris_context *ice, //brw_alloc_stage_scratch(brw, &brw->wm.base, prog_data.base.total_scratch); - iris_setup_push_uniform_range(compiler, prog_data); - iris_upload_and_bind_shader(ice, IRIS_CACHE_FS, key, program, prog_data, NULL, system_values, num_system_values); |