mesa/src
Erik Faye-Lund bf3605a189 pan/midgard: initialize last_next_tag to TAG_BREAK
If the shader contains zero words, we would try to use -1 as an index
into an array at the end of this function, which would be bad. But
shaders without any words are, uh, no point in disassembling in the
first place, so this seems like a theoretical bug in the first place.

However, since the only thing we *really* care about last_next_tag is if
is TAG_BREAK or not, let's initialize it to TAG_BREAK instead. This
means we'll avoid a bogus print at the end here, even if we ended up
calling this on an empty shader.

CID: 1458835
Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36724>
2025-08-21 08:45:33 +00:00
..
amd radv: precompute the depth clip enable 2025-08-21 08:23:04 +00:00
android_stub
asahi hk: no need to set DRI_CONF_VK_KHR_PRESENT_WAIT 2025-08-21 07:53:15 +00:00
broadcom vk/runtime: Set GPU_MULTI_WAIT on the drm syncobj type. 2025-08-13 18:57:42 +00:00
c11
compiler glsl_to_nir: don't allocate 0-sized arrays for Uniform/ShaderStorageBlocks 2025-08-21 06:13:49 +00:00
drm-shim prefer _SC_PAGESIZE over _SC_PAGE_SIZE 2025-08-11 12:30:23 +00:00
egl egl,glx: allow OpenGL with old libx11, but disable glthread if it's unsafe 2025-08-21 02:05:26 +00:00
etnaviv etnaviv/ci: document some flakes 2025-08-20 00:41:19 +00:00
freedreno turnip: advertise present_id/wait behind TU_USE_WSI_PLATFORM 2025-08-21 07:53:15 +00:00
gallium panfrost: Use pan_image_test_modifier_with_format() to do our modifier check 2025-08-21 07:27:05 +00:00
gbm egl,glx: allow OpenGL with old libx11, but disable glthread if it's unsafe 2025-08-21 02:05:26 +00:00
getopt
gfxstream gfxstream: ANDROID --> VK_USE_PLATFORM_ANDROID_KHR 2025-08-19 10:46:16 +00:00
glx egl,glx: allow OpenGL with old libx11, but disable glthread if it's unsafe 2025-08-21 02:05:26 +00:00
gtest
imagination all: rename gl_shader_stage_name to mesa_shader_stage_name 2025-08-06 10:28:41 +08:00
imgui
intel anv: advertise present_id/wait behind ANV_USE_WSI_PLATFORM 2025-08-21 07:53:15 +00:00
loader loader: Don't load nouveau GL on nvidia kmd 2025-07-29 23:52:32 +00:00
mesa radv,zink,st/mesa: use _mesa_set_fini instead of ralloc_free 2025-08-21 06:13:47 +00:00
microsoft nir: convert nir_instr_worklist to init/fini semantics w/out allocation 2025-08-21 06:13:49 +00:00
nouveau nvk: advertise present_id/wait and the 2 version 2025-08-21 07:53:15 +00:00
panfrost pan/midgard: initialize last_next_tag to TAG_BREAK 2025-08-21 08:45:33 +00:00
tool meson: Allow configuring with Android-internal perfetto 2025-08-07 16:22:37 +00:00
util driconf: drop obsolete DRI_CONF_VK_KHR_PRESENT_WAIT 2025-08-21 07:53:15 +00:00
virtio venus: expose KHR_present_id(2)/wait(2) support 2025-08-19 22:48:35 +00:00
vulkan vulkan/wsi: drop obsolete wsi_common_vk_instance_supports_present_wait 2025-08-21 07:53:15 +00:00
x11 meson: add missing x11 dependency on libloader_x11 2025-08-08 21:45:59 +00:00
.clang-format agx: add foreach_reg_{src,dest} 2025-08-03 14:40:53 -04:00
meson.build mesa: remove inc_mapi 2025-08-06 20:35:26 +00:00