diff options
author | Aaron Watry <[email protected]> | 2014-07-02 16:27:31 -0500 |
---|---|---|
committer | Aaron Watry <[email protected]> | 2014-07-03 15:18:03 -0500 |
commit | 824197efd526dec5623b37f2c6078c212c81eb2b (patch) | |
tree | e231885cf690d4fe947fb72a3731b7d3cbc8fd7f /src/mesa/state_tracker | |
parent | 7f0420700c473caee00a84596b22a600a7517b4d (diff) |
radeon/llvm: Allocate space for kernel metadata operands
Previously, we were assuming that kernel metadata nodes only had 1 operand.
Kernels which have attributes can have more than 1, e.g.:
!0 = metadata !{void (i32 addrspace(1)*)* @testKernel, metadata !1}
!1 = metadata !{metadata !"work_group_size_hint", i32 4, i32 1, i32 1}
Attempting to get the kernel without the correct number of attributes led
to memory corruption and luxrays crashing out.
Fixes the cl/program/execute/attributes.cl piglit test.
Signed-off-by: Aaron Watry <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76223
CC: "10.2" <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
0 files changed, 0 insertions, 0 deletions