diff options
author | Jason Ekstrand <[email protected]> | 2016-04-28 11:05:56 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-28 11:05:56 -0700 |
commit | d273ce5259ff924b9c5ec1371872f4fdbac73fd5 (patch) | |
tree | b65a0aca474dd948c31c5158745cf773c3693430 | |
parent | 6028a67641741cb4e14265440282481441efa9c8 (diff) |
anv/dynamic_offsets: Fix the order of arguments to nir_build_imm
-rw-r--r-- | src/intel/vulkan/anv_nir_apply_dynamic_offsets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c b/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c index 6b664f689e8..915a46dec6b 100644 --- a/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c +++ b/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c @@ -120,8 +120,8 @@ apply_dynamic_offsets_block(nir_block *block, void *void_state) b->cursor = nir_after_cf_list(&if_stmt->else_list); nir_const_value zero_val = { .u32 = { 0, 0, 0, 0 } }; - nir_ssa_def *zero = nir_build_imm(b, intrin->dest.ssa.bit_size, - intrin->num_components, zero_val); + nir_ssa_def *zero = nir_build_imm(b, intrin->num_components, + intrin->dest.ssa.bit_size, zero_val); nir_phi_src *src2 = ralloc(phi, nir_phi_src); struct exec_node *enode = exec_list_get_tail(&if_stmt->else_list); |