nir/builder: Drop the mem_ctx arg from nir_builder_init_simple_shader().
This looks a lot more simple now! Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7323>
This commit is contained in:
@@ -31,7 +31,7 @@ protected:
|
||||
glsl_type_singleton_init_or_ref();
|
||||
|
||||
static const nir_shader_compiler_options options = { };
|
||||
bld = nir_builder_init_simple_shader(NULL, MESA_SHADER_VERTEX, &options);
|
||||
bld = nir_builder_init_simple_shader(MESA_SHADER_VERTEX, &options);
|
||||
|
||||
v1 = nir_imm_vec4(&bld, -2.0, -1.0, 1.0, 2.0);
|
||||
v2 = nir_imm_vec4(&bld, 2.0, 1.0, -1.0, -2.0);
|
||||
|
||||
Reference in New Issue
Block a user