<div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">I have not been using LLVM. I was concerned about license conflicts. So I've been writing fresh code based on the LLVM and DXIL documentation.</div><div dir="ltr"><br></div><div dir="ltr">I'll see about setting up a repo somewhere.</div><div dir="ltr"><br></div><div dir="ltr">Greg<br><div><span><br></span></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 18, 2019 at 8:21 AM Hans-Kristian Arntzen <<a href="mailto:post@arntzen-software.no">post@arntzen-software.no</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><br>
</p>
<div>On 10/18/19 4:15 PM, Greg Roth wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I confess I got a bit sidelined on this by some
other projects, but I'm at a point where I can take it up again.
<div><br>
</div>
<div>The status is that I can parse the DXIL produced by DXC for
a simple passthrough shader, but I can't generate the spir-v
yet.</div>
</div>
</blockquote>
<p>Are you using LLVM to parse the DXIL bitcode? I've been able to
parse the IL fully that way, but haven't done anything related to
codegen.</p>
<p>Most of the (little) time I've spent so far as been coming up
with an algorithm to convert DXIL's unstructured control flow to
something which conforms to SPIR-V's structured model.<br>
</p>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>I didn't think that was sufficient progress to wrap into a
patch and get feedback on, but if you'd like to see it, I can
polish it up and do so.</div>
</div>
</blockquote>
<p>If you have a repo somewhere it could be interesting to take a
look.</p>
<p>Cheers,<br>
Hans-Kristian<br>
</p>
<p><br>
</p>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Greg<br>
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div><span><br>
</span></div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Oct 18, 2019 at 8:10
AM Hans-Kristian Arntzen <<a href="mailto:post@arntzen-software.no" target="_blank">post@arntzen-software.no</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi.
There's this thread from September <br>
(<a href="https://www.winehq.org/pipermail/wine-devel/2019-September/150657.html" rel="noreferrer" target="_blank">https://www.winehq.org/pipermail/wine-devel/2019-September/150657.html</a>)
<br>
(Sorry, can't reply to it directly, as I wasn't on the ML at
the time). <br>
I'd like to dig into DXIL translation, but there is risk of
duplicating <br>
work.<br>
<br>
Greg: Got any status update?<br>
<br>
Cheers,<br>
Hans-Kristian<br>
<br>
</blockquote>
</div>
</blockquote>
</div>
</blockquote></div>