diff options
author | Connor Abbott <[email protected]> | 2020-06-17 15:47:29 +0200 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2020-06-17 15:49:40 +0200 |
commit | 568e06b3a6f08be93ec2b94c5f2a81420b664c40 (patch) | |
tree | f17a57349c4857926ee6df2f4446ddd6b5d1e5d5 | |
parent | 6fcbce3b9960a6066cf198d5d2fc25a7e4cf0e7b (diff) |
tu: Set num_components to 0 when building bindless intrinsics
Fixes: 167fa288 (" nir/validate: validate intr->num_components")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5520>
-rw-r--r-- | src/freedreno/vulkan/tu_shader.c | 4 |
1 files 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); |