mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
nvk: Fix tautological-overlap-compare warning
../src/nouveau/vulkan/nvk_nir_lower_descriptors.c:145:55: warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
145 | if (desc_type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER &&
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
146 | desc_type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fixes: f1c909edd5 ("nvk/nir: Add cbuf analysis to nvi_nir_lower_descriptors()")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26772>
This commit is contained in:
parent
e61fae6eb8
commit
2464cd81d3
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ record_vulkan_resource_cbuf_use(nir_intrinsic_instr *intrin,
|
|||
const VkDescriptorType desc_type = nir_intrinsic_desc_type(intrin);
|
||||
|
||||
/* These we'll handle later */
|
||||
if (desc_type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER &&
|
||||
if (desc_type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER ||
|
||||
desc_type == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue