From: Connor Abbott Date: Wed, 17 Jun 2020 13:47:29 +0000 (+0200) Subject: tu: Set num_components to 0 when building bindless intrinsics X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=568e06b3a6f08be93ec2b94c5f2a81420b664c40;p=mesa.git tu: Set num_components to 0 when building bindless intrinsics Fixes: 167fa288 (" nir/validate: validate intr->num_components") Part-of: --- diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c index a43280e6a17..b5d492aed0f 100644 --- a/src/freedreno/vulkan/tu_shader.c +++ b/src/freedreno/vulkan/tu_shader.c @@ -153,7 +153,7 @@ lower_vulkan_resource_index(nir_builder *b, nir_intrinsic_instr *instr, nir_intrinsic_instr *bindless = nir_intrinsic_instr_create(b->shader, nir_intrinsic_bindless_resource_ir3); - bindless->num_components = 1; + bindless->num_components = 0; nir_ssa_dest_init(&bindless->instr, &bindless->dest, 1, 32, NULL); nir_intrinsic_set_desc_set(bindless, set); @@ -214,7 +214,7 @@ build_bindless(nir_builder *b, nir_deref_instr *deref, bool is_sampler, nir_intrinsic_instr *bindless = nir_intrinsic_instr_create(b->shader, nir_intrinsic_bindless_resource_ir3); - bindless->num_components = 1; + bindless->num_components = 0; nir_ssa_dest_init(&bindless->instr, &bindless->dest, 1, 32, NULL); nir_intrinsic_set_desc_set(bindless, set);