| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
microsoft/compiler: Pick up new dxcapi.h This is more up-to-date with what's on GitHub, and more importantly, it embeds some of the non-Windows support logic in the header, instead of shelling out to a nonexistent header. Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7937> | 5 年前 | |
microsoft/compiler: add dxil-util code This is support-code to emit the DirectX Intermediate Language, which is a dialect of LLVM 3.7 bitcode. Because modern versions of LLVM doesn't support emitting bitcode for older versions, and we can't rely on an old LLVM version because we need the OpenCL support from Clang later on, we instead implement our own LLVM bitcode encoder as part of this work. See the official DXIL documentation for more details on DXIL: https://github.com/Microsoft/DirectXShaderCompiler/blob/master/docs/DXIL.rst The reason this comes as a separate library, is because we're also using this code as the basis for an OpenCL C compiler, which will follow as a separate merge-request later. This is the combination of more than 230 commits from our development branch, including the work from several authors. Co-authored-by: Bill Kristiansen <billkris@microsoft.com> Co-authored-by: Boris Brezillon <boris.brezillon@collabora.com> Co-authored-by: Daniel Stone <daniels@collabora.com> Co-authored-by: Gert Wollny <gert.wollny@collabora.com> Co-authored-by: Jesse Natalie <jenatali@microsoft.com> Co-authored-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477> | 5 年前 | |
d3d12: Fix GCC warnings for missing function prototypes Most of these are adding 'static', for functions that are local to a translation unit but weren't declared static. There's one instance of a missing include for bringing the prototype into the translation unit, one function missing a return type (default-int), and one which added inline to avoid it being considered unused in some sources. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7780> | 5 年前 | |
microsoft/compiler: add dxil-util code This is support-code to emit the DirectX Intermediate Language, which is a dialect of LLVM 3.7 bitcode. Because modern versions of LLVM doesn't support emitting bitcode for older versions, and we can't rely on an old LLVM version because we need the OpenCL support from Clang later on, we instead implement our own LLVM bitcode encoder as part of this work. See the official DXIL documentation for more details on DXIL: https://github.com/Microsoft/DirectXShaderCompiler/blob/master/docs/DXIL.rst The reason this comes as a separate library, is because we're also using this code as the basis for an OpenCL C compiler, which will follow as a separate merge-request later. This is the combination of more than 230 commits from our development branch, including the work from several authors. Co-authored-by: Bill Kristiansen <billkris@microsoft.com> Co-authored-by: Boris Brezillon <boris.brezillon@collabora.com> Co-authored-by: Daniel Stone <daniels@collabora.com> Co-authored-by: Gert Wollny <gert.wollny@collabora.com> Co-authored-by: Jesse Natalie <jenatali@microsoft.com> Co-authored-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477> | 5 年前 | |
microsoft/compiler: Support multiple GS output streams Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14787> | 1 年前 | |
microsoft/compiler: Fix typo in enum entry Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14399> | 1 年前 | |
microsoft/compiler: Support emitting multiple functions into a DXIL module The instruction and block lists are moved into a new "function definition" struct, and the DXIL module tracks one at a time for adding instructions into. The NIR side still only emits the main function here though. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14399> | 1 年前 | |
microsoft/compiler: add dxil-util code This is support-code to emit the DirectX Intermediate Language, which is a dialect of LLVM 3.7 bitcode. Because modern versions of LLVM doesn't support emitting bitcode for older versions, and we can't rely on an old LLVM version because we need the OpenCL support from Clang later on, we instead implement our own LLVM bitcode encoder as part of this work. See the official DXIL documentation for more details on DXIL: https://github.com/Microsoft/DirectXShaderCompiler/blob/master/docs/DXIL.rst The reason this comes as a separate library, is because we're also using this code as the basis for an OpenCL C compiler, which will follow as a separate merge-request later. This is the combination of more than 230 commits from our development branch, including the work from several authors. Co-authored-by: Bill Kristiansen <billkris@microsoft.com> Co-authored-by: Boris Brezillon <boris.brezillon@collabora.com> Co-authored-by: Daniel Stone <daniels@collabora.com> Co-authored-by: Gert Wollny <gert.wollny@collabora.com> Co-authored-by: Jesse Natalie <jenatali@microsoft.com> Co-authored-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477> | 5 年前 | |
microsoft/compiler: Misc fixes caught by GCC * Fix const-correctness on dxil_mdnode pointer arrays * Fix warning for a missing scope in a case block Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7780> | 5 年前 | |
microsoft/compiler: Handle structs in I/O signatures Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Reviewed-By: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14837> | 1 年前 | |
microsoft/compiler: Support multiple GS output streams Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14787> | 1 年前 | |
microsoft/compiler: Handle domain location intrinsic Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14399> | 1 年前 | |
microsoft/compiler: Handle load_sample_pos_at_id Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14624> | 1 年前 | |
microsoft/compiler: ralloc incoming phi-values Reserving 127 incoming values for every phi instruction is neither robust nor memory efficient. Let's ralloc this array instead when filling it. This way, we only pay for what we use here. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15519> | 1 年前 | |
microsoft/compiler: remove phi-value limit There's no guarantee that we don't have more than 128 PHI values either, so let's stop asuming so. We do this by changing dxil_phi_set_incoming to dxil_phi_add_incoming, which lets us add more incoming phi-values to the current one instead of setting a new set of them. This also lets us reduce these stack-arrays a bit, down to something much more reasonable. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15519> | 1 年前 | |
microsoft/compiler: remove phi-value limit There's no guarantee that we don't have more than 128 PHI values either, so let's stop asuming so. We do this by changing dxil_phi_set_incoming to dxil_phi_add_incoming, which lets us add more incoming phi-values to the current one instead of setting a new set of them. This also lets us reduce these stack-arrays a bit, down to something much more reasonable. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15519> | 1 年前 | |
microsoft/compiler: Fix dxil_nir_lower_double_math_instr pass for vectors Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Reviewed-By: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14837> | 1 年前 | |
d3d12: Properly set HS input control point count Looks like some hardware needs this info in the shader to match the topology. Since there's no spot in the shader info for it, we're currently using the array size of the TCS input vars to store it. Cc: mesa-stable Reviewed-by: Paul Dodzweit <paul.dodzweit@amd.com> Tested-by: Paul Dodzweit <paul.dodzweit@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16920> (cherry picked from commit cc805aef69d48720b929531f0338e4cc79cda5e5) Conflicts: src/microsoft/compiler/dxil_nir.h | 1 年前 | |
microsoft/compiler: Remove algebaric pass for inot Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14140> | 1 年前 | |
nir: Drop the unused instr arg for src/dest copy functions. Now that we don't use ralloc, we don't need this arg to get at the right ralloc ctx. Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11776> | 1 年前 | |
microsoft/compiler: translate nir to dxil Here's the code to emit DXIL code from NIR. It's big and bulky as-is, and it needs to be split up a bit. This is the combination of a lot of commits from our development branch, containing code by several authors. Co-authored-by: Bill Kristiansen <billkris@microsoft.com> Co-authored-by: Boris Brezillon <boris.brezillon@collabora.com> Co-authored-by: Daniel Stone <daniels@collabora.com> Co-authored-by: Gert Wollny <gert.wollny@collabora.com> Co-authored-by: Jesse Natalie <jenatali@microsoft.com> Co-authored-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477> | 5 年前 | |
d3d12: Properly set HS input control point count Looks like some hardware needs this info in the shader to match the topology. Since there's no spot in the shader info for it, we're currently using the array size of the TCS input vars to store it. Cc: mesa-stable Reviewed-by: Paul Dodzweit <paul.dodzweit@amd.com> Tested-by: Paul Dodzweit <paul.dodzweit@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16920> (cherry picked from commit cc805aef69d48720b929531f0338e4cc79cda5e5) Conflicts: src/microsoft/compiler/dxil_nir.h | 1 年前 | |
microsoft/compiler: Fill interpolation for sysval inputs to non-vertex shader Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5483 Reviewed-by: Michael Tang <tangm@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14984> | 1 年前 | |
microsoft/compiler: Handle clip/cull distance as an input to tess shaders In order to get the semantics right, we need to know how many of the clip/ cull fields are designated for which purpose. In the case of a shader that can receive these fields as both input and output, the shader_info property is reserved to store the output info. We could add a dedicated input field to shader_info, but since it'd probably only be useful for us, just send it through a side channel during shader linking. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14399> | 1 年前 | |
microsoft/compiler: Unload DXIL validator library *after* calling Release() Otherwise, the code to actually run Release() might not be loaded or callable anymore. Fixes: 193cf76c ("microsoft/compiler: add common dxil-validator API") Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16225> (cherry picked from commit ab9d649ac3c734f5c031cd3dac264aa2a8cca248) | 1 年前 | |
microsoft/compiler: add common dxil-validator API This API is only available on Windows, which is the only OS where DXIL validation is a requirement, and where DXIL.dll (and dxcompiler.dll) are available. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15751> | 1 年前 | |
microsoft/compiler: add common dxil-validator API This API is only available on Windows, which is the only OS where DXIL validation is a requirement, and where DXIL.dll (and dxcompiler.dll) are available. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15751> | 1 年前 | |
microsoft/compiler: Images are no longer reprensented by uniform vars emit_barrier_impl() was still checking the nir_var_uniform flag to detect images, which is no longer correct. Fixes: cfdc7ee066e ("spirv: Use nir_var_mem_image") Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926> (cherry picked from commit 303175cfecb166cc69736c1405ac2d3bbee9d82c) | 1 年前 | |
microsoft/compiler: Handle clip/cull distance as an input to tess shaders In order to get the semantics right, we need to know how many of the clip/ cull fields are designated for which purpose. In the case of a shader that can receive these fields as both input and output, the shader_info property is reserved to store the output info. We could add a dedicated input field to shader_info, but since it'd probably only be useful for us, just send it through a side channel during shader linking. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14399> | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 5 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 |