diff options
author | Dave Airlie <[email protected]> | 2017-05-05 10:42:40 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-05-08 08:56:36 +1000 |
commit | eb2a8336791973de8564edbd12a0e565868633c3 (patch) | |
tree | 77c9cfd9558f9ea5b92b54395a67f6cf1c86cace /src/amd/vulkan/radv_meta_blit2d.c | |
parent | 823e9ea8a1d8de6fb4378f53695367bc4a418e89 (diff) |
radv: set base/ranges for push constant loads.
This isn't necessary yet but I'd like to use the range in
some future patches.
[airlied: add new resolve pass]
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_blit2d.c')
-rw-r--r-- | src/amd/vulkan/radv_meta_blit2d.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta_blit2d.c b/src/amd/vulkan/radv_meta_blit2d.c index 10e20d230aa..473d2f23572 100644 --- a/src/amd/vulkan/radv_meta_blit2d.c +++ b/src/amd/vulkan/radv_meta_blit2d.c @@ -488,6 +488,8 @@ build_nir_buffer_fetch(struct nir_builder *b, struct radv_device *device, sampler->data.binding = 0; nir_intrinsic_instr *width = nir_intrinsic_instr_create(b->shader, nir_intrinsic_load_push_constant); + nir_intrinsic_set_base(width, 0); + nir_intrinsic_set_range(width, 4); width->src[0] = nir_src_for_ssa(nir_imm_int(b, 0)); width->num_components = 1; nir_ssa_dest_init(&width->instr, &width->dest, 1, 32, "width"); |