mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 04:00:12 +01:00
nir: add implicit_conversion_prohibited field to nir_parameter
Will be used in link time validation in following patches. Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31137>
This commit is contained in:
parent
5645495156
commit
60937b5286
2 changed files with 4 additions and 0 deletions
|
|
@ -701,6 +701,8 @@ nir_visitor::create_function(ir_function_signature *ir)
|
|||
func->params[np].type = param->type;
|
||||
func->params[np].is_return = false;
|
||||
func->params[np].mode = get_param_mode(param);
|
||||
func->params[np].implicit_conversion_prohibited =
|
||||
!!param->data.implicit_conversion_prohibited;
|
||||
np++;
|
||||
}
|
||||
assert(np == func->num_params);
|
||||
|
|
|
|||
|
|
@ -3626,6 +3626,8 @@ typedef struct {
|
|||
/* True if this paramater is actually the function return variable */
|
||||
bool is_return;
|
||||
|
||||
bool implicit_conversion_prohibited;
|
||||
|
||||
nir_variable_mode mode;
|
||||
|
||||
/* The type of the function param */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue