svga: use NIR_PASS(_, ...) for gl_nir_lower_images
Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36291>
This commit is contained in:
@@ -41,7 +41,7 @@ svga_create_compute_state(struct pipe_context *pipe,
|
||||
|
||||
assert(templ->ir_type == PIPE_SHADER_IR_NIR);
|
||||
/* nir_to_tgsi requires lowered images */
|
||||
NIR_PASS_V(nir, gl_nir_lower_images, false);
|
||||
NIR_PASS(_, nir, gl_nir_lower_images, false);
|
||||
|
||||
cs->base.tokens = nir_to_tgsi((void *)nir, pipe->screen);
|
||||
|
||||
|
||||
@@ -932,7 +932,7 @@ svga_create_shader(struct pipe_context *pipe,
|
||||
.keep_double_immediates = true,
|
||||
};
|
||||
/* nir_to_tgsi requires lowered images */
|
||||
NIR_PASS_V(nir, gl_nir_lower_images, false);
|
||||
NIR_PASS(_, nir, gl_nir_lower_images, false);
|
||||
shader->tokens = nir_to_tgsi_options(nir, pipe->screen, &ntt_options);
|
||||
} else {
|
||||
shader->tokens = pipe_shader_state_to_tgsi_tokens(pipe->screen, templ);
|
||||
|
||||
Reference in New Issue
Block a user