mesa/src/intel/vulkan
Paulo Zanoni 8ced368644 anv: don't silently convert view ranges from u64 to u32 then u64
Both anv_buffer_view->vk.range and VkDescriptorAddressInfoEXT->range
are VkDeviceSize, which is uint64_t. In Anv, we pass this to
align_down_npot_u32(), anv_fill_buffer_surface_state() and
anv_fill_buffer_view_surface_state(), all which convert it down to
uint32_t. Then we call isl_buffer_fill_state(), converting the value
back to uin64_t as size_B.

Remove the intermediate u32 truncation everywhere. If some place does
not accept values bigger than UINT_MAX, it is that place that should
have a check. We shouldn't silently convert a u64 value to u32 and
then back to u64.

I'm not aware or any workloads that are affected by this bug today.

Reviewed-by: Dylan Baker <dylan.c.baker@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41251>
2026-04-30 21:32:23 +00:00
..
bvh anv/rt: Copy 16bytes at once instead of copying 8bytes 2026-04-16 02:52:03 +00:00
i915 anv: stop using queue priority KHR aliases 2026-04-30 09:04:01 +00:00
layers anv: add furmark workaround layer 2025-11-28 09:26:41 +00:00
tests anv/tests: Add a slab test to cover the memory leak issue. 2026-01-08 14:21:24 +00:00
xe anv: stop using queue priority KHR aliases 2026-04-30 09:04:01 +00:00
anv_allocator.c anv: Make use of anv_shader_get_scratch_surf() in genX_cmd_compute.c 2026-04-08 17:44:52 +00:00
anv_android.c anv: Enable compression on importing Android buffers (xe2) 2025-12-09 14:16:43 -08:00
anv_android.h anv: And a new function to consolidate import paths 2025-12-09 14:16:42 -08:00
anv_android_stubs.c anv: And a new function to consolidate import paths 2025-12-09 14:16:42 -08:00
anv_api_version.h anv: Enable Vulkan 1.4 for SDK 37+ 2026-03-24 21:15:45 +00:00
anv_astc_emu.c anv: remove a bunch of KHR alias uses 2026-04-30 09:04:01 +00:00
anv_batch_chain.c anv: rework debug flag 2026-04-20 21:53:35 +03:00
anv_blorp.c anv: log fast depth clear fallback reasons in vkCmdClearAttachments 2026-04-14 16:14:47 +00:00
anv_buffer.c anv: don't silently convert view ranges from u64 to u32 then u64 2026-04-30 21:32:23 +00:00
anv_buffer_view.c anv: don't silently convert view ranges from u64 to u32 then u64 2026-04-30 21:32:23 +00:00
anv_cmd_buffer.c anv: remove a bunch of KHR alias uses 2026-04-30 09:04:01 +00:00
anv_descriptor_set.c anv: don't silently convert view ranges from u64 to u32 then u64 2026-04-30 21:32:23 +00:00
anv_device.c anv: add a shader-dump debug option 2026-04-30 10:59:45 +00:00
anv_embedded_sampler.c anv: extract embedded samplers from pipeline_cache 2025-08-01 11:35:04 +00:00
anv_event.c anv: switch events to use 0/!0 values for unsignaled/signaled 2025-12-15 08:25:38 +00:00
anv_formats.c anv: remove a bunch of KHR alias uses 2026-04-30 09:04:01 +00:00
anv_gem.c anv: Fix placed address mmap with slab bo 2026-03-30 13:59:27 +00:00
anv_gem_stubs.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
anv_genX.h anv: Update values for DispatchTimeoutCounter 2026-04-24 01:38:20 +00:00
anv_image.c anv: remove a bunch of KHR alias uses 2026-04-30 09:04:01 +00:00
anv_image_host_copy.c anv: Implement host_image_copy astc emulation on CPU 2025-11-07 12:14:31 +00:00
anv_image_view.c intel/isl: Replace mc_format with aux_format 2026-03-11 00:36:15 +00:00
anv_instance.c anv: add a shader-dump debug option 2026-04-30 10:59:45 +00:00
anv_internal_kernels.c anv: switch from INTEL_DEBUG to ANV_DEBUG for shader-print 2026-04-20 21:53:35 +03:00
anv_internal_kernels.h
anv_kmd_backend.c
anv_kmd_backend.h
anv_measure.c anv: rework gfx state emission (again) 2025-08-11 11:14:53 +00:00
anv_measure.h
anv_nir.h anv: add a pass to realign global loads on DX CBV resources 2026-04-21 16:29:14 +00:00
anv_nir_apply_pipeline_layout.c anv: remove a bunch of KHR alias uses 2026-04-30 09:04:01 +00:00
anv_nir_clear_shader_analysis.c anv: add an analysis pass to detect compute shaders clearing data 2026-03-04 20:40:59 +00:00
anv_nir_compute_push_layout.c anv: promote push constant pointers to push buffers 2026-04-21 16:29:14 +00:00
anv_nir_lower_driver_values.c anv: implement inline parameter promotion from push constants 2026-02-25 10:44:09 +00:00
anv_nir_lower_multiview.c treewide: add & use parent instr helpers 2025-11-12 21:22:13 +00:00
anv_nir_lower_resource_intel.c anv, brw: Consolidate ex_bso bits to a static devinfo inline 2026-02-16 21:33:47 +00:00
anv_nir_lower_ubo_loads.c anv: fixup load_ubo lowering 2025-11-17 20:02:00 +00:00
anv_nir_lower_unaligned_dispatch.c anv: implement inline parameter promotion from push constants 2026-02-25 10:44:09 +00:00
anv_nir_push_constants_analysis.c anv: promote push constant pointers to push buffers 2026-04-21 16:29:14 +00:00
anv_nir_push_descriptor_analysis.c anv: remove a bunch of KHR alias uses 2026-04-30 09:04:01 +00:00
anv_nir_realign_cbv.c anv: add a pass to realign global loads on DX CBV resources 2026-04-21 16:29:14 +00:00
anv_perf.c Rename sha1_* and sha_* names to blake3_* 2026-03-23 07:03:28 +00:00
anv_physical_device.c anv: stop using queue priority KHR aliases 2026-04-30 09:04:01 +00:00
anv_pipeline_cache.c anv: add a shader-dump debug option 2026-04-30 10:59:45 +00:00
anv_private.h anv: don't silently convert view ranges from u64 to u32 then u64 2026-04-30 21:32:23 +00:00
anv_queue.c anv: switch from INTEL_DEBUG to ANV_DEBUG for shader-print 2026-04-20 21:53:35 +03:00
anv_rmv.c anv: shrink image opaque data 2025-11-25 19:38:53 +00:00
anv_rmv.h anv: remove unused gfx/compute pipeline code 2025-09-05 07:46:20 +00:00
anv_sampler.c anv: rework embedded sampler hashing 2025-07-07 18:53:53 +00:00
anv_shader.c anv: add a shader-dump debug option 2026-04-30 10:59:45 +00:00
anv_shader.h anv: fix broken ray tracing dynamic descriptors 2025-12-02 13:25:20 +00:00
anv_shader_compile.c brw: Stop tracking inline parameter usage in prog_key/prog_data 2026-04-30 16:39:22 +00:00
anv_shader_heap.c anv: add a shader-dump debug option 2026-04-30 10:59:45 +00:00
anv_slab_bo.c anv: rework debug flag 2026-04-20 21:53:35 +03:00
anv_slab_bo.h anv: Add the base infrastructure to support memory pool 2025-04-30 12:56:39 +00:00
anv_sparse.c anv: fix dEQP-VK.memory.address_binding_report* 2026-03-06 12:21:17 +00:00
anv_util.c anv: add a debug printout for dirty descriptors 2026-02-25 10:44:04 +00:00
anv_utrace.c anv: implement VK_KHR_internally_synchronized_queues 2026-01-29 16:03:26 +00:00
anv_va.c anv: Rename instruction_state_pool to shader_heap 2026-02-27 17:36:41 +00:00
anv_video.c anv/video: remove unsupported feautres for encoders 2026-02-16 10:58:40 +00:00
anv_wsi.c vulkan/wsi/wayland: Correctly map 24bpp format types 2026-02-17 19:25:19 +00:00
av1_tables.h anv: add default av1 tables from media-driver 2025-01-10 21:45:04 +00:00
genX_acceleration_structure.c anv: remove a bunch of KHR alias uses 2026-04-30 09:04:01 +00:00
genX_blorp_exec.c anv: fix Wa_14024015672 interaction in blorp 2026-04-14 03:15:14 +00:00
genX_cmd_buffer.c anv: do not use resource barrier with split barriers 2026-04-28 18:07:37 +00:00
genX_cmd_compute.c anv: Update values for DispatchTimeoutCounter 2026-04-24 01:38:20 +00:00
genX_cmd_draw.c anv: promote push constant pointers to push buffers 2026-04-21 16:29:14 +00:00
genX_cmd_draw_generated_flush.h anv: remove use of emit_apply_pipe_flushes() in various helpers 2025-12-15 08:25:31 +00:00
genX_cmd_draw_generated_indirect.h anv: add tracking of involved stages in pipe flushes 2025-12-15 08:25:32 +00:00
genX_cmd_draw_helpers.h anv: store gfx/compute bound shaders on command buffer state 2025-08-01 11:35:08 +00:00
genX_cmd_video.c anv: use workaround framework for Wa_1508208842 2026-02-02 19:40:26 +00:00
genX_cmd_video_enc.c anv/video: set Sad Qp Lambda values properly for H265 encoder. 2026-02-16 10:58:40 +00:00
genX_gfx_state.c anv: implement VK_EXT_primitive_restart_index 2026-04-22 08:52:57 +00:00
genX_gpu_memcpy.c anv: document more stalling 2026-03-24 18:17:42 +00:00
genX_init_state.c anv: Update values for DispatchTimeoutCounter 2026-04-24 01:38:20 +00:00
genX_internal_kernels.c anv: fix internal compute shader constant data pull 2026-03-10 18:24:04 +00:00
genX_mi_builder.h anv: predicate BTP emissions 2026-02-25 00:17:03 +00:00
genX_query.c anv: Report address binding events for VkQueryPool 2026-02-27 01:36:43 +00:00
genX_shader.c brw: Stop tracking inline parameter usage in prog_key/prog_data 2026-04-30 16:39:22 +00:00
genX_simple_shader.c anv: fix compute push constant allocations on pre Gfx12.5 platforms 2026-04-20 21:53:35 +03:00
meson.build anv: add a pass to realign global loads on DX CBV resources 2026-04-21 16:29:14 +00:00
vp9_tables.h anv: add default vp9 tables from FFMpeg and intel-vaapi-driver 2025-06-13 04:51:51 +00:00