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:
@@ -789,7 +789,7 @@ lvp_graphics_pipeline_init(struct lvp_pipeline *pipeline,
|
||||
|
||||
if (has_fragment_shader == false) {
|
||||
/* create a dummy fragment shader for this pipeline. */
|
||||
nir_builder b = nir_builder_init_simple_shader(NULL, MESA_SHADER_FRAGMENT, NULL);
|
||||
nir_builder b = nir_builder_init_simple_shader(MESA_SHADER_FRAGMENT, NULL);
|
||||
b.shader->info.name = ralloc_strdup(b.shader, "dummy_frag");
|
||||
|
||||
pipeline->pipeline_nir[MESA_SHADER_FRAGMENT] = b.shader;
|
||||
|
Reference in New Issue
Block a user