diff options
author | Jonathan Marek <[email protected]> | 2019-10-06 22:26:49 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-10-15 07:56:20 -0400 |
commit | 571b2611b3e2e1e8cc872ccddd036b9f8c943f55 (patch) | |
tree | cc09fcc3d2d10853a4295a53898bafa92c609f6a /src/freedreno | |
parent | a5635a8a50404ca2c37ee7edc095790ed089f83d (diff) |
turnip: use nir_assign_io_var_locations instead of nir_assign_var_locations
Variables with same location should use the same driver_location.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/vulkan/tu_shader.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c index 755cde4def6..7a05a115269 100644 --- a/src/freedreno/vulkan/tu_shader.c +++ b/src/freedreno/vulkan/tu_shader.c @@ -378,12 +378,8 @@ tu_shader_create(struct tu_device *dev, break; } - nir_assign_var_locations(&nir->inputs, &nir->num_inputs, - ir3_glsl_type_size); - nir_assign_var_locations(&nir->outputs, &nir->num_outputs, - ir3_glsl_type_size); - nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms, - ir3_glsl_type_size); + nir_assign_io_var_locations(&nir->inputs, &nir->num_inputs, stage); + nir_assign_io_var_locations(&nir->outputs, &nir->num_outputs, stage); NIR_PASS_V(nir, nir_lower_system_values); NIR_PASS_V(nir, nir_lower_frexp); |