From 568e06b3a6f08be93ec2b94c5f2a81420b664c40 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Wed, 17 Jun 2020 15:47:29 +0200 Subject: [PATCH] tu: Set num_components to 0 when building bindless intrinsics Fixes: 167fa288 (" nir/validate: validate intr->num_components") Part-of: --- src/freedreno/vulkan/tu_shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2