https://bugs.freedesktop.org/show_bug.cgi?id=91556
--- Comment #14 from Vedran Miletić <ved...@miletic.net> ---
Should be fixed in LLLVM 4.0 with:
commit 5cb9343f53d83c9a8a33aac5b2ce01672ff02cf3
Author: Matt Arsenault <matthew.arsena...@amd.com>
Date: Mon Aug 22 19:25:59 2016 +0000
AMDGPU: Handle structs directly in AMDGPUABIInfo
Structs are currently handled as pointer + byval, which makes AMDGPU
LLVM backend generate incorrect code when structs are used. This patch
changes struct argument to be handled directly and without flattening,
which Clover (Mesa 3D Gallium OpenCL state tracker) will be able to
handle. Flattening would expand the struct to individual elements and
pass each as a separate argument, which Clover can not
handle. Furthermore, such expansion does not fit the OpenCL
programming model which requires to explicitely specify each argument
index, size and memory location.
Patch by Vedran Miletić
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279463
91177308-0d34-0410-b5e6-96231b3b80d8
Please recheck.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev