d3d12: fix code after simple-shader helper changes
Fixes:4e9328e3b6
("nir_builder: Return a new builder from nir_builder_init_simple_shader().") Fixes:5f992802f5
("nir/builder: Drop the mem_ctx arg from nir_builder_init_simple_shader().") Fixes:eda3e4e055
("nir/builder: Add a name format arg to nir_builder_init_simple_shader().") Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7574>
This commit is contained in:

committed by
Marge Bot

parent
5f99962540
commit
5d2e9d76c1
@@ -612,10 +612,9 @@ get_stencil_resolve_vs(struct d3d12_context *ctx)
|
||||
if (ctx->stencil_resolve_vs)
|
||||
return ctx->stencil_resolve_vs;
|
||||
|
||||
nir_builder b;
|
||||
nir_builder_init_simple_shader(&b, NULL, MESA_SHADER_VERTEX,
|
||||
dxil_get_nir_compiler_options());
|
||||
b.shader->info.name = ralloc_strdup(b.shader, "linear_blit_vs");
|
||||
nir_builder b = nir_builder_init_simple_shader(MESA_SHADER_VERTEX,
|
||||
dxil_get_nir_compiler_options(),
|
||||
"linear_blit_vs");
|
||||
|
||||
const struct glsl_type *vec4 = glsl_vec4_type();
|
||||
nir_variable *pos_in = nir_variable_create(b.shader, nir_var_shader_in,
|
||||
@@ -641,9 +640,9 @@ get_stencil_resolve_fs(struct d3d12_context *ctx)
|
||||
if (ctx->stencil_resolve_fs)
|
||||
return ctx->stencil_resolve_fs;
|
||||
|
||||
nir_builder b;
|
||||
nir_builder_init_simple_shader(&b, NULL, MESA_SHADER_FRAGMENT,
|
||||
dxil_get_nir_compiler_options());
|
||||
nir_builder b = nir_builder_init_simple_shader(MESA_SHADER_FRAGMENT,
|
||||
dxil_get_nir_compiler_options(),
|
||||
"stencil_resolve_fs");
|
||||
|
||||
nir_variable *stencil_out = nir_variable_create(b.shader,
|
||||
nir_var_shader_out,
|
||||
|
Reference in New Issue
Block a user