mesa/src
Italo Nicola 6c446377ff panfrost: fix off-by-one when exporting format modifiers
`count` should not be incremented before the check, because it causes
the modifiers array to be filled starting from position 1 instead of 0.

This bug causes one less format modifier to be available than would
otherwise be expected, which could then lead to a dmabuf query failing
in situations where a supported modifier wouldn't be advertised.

It also causes garbage data to be advertised as a modifier in position 0
of the array, although this is not very likely to cause issues.

Fixes: 2a1217513 ("panfrost: Implement panfrost_query_dmabuf_modifiers")
Cc: mesa-stable
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20879>
2023-01-25 09:24:50 +00:00
..
amd radv: fix RADV_DEBUG=hang with multiple cmdbuffer per submission 2023-01-25 09:05:11 +00:00
android_stub
asahi asahi: Handle sampler->compare_mode 2023-01-13 19:43:14 +00:00
broadcom v3dv: ensure we allocate at least the requested space for a CL 2023-01-24 09:49:14 +00:00
c11 c11: Remove _MTX_INITIALIZER_NP for windows 2022-11-09 04:38:28 +00:00
compiler meson: replace has_exe_wrapper with can_run_host_binaries 2023-01-19 16:29:03 +00:00
drm-shim drm-shim: Use hide_drm_device_path() to hide other drm devices 2022-12-30 15:51:11 -08:00
egl loader,glx,egl: remove is_different_gpu variable from loader 2023-01-24 12:51:35 +00:00
etnaviv ci/piglit: Exclude swapbuffers front-readback tests with PIGLIT_PLATFORM=gbm. 2023-01-24 00:13:03 +00:00
freedreno ci/freedreno: Mark max-texture-size as a flake. 2023-01-25 01:06:00 +00:00
gallium panfrost: fix off-by-one when exporting format modifiers 2023-01-25 09:24:50 +00:00
gbm gbm/backend: fix gbm compile without dri 2023-01-13 22:29:29 +00:00
getopt
glx loader,glx,egl: remove is_different_gpu variable from loader 2023-01-24 12:51:35 +00:00
gtest gtest: Fix maybe-uninitialized compiler warning 2022-06-29 21:02:18 +00:00
hgl
imagination meson: remove version checks for < 0.59 2023-01-19 23:06:07 +00:00
imgui
intel anv: Add missing untyped data port flush on PIPELINE_SELECT 2023-01-25 07:08:55 +00:00
loader loader,glx,egl: remove is_different_gpu variable from loader 2023-01-24 12:51:35 +00:00
mapi glthread: make marshal functions for glBegin/End attribs non-static 2023-01-20 21:34:09 -05:00
mesa mesa: Fix format transform on big endian platforms 2023-01-24 23:30:33 +00:00
microsoft dzn: Use core feature matching logic instead of rolling our own 2023-01-24 11:00:05 -08:00
nouveau nir: Eliminate nir_op_i2b 2022-12-14 06:23:21 +00:00
panfrost ci/piglit: Add some common piglit skips for Mesa CI's testing of glx. 2023-01-24 00:13:02 +00:00
tool tool/pps: Fix 32-bit build issue with format string 2023-01-18 19:27:41 +00:00
util util/fossilize_db: fix macOS inotify build error 2023-01-23 18:31:48 +00:00
virtio meson: remove version checks for < 0.59 2023-01-19 23:06:07 +00:00
vulkan vulkan/format: add a 10-bit video format 2023-01-18 06:36:27 +00:00
meson.build wgl: Add support for Xbox GDK. 2023-01-19 03:25:55 +00:00