HLSL Compiler and d3dcompiler_xx.dll

Stefan Dösinger stefandoesinger at gmx.at
Wed Apr 14 09:27:03 CDT 2010


Am 14.04.2010 um 15:44 schrieb Henri Verbeet:

> On 14 April 2010 15:07, Stefan Dösinger <stefandoesinger at gmx.at> wrote:
>>> 3) Implement the compiler in d3dcompiler_xx.
>> I wrote a basic HLSL compiler as university project in 2008, this is where part of the assembler code came from. Do you have the sources, do you need them?
>> 
> Quite frankly, I also believe that's where some of the issues in the
> early versions of those assembler patches came from. I don't know if
> that compiler has seen any work since 2008, but I'd be careful with
> taking it as too much of an example.
Yep, I recommend using Mattheo's code if possible. He has rebased my old code and fixed a bunch of issues. Beyond that, my compiler is fairly minimalistic. I think it supports most features except arrays(needs loop unrolling support). However, the optimizer is fairly simplistic. For better optimizations you may want to investigate SSA transformations and related stuff. I guess perfect optimization isn't a requirement for a first version though.

Just in case my git tree is here: http://84.112.174.163/~stefan/wine/ . It's not online all the time, and I am not guaranted a fixed IP(although it hasn't changed in years), so check it out as long as you can if you need it.


More information about the wine-devel mailing list