[Webkit-unassigned] [Bug 199895] [WHLSL] MTLComputePipelineState creation fails with "Compiler encountered an internal error." message
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 18 16:32:47 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=199895
--- Comment #5 from Justin Fan <justin_fan at apple.com> ---
[numthreads(${threadsPerThreadgroup}, 1, 1)]
compute void horizontal(device uint[] origBuffer : register(u${originalBufferBindingNum}),
device uint[] outputBuffer : register(u${outputBufferBindingNum}),
float3 groupThreadID : SV_GroupThreadID,
float3 dispatchThreadID : SV_DispatchThreadID)
{
uint localIndex = uint(groupThreadID.x);
uint2 globalIndex = uint2(uint(dispatchThreadID.x), uint(dispatchThreadID.y));
threadgroup uint[${cacheSize}] gCache;
if (localIndex < ${blurRadius}) {
uint x = uint(max(int(localIndex) - ${blurRadius}, 0));
gCache[localIndex] = origBuffer[globalIndex.y * ${image.width} + x];
}
if (localIndex >= ${nMinusBlurRadius}) {
uint x = min(globalIndex.x + ${blurRadius}, uint(${image.width} - 1));
gCache[localIndex] = origBuffer[globalIndex.y * ${image.width} + x];
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190718/3609d30c/attachment-0001.html>
More information about the webkit-unassigned
mailing list