mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
compiler: rename gl_shader_stage_is_callable to mesa_shader_stage_is_callable
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36569>
This commit is contained in:
parent
4847e0b380
commit
807d693421
3 changed files with 4 additions and 4 deletions
|
|
@ -331,7 +331,7 @@ nir_opt_access(nir_shader *shader, const nir_opt_access_options *options)
|
|||
.shader = shader,
|
||||
.vars_written = _mesa_pointer_set_create(NULL),
|
||||
.vars_read = _mesa_pointer_set_create(NULL),
|
||||
.has_calls = gl_shader_stage_is_callable(shader->info.stage),
|
||||
.has_calls = mesa_shader_stage_is_callable(shader->info.stage),
|
||||
};
|
||||
|
||||
bool var_progress = false;
|
||||
|
|
|
|||
|
|
@ -2180,7 +2180,7 @@ nir_validate_shader(nir_shader *shader, const char *when)
|
|||
nir_var_mem_constant |
|
||||
nir_var_image;
|
||||
|
||||
if (gl_shader_stage_is_callable(shader->info.stage))
|
||||
if (mesa_shader_stage_is_callable(shader->info.stage))
|
||||
valid_modes |= nir_var_shader_call_data;
|
||||
|
||||
if (shader->info.stage == MESA_SHADER_ANY_HIT ||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ mesa_shader_stage_uses_workgroup(mesa_shader_stage stage)
|
|||
}
|
||||
|
||||
static inline bool
|
||||
gl_shader_stage_is_callable(mesa_shader_stage stage)
|
||||
mesa_shader_stage_is_callable(mesa_shader_stage stage)
|
||||
{
|
||||
return stage == MESA_SHADER_ANY_HIT ||
|
||||
stage == MESA_SHADER_CLOSEST_HIT ||
|
||||
|
|
@ -118,7 +118,7 @@ gl_shader_stage_is_callable(mesa_shader_stage stage)
|
|||
static inline bool
|
||||
gl_shader_stage_is_rt(mesa_shader_stage stage)
|
||||
{
|
||||
return stage == MESA_SHADER_RAYGEN || gl_shader_stage_is_callable(stage);
|
||||
return stage == MESA_SHADER_RAYGEN || mesa_shader_stage_is_callable(stage);
|
||||
}
|
||||
|
||||
static inline bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue