mesa/src
Jason Ekstrand c9981574c1 compiler/types: Don't place members in the previous substruct's end padding
With the following structures :

  struct StructA
  {
     uint64_t value0;
     uint8_t  value1;
  };

  struct TopStruct
  {
     struct StructA a;
     uint8_t value3;
  };

Currently offsetof(struct TopStruct, value3) = 9. While the same code
on the CPU gives offsetof(struct TopStruct, value3) = 16.

This is impacting OpenCL kernels we're trying to use to build
acceleration structures.

v2: Add comment/link to some description of the alignment/size
    computation

Cc: mesa-stable
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16940>
(cherry picked from commit 133620196d)
2022-06-15 16:12:58 -07:00
..
amd ac/gpu_info: always retile DCC on gfx10 and newer chips 2022-06-08 10:58:17 -07:00
android_stub android_stub: update platform headers to include atrace 2021-10-09 00:42:32 +00:00
asahi asahi: Port driver to macOS 12.x ABI 2022-03-22 00:19:30 +00:00
broadcom v3dv: Add emulated timeline semaphore support 2022-04-13 17:22:14 +00:00
compiler compiler/types: Don't place members in the previous substruct's end padding 2022-06-15 16:12:58 -07:00
drm-shim drm-shim: Implement a shim function for close 2022-04-12 10:01:39 +00:00
egl egl/wayland: skip buffer creation on zink 2022-06-07 13:17:38 -07:00
etnaviv ci: update various ci result files 2022-03-11 09:58:28 +00:00
freedreno freedreno: remove stale makefile 2022-06-07 13:17:38 -07:00
gallium zink: always create descriptor templates 2022-06-15 16:12:58 -07:00
gbm gallium: Learn about kopper 2022-04-07 00:17:40 +00:00
getopt
glx glx: set max values for pbuffer width / height 2022-05-17 10:27:32 -07:00
gtest gtest: Fix output of array ASSERT/EXPECT macros 2021-11-11 09:53:09 -08:00
hgl
imagination pvr: Implement vkCreateQueryPool() and vkDestroyQueryPool(). 2022-04-13 17:58:03 +00:00
imgui
intel intel/compiler: Fix uncompaction of signed word immediates on Tigerlake 2022-06-07 13:17:38 -07:00
loader gallium/dri: add missing PIPE_BIND_DRI_PRIME handling 2022-02-08 00:13:07 +00:00
mapi glthread: call _mesa_glthread_BindBuffer unconditionally 2022-02-01 06:11:22 +00:00
mesa mesa/program: fix nir output reg overflow 2022-06-07 13:17:38 -07:00
microsoft microsoft/spirv_to_dxil: Fix the push_constant UBO size calculation 2022-06-07 13:17:38 -07:00
nouveau
panfrost pan/mdg: Remove uppercase write masks 2022-06-07 13:17:39 -07:00
tool pps: Open writable renderer node in DrmDevice::create 2022-05-13 10:05:22 -07:00
util format_utils: properly parenthesize macro params 2022-06-07 13:17:38 -07:00
virtio venus: prepare and feed renderer protocol info into cs 2022-04-09 00:19:05 +00:00
vulkan vulkan/wsi: fix extra free if buffer_blit_queue 2022-06-01 14:10:28 -07:00
meson.build microsoft: Initial vulkan-on-12 driver 2022-03-25 16:21:45 +00:00