diff options
author | Jason Ekstrand <[email protected]> | 2016-04-28 10:13:42 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-28 10:13:42 -0700 |
commit | 6028a67641741cb4e14265440282481441efa9c8 (patch) | |
tree | c6cefa0bdec1e14ab227de63f095e28b85a1a858 /src/intel/vulkan/anv_nir_apply_dynamic_offsets.c | |
parent | 99474dc29b0f45413d0e538d7321da9ad4c9f6f5 (diff) |
anv: Fix a build error caused by recent fp64 NIR changes
Diffstat (limited to 'src/intel/vulkan/anv_nir_apply_dynamic_offsets.c')
-rw-r--r-- | src/intel/vulkan/anv_nir_apply_dynamic_offsets.c | 5 |
1 files changed, 3 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 bbcbcc08f17..6b664f689e8 100644 --- a/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c +++ b/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c @@ -119,8 +119,9 @@ apply_dynamic_offsets_block(nir_block *block, void *void_state) exec_list_push_tail(&phi->srcs, &src1->node); b->cursor = nir_after_cf_list(&if_stmt->else_list); - nir_ssa_def *zero = nir_build_imm(b, intrin->num_components, - (nir_const_value) { .u32 = { 0, 0, 0, 0 } }); + 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_phi_src *src2 = ralloc(phi, nir_phi_src); struct exec_node *enode = exec_list_get_tail(&if_stmt->else_list); |