mirror of https://gitlab.freedesktop.org/mesa/mesa
nir/gather_info: Clear per-primitive I/O masks at the beginning.
Fixes: b085248819
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28685>
This commit is contained in:
parent
28c0f6f369
commit
433fe2022c
|
@ -991,6 +991,8 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint)
|
|||
shader->info.outputs_accessed_indirectly = 0;
|
||||
shader->info.patch_inputs_read_indirectly = 0;
|
||||
shader->info.patch_outputs_accessed_indirectly = 0;
|
||||
shader->info.per_primitive_inputs = 0;
|
||||
shader->info.per_primitive_outputs = 0;
|
||||
|
||||
shader->info.uses_resource_info_query = false;
|
||||
|
||||
|
@ -1026,7 +1028,6 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint)
|
|||
gather_func_info(entrypoint, shader, visited_funcs, dead_ctx);
|
||||
ralloc_free(dead_ctx);
|
||||
|
||||
shader->info.per_primitive_outputs = 0;
|
||||
shader->info.per_view_outputs = 0;
|
||||
nir_foreach_shader_out_variable(var, shader) {
|
||||
if (var->data.per_primitive) {
|
||||
|
@ -1043,7 +1044,6 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint)
|
|||
}
|
||||
}
|
||||
|
||||
shader->info.per_primitive_inputs = 0;
|
||||
if (shader->info.stage == MESA_SHADER_FRAGMENT) {
|
||||
nir_foreach_shader_in_variable(var, shader) {
|
||||
if (var->data.per_primitive) {
|
||||
|
|
Loading…
Reference in New Issue