mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
nir: Remove nir_builder_init, it's not used anymore
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24038>
This commit is contained in:
parent
bd27faf083
commit
97014036a9
2 changed files with 5 additions and 14 deletions
|
|
@ -24,15 +24,6 @@
|
|||
|
||||
#include "nir_builder.h"
|
||||
|
||||
void
|
||||
nir_builder_init(nir_builder *build, nir_function_impl *impl)
|
||||
{
|
||||
memset(build, 0, sizeof(*build));
|
||||
build->exact = false;
|
||||
build->impl = impl;
|
||||
build->shader = impl->function->shader;
|
||||
}
|
||||
|
||||
nir_builder MUST_CHECK PRINTFLIKE(3, 4)
|
||||
nir_builder_init_simple_shader(gl_shader_stage stage,
|
||||
const nir_shader_compiler_options *options,
|
||||
|
|
|
|||
|
|
@ -48,13 +48,14 @@ typedef struct nir_builder {
|
|||
nir_function_impl *impl;
|
||||
} nir_builder;
|
||||
|
||||
void nir_builder_init(nir_builder *build, nir_function_impl *impl);
|
||||
|
||||
static inline nir_builder
|
||||
nir_builder_create(nir_function_impl *impl)
|
||||
{
|
||||
nir_builder b;
|
||||
nir_builder_init(&b, impl);
|
||||
memset(&b, 0, sizeof(b));
|
||||
b.exact = false;
|
||||
b.impl = impl;
|
||||
b.shader = impl->function->shader;
|
||||
return b;
|
||||
}
|
||||
|
||||
|
|
@ -64,8 +65,7 @@ nir_builder_at(nir_cursor cursor)
|
|||
{
|
||||
nir_cf_node *current_block = &nir_cursor_current_block(cursor)->cf_node;
|
||||
|
||||
nir_builder b;
|
||||
nir_builder_init(&b, nir_cf_node_get_function(current_block));
|
||||
nir_builder b = nir_builder_create(nir_cf_node_get_function(current_block));
|
||||
b.cursor = cursor;
|
||||
return b;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue