isl: Make sure isl_device::requires_padding is always initialized
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

We have to make sure all fields are being initialized in isl_device_init,
the isl_device struct is not guaranteed to be zero-initialized

Fixes: 8d13628f ("isl: Add additional alignment/padding requirements to prevent overfetch")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41354>
This commit is contained in:
Calder Young 2026-05-04 23:16:15 -07:00 committed by Marge Bot
parent 844087c6e7
commit b6b13bf9df

View file

@ -325,6 +325,7 @@ isl_device_init(struct isl_device *dev,
dev->has_bit6_swizzling = info->has_bit6_swizzle;
dev->buffer_length_in_aux_addr = false;
dev->sampler_route_to_lsc = false;
dev->requires_padding = false;
/* The ISL_DEV macros may be defined in the CFLAGS, thus hardcoding some
* device properties at buildtime. Verify that the macros with the device