mesa/src/amd/vulkan
Tony Wasserka f18fc34c4d radv: Fix various non-critical integer overflows
The result of 0xf << 28 is a signed integer and hence overflows into the sign
bit. In practice compilers did the right thing here, since the intent of the
code was unsigned arithmetic anyway.

These conditions were observed in:
* dEQP-VK.pipeline.image.suballocation.sampling_type.combined.view_type.1d.format.r4g4b4a4_unorm_pack16.count_8.size.512x1
* dEQP-VK.binding_model.descriptorset_random.sets32.noarray.ubolimitlow.sbolimitlow.sampledimglow.outimgonly.noiub.nouab.frag.ialimithigh.0

Cc: mesa-stable
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6568>
2020-09-03 20:20:24 +00:00
..
layers radv: Allow triggering thread traces by file. 2020-09-01 14:19:51 +00:00
winsys radv/winsys: Fix memory leak. 2020-08-31 17:33:51 -07:00
.editorconfig amd: add .editorconfig 2017-08-29 01:08:58 +03:00
Android.mk radv: Use common gfx10_format_table.h 2020-06-03 00:17:00 +00:00
Makefile.sources radv: Use common gfx10_format_table.h 2020-06-03 00:17:00 +00:00
meson.build radv: restrict exported symbols with static llvm 2020-08-19 11:19:18 +00:00
radv_android.c radv/android: Remove unused variable 2020-08-05 18:08:07 +00:00
radv_cmd_buffer.c amd/registers: switch to new generated register definitions 2020-09-01 08:45:54 -04:00
radv_constants.h radv: Remove RANGE_SIZE usage 2020-05-05 00:28:00 +00:00
radv_cs.h radv: add radeon_set_context_reg_rmw() helper 2020-04-14 11:31:33 +02:00
radv_debug.c amd/registers: switch to new generated register definitions 2020-09-01 08:45:54 -04:00
radv_debug.h radv: use the trap handler to detect faulty shaders/instructions 2020-08-24 11:08:24 +00:00
radv_descriptor_set.c radv: fix null memcpy and zero-sized malloc 2020-08-20 10:52:19 +00:00
radv_descriptor_set.h radv: use the base object struct types 2020-05-13 08:23:23 +02:00
radv_device.c radv: Avoid deadlock on bo_list. 2020-09-02 18:00:40 +00:00
radv_entrypoints_gen.py Switch from cElementTree to ElementTree. 2020-06-05 23:42:54 -07:00
radv_extensions.py radv/llvm: enable VK_KHR_memory_model 2020-08-05 09:45:54 +00:00
radv_formats.c radv: Add ETC2 support on RAVEN2. 2020-08-07 10:54:58 +00:00
radv_icd.py python: Specify the JSON separators 2018-07-05 12:52:38 +01:00
radv_image.c amd/registers: switch to new generated register definitions 2020-09-01 08:45:54 -04:00
radv_llvm_helper.cpp radv/gfx10: use the correct target machine for Wave32 2019-08-02 09:37:38 +02:00
radv_meta.c radv: add support for dynamic depth/stencil states 2020-07-13 08:31:54 +00:00
radv_meta.h radv: add support for dynamic depth/stencil states 2020-07-13 08:31:54 +00:00
radv_meta_blit.c radv: Fix 3d blits. 2020-08-27 09:58:59 +00:00
radv_meta_blit2d.c radv: don't set num_components for non-vectorized intrinsics 2020-06-16 02:48:18 +00:00
radv_meta_buffer.c nir: Add new system values and intrinsics for dealing with CL work offsets 2020-08-21 22:07:05 +00:00
radv_meta_bufimage.c nir: Add new system values and intrinsics for dealing with CL work offsets 2020-08-21 22:07:05 +00:00
radv_meta_clear.c nir: Add new system values and intrinsics for dealing with CL work offsets 2020-08-21 22:07:05 +00:00
radv_meta_copy.c radv: Add device argument for dcc compression check. 2019-08-07 02:13:07 +02:00
radv_meta_decompress.c radv: cleanup creating the decompress/resummarize pipelines 2020-04-08 07:55:14 +02:00
radv_meta_fast_clear.c nir: Add new system values and intrinsics for dealing with CL work offsets 2020-08-21 22:07:05 +00:00
radv_meta_fmask_expand.c nir: Add new system values and intrinsics for dealing with CL work offsets 2020-08-21 22:07:05 +00:00
radv_meta_resolve.c radv: do not recursively begin/end render pass for meta operations 2020-03-11 07:54:43 +00:00
radv_meta_resolve_cs.c nir: Add new system values and intrinsics for dealing with CL work offsets 2020-08-21 22:07:05 +00:00
radv_meta_resolve_fs.c radv: do not recursively begin/end render pass for meta operations 2020-03-11 07:54:43 +00:00
radv_nir_lower_ycbcr_textures.c radv: use common nir_convert_ycbcr 2020-04-20 22:01:43 +00:00
radv_nir_to_llvm.c ac/nir: handle all lowered IO intrinsics 2020-09-02 22:45:38 -04:00
radv_pass.c radv: destroy the base object if VkCreateRenderPass*() failed 2020-07-15 13:53:21 +02:00
radv_pipeline.c radv: Fix various non-critical integer overflows 2020-09-03 20:20:24 +00:00
radv_pipeline_cache.c radv: align pipeline cache entry and header sizes 2020-08-20 10:52:19 +00:00
radv_private.h radv: Avoid deadlock on bo_list. 2020-09-02 18:00:40 +00:00
radv_query.c nir: Add new system values and intrinsics for dealing with CL work offsets 2020-08-21 22:07:05 +00:00
radv_radeon_winsys.h radv: Add winsys functions for timeline syncobj. 2020-07-23 17:36:46 +00:00
radv_rgp.c ac/gpu_info: replace num_good_cu_per_sh with min/max_good_cu_per_sa 2020-05-26 06:00:54 -04:00
radv_shader.c amd/registers: switch to new generated register definitions 2020-09-01 08:45:54 -04:00
radv_shader.h radv: dump shader stats with VK_KHR_pipeline_executable_properties 2020-08-31 09:42:25 +02:00
radv_shader_args.c radv: Fix various non-critical integer overflows 2020-09-03 20:20:24 +00:00
radv_shader_args.h radv: add a small interface for creating the trap handler shader 2020-08-24 11:08:24 +00:00
radv_shader_helper.h radv/gfx10: use the correct target machine for Wave32 2019-08-02 09:37:38 +02:00
radv_shader_info.c radv: Fix various non-critical integer overflows 2020-09-03 20:20:24 +00:00
radv_sqtt.c radv: add missing return values check for some winsys calls 2020-07-22 15:06:20 +00:00
radv_util.c radv: report errors back to the application via VK_EXT_debug_report 2020-08-10 14:09:21 +02:00
radv_util.h radv: Use proper header guards over 'pragma once' directives 2016-10-10 16:10:56 +11:00
radv_wsi.c vulkan/wsi: add sw support. (v2) 2020-08-17 14:30:50 +10:00
radv_wsi_display.c radv: split fence into two parts as enum+union. 2020-07-16 21:04:37 +00:00
radv_wsi_wayland.c radv/wsi: Don't include wayland headers 2017-03-13 11:16:30 +00:00
radv_wsi_x11.c vulkan: drop always-true param 2018-10-26 18:33:11 +01:00
si_cmd_buffer.c amd/registers: switch to new generated register definitions 2020-09-01 08:45:54 -04:00
vk_format.h radv: fix invalid conversion warnings in vk_format.h 2020-07-21 19:38:43 +00:00
vk_format_layout.csv radv: Implement VK_EXT_4444_formats 2020-08-03 19:27:37 +01:00
vk_format_parse.py radv: Add logic for multisample format descriptions. 2019-04-25 19:56:20 +00:00
vk_format_table.py util: rename PIPE_ARCH_*_ENDIAN to UTIL_ARCH_*_ENDIAN 2019-11-05 16:39:55 +00:00
vulkan.sym radv: restrict exported symbols with static llvm 2020-08-19 11:19:18 +00:00