mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
nir: Use const for nir_shader_get_entrypoint(..)
nir_shader_get_entrypoint(..) should not modify the passed nir_shader object. Enforce this by marking shader paramenter as const. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Mihai Preda <mhpreda@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15362>
This commit is contained in:
parent
eaf3c72a83
commit
2648ccb341
1 changed files with 1 additions and 1 deletions
|
|
@ -3640,7 +3640,7 @@ typedef struct nir_shader {
|
|||
foreach_list_typed(nir_function, func, node, &(shader)->functions)
|
||||
|
||||
static inline nir_function_impl *
|
||||
nir_shader_get_entrypoint(nir_shader *shader)
|
||||
nir_shader_get_entrypoint(const nir_shader *shader)
|
||||
{
|
||||
nir_function *func = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue