mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
isl: Make sure isl_device::requires_padding is always initialized
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:
parent
844087c6e7
commit
b6b13bf9df
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue