diff --git a/.pick_status.json b/.pick_status.json index c5310a1d9ec..3b2b87f4b7e 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -174,7 +174,7 @@ "description": "nir: Get correct number of components", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "5ef2b8f1f2ebcdb4ffe5c98b3f4f48e584cb4b22", "notes": null diff --git a/src/compiler/nir/nir_lower_io_to_vector.c b/src/compiler/nir/nir_lower_io_to_vector.c index 3c7eb5a94e7..ef54b3c5268 100644 --- a/src/compiler/nir/nir_lower_io_to_vector.c +++ b/src/compiler/nir/nir_lower_io_to_vector.c @@ -253,7 +253,7 @@ create_new_io_vars(nir_shader *shader, nir_variable_mode mode, } const unsigned num_components = - glsl_get_components(glsl_without_array(var->type)); + glsl_get_vector_elements(glsl_without_array(var->type)); if (!num_components) { assert(frac == 0); frac++;