Граф коммитов

83 Коммитов

Автор SHA1 Сообщение Дата
Jaebaek Seo a56693ee05
[spirv] update SPIRV-Tools and SPIRV-Headers (#2199) 2019-05-22 09:41:16 -04:00
Ehsan 09a9497ca8
[spirv] Update SPIRV-Tools (get storage class opt fix). (#2116) 2019-04-10 11:35:52 -04:00
Ehsan 2da31a2187
[spirv] Update SPIRV-Tools and SPIRV-Headers. (#2102) 2019-04-03 17:35:03 -04:00
Ehsan 05ba6aa8f9
[spirv] Update SPIRV-Tools and SPIRV-Headers. (#1984) 2019-02-27 20:25:10 -05:00
Ehsan Nasiri 0cb2899a32 [spirv] Migration to v2 with latest SPIRV-Tools 2019-02-08 13:46:44 -05:00
Steven Perron 00554fc8ab [spirv] Update Spriv-tools and Spriv-Headers (#1764)
* Update spirv-tools and spirv-headers.

Update the submodules.  There is no particular commit that is needed, but
it is good to not fall too far behind.

* Remove AtomicCounter bit on atomic operations.

The bit is ignored in the vulkan environment.  It does nothing.

* Update tests.
2018-12-12 09:12:52 -05:00
Minmin Gong c443f019e6 Skip external libraries if they are already included in parent project (#1728) 2018-11-21 07:22:07 -05:00
Lei Zhang ef9d3fda8e
[spirv] Refresh SPIRV-Tools for new validation and bug fixes (#1615)
Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1598
2018-10-19 18:04:44 -04:00
Lei Zhang a008bbc5c9
[spirv] Update SPIRV-Tools for bugfixes (#1594)
Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1588
2018-10-12 12:38:42 -04:00
Lei Zhang 0b2ce6a5ee
[spirv] Update SPIRV-Tools for bug fixes (#1585)
* Removed dangling OpDecorateId
* Stopped scalarizing spec constant sized arrays
* Added a bunch validation checks

Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1528
2018-10-05 10:05:04 -04:00
Lei Zhang 1f4d17985a
[spirv] Update SPIRV-Tools for bug fixes (#1580) 2018-10-02 09:40:55 -04:00
Lei Zhang 8e6b468c4d
[spirv] Fix Wave*CountBits() and improve compilation time (#1574)
Fixed the compilation time regression introduced by loop
unrolling by updating SPIRV-Tools.
2018-09-27 12:20:23 -04:00
Lei Zhang de2736fe9a
[spirv] Enable loop unrolling in legalization (#1553) 2018-09-20 10:18:15 -04:00
Lei Zhang 1d850724c3
[spirv] Update external projects (#1546) 2018-09-18 15:47:41 -04:00
Lei Zhang 815c450f56
[spirv] Update SPIRV-Tools for bugfixes and workarounds (#1510) 2018-08-23 16:39:14 -04:00
Lei Zhang 4723ad416e
[spirv] Update SPIRV-Tools for fixes (#1507) 2018-08-21 14:11:02 -04:00
Lei Zhang 698dadd629
[spirv] Refresh dependencies & disable validation before optimization (#1504) 2018-08-20 16:48:54 -04:00
Lei Zhang b0366437d1
[spirv] Update SPIRV-Tools (#1482) 2018-08-02 14:44:00 -04:00
Ehsan 90103b38c2
[spirv] Expose -Oconfig for running custom optimizer recipes (#1466) 2018-07-31 13:49:19 -04:00
Lei Zhang 12c5b89389
[spirv] Fix constant type mismatch in SPIRV-Tools (#1427) 2018-07-16 15:15:41 -04:00
Lei Zhang 01aad25f44
[spirv] Pull in vector shuffle fixes in SPIRV-Tools (#1424) 2018-07-13 19:09:11 -04:00
Lei Zhang 56ffc8a239
[spirv] Fix Vulkan layout struct member alignment error (#1418)
For VK_HKR_relaxed_block_layout, a vector inside structs can have
its offset as a multiple of its base element type's alignment.
But the vector's alignment is unaffected, esp. when used for
calculating the alignment of the whole enclosing struct.

Also enables SPIRV-Tools validation on block layouts.
2018-07-12 11:50:16 -04:00
Lei Zhang a2dc672b9d
[spirv] Update SPIRV-Headers & SPIRV-Tools (#1404) 2018-07-05 15:28:32 -04:00
Lei Zhang f13e38579d
[spirv] Pull in optimization fix for un-merging struct types (#1395) 2018-06-29 17:10:23 -04:00
Lei Zhang f21c44400a
[spirv] Update SPIRV-Tools for not merging resource types (#1385)
Keeping the original struct type is important for some reflection
workflows.

The validation check for layout is alo included. But we disable
it for now and will re-enable it after fixing all the failures.

Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1364
2018-06-27 20:54:38 -04:00
Lei Zhang e142881084
[spirv] Update external dependencies (#1355) 2018-06-19 20:04:22 -04:00
Ehsan eb37d4ae2b
[spirv] Update SPIRV-Tools. (#1348) 2018-06-12 15:00:48 -04:00
Greg Roth f8fa9c92a0 [linux-port] disable covered-switch-default warning (#1332)
Defaults in switch statments can mask warnings that might
indicate that a new enum value was added and corresponding changes
to a switch statement that relies on that enum are missed. For this
reason, clang reports when switch statements that fully define case
statements for all possible enum values contain default: statements.

However, this is a warning of a potential problem that might arise
from future changes to the code rather than anything that might be
wrong now. Additionally, while unlikely that an enum switch might
be presented with a value that isn't valid for that enum, it isn't
impossible. So rather than respect this warning, we will silence it.
It's not included by default. LLVM wanted it. We don't, so it's
removed. This makes the earlier external cmake change unnecessary.
Ignores 34 clang warnings
2018-06-04 05:53:02 +08:00
Greg Roth 4aa0f706c8 [linux-port] Fix spirv test warnings (#1337)
clang-spirv-tests uses a lot of external projects that keep
themselves clean with different standards of warnings flags.
This alters the appropriate cmake files to disable flags that
the DXC build enables.
Fixes 72 gcc and 166 clang warnings.

Additionally catch some sign mismatch comparisons in tests
built as part of clang-spirv-tests.
Fixes 2 gcc and 2 clang warnings, but one of them has multiple sources
So it's kind of a lot more.
2018-06-02 04:16:29 -04:00
Ehsan fb581f6228
[spirv] Update SPIR-V Tools. (#1334) 2018-06-01 12:45:40 -04:00
Ehsan 37c35f2f6e
[linux-port] Update CMake files. prepare for Linux. (#1312)
This CL makes changes to CMake files in order to:
1- disable things that are not supported on non-Windows platforms.
2- make cross-platform compilation possible.

It also brings back LLVM's config.guess (mirrors:
https://github.com/llvm-mirror/llvm/blob/master/cmake/config.guess)
2018-05-29 15:19:37 -04:00
Lei Zhang 24dcc8c8bc
[spirv] Update external projects (#1303) 2018-05-23 15:23:17 -04:00
Lei Zhang d849dc2b86
[spirv] Support ViewportIndex & Layer in VS and DS (#1290)
Using SV_RenderTargetArrayIndex (translated into Layer builtin)
and SV_ViewportArrayIndex (translated into ViewportIndex builtin)
in VS and DS output requires the SPV_EXT_shader_viewport_index_layer
extension.
2018-05-16 15:01:46 -04:00
Lei Zhang f1a032e946
[spirv] Update external dependencies (#1286)
* ConstOffsets now requires ImageGatherExtended capability
* This reverts commit ea1bf8d24c.
2018-05-14 16:48:20 -04:00
Greg Roth e7973d1525 Match throws and use standard string exception (#1264)
Some compilers require function prototypes and bodies to match with
throw() attributes. This corrects them.

Additionally, it replaces thrown std::exceptions with a string
parameter with runtime_errors, which can take a string on any
system.

Finally, I moved GetPosition in FileIOHelper.cpp to its proper
place with the rest of the AbstractMemoryStream implementation
instead of grouping it with the IDxcBlob implementation

Nonfunctional change. Just inching toward cross platform compatibility
2018-05-08 15:06:07 -04:00
Lei Zhang 534609c016
[spirv] Refresh SPIRV-Tools (#1262) 2018-05-07 13:01:19 -04:00
Lei Zhang b999582c7b
[spirv] Update external projects (#1255) 2018-04-27 16:59:55 -04:00
Ehsan a532921034
[spirv] Update SPIR-V Tools. (#1252) 2018-04-26 16:04:32 -04:00
Ehsan ed3628ccd0
[spirv] Update SPIR-V Tools. (#1247) 2018-04-24 16:48:36 -04:00
Lei Zhang 72af488d75
[spirv] Update SPIRV-Tools for compilation speed improvements (#1240) 2018-04-18 18:39:36 -04:00
Lei Zhang c2993ddf37
[spirv] Stop emitting SPV_GOOGLE_decorate_string (#1229)
Its functionality is subsumed by SPV_GOOGLE_hlsl_functionality1.

See https://github.com/KhronosGroup/SPIRV-Registry/pull/4
2018-04-16 10:19:51 -04:00
Lei Zhang db417e9ad5
[spirv] Update external projects (#1205) 2018-04-09 10:10:49 -04:00
Lei Zhang 3a6c072fd1
[spirv] Refresh SPIRV-Tools (#1197)
* Canged to use max_digits10 for float precision
* Fixed bugs regarding OpImageTexelPointer

Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1194
2018-04-05 12:41:26 -04:00
Ehsan 677eaa83cb
[spirv] Update SPIR-V Tools. (#1185) 2018-03-29 12:32:33 -04:00
Ehsan 4e5e56d0cd
[spirv] Update SPIR-V Tools and Fix Builtin usage. (#1183)
Support uint/uint2 for DispatchThreadID
Support uint/uint2 for GroupThreadID
Support uint/uint2 for GroupID

Also updated SPIR-V Tools.
2018-03-27 13:06:27 -04:00
Ehsan e2f2942a45
[spirv] Update SPIRV-Tools and SPIRV-Headers. (#1163) 2018-03-21 13:54:56 -04:00
Lei Zhang 5a4987c664
[spirv] Update SPIRV-Headers & SPIRV-Tools (#1154)
* SPIRV-Tools now uses unified grammar tables.
* SPIRV-Tools merge return pass now can handle structured CFG.
2018-03-19 17:36:33 -04:00
Ehsan 3dea2cbcc4
[spirv] Update SPIRV-Tools and SPIRV-Headers. (#1143) 2018-03-15 14:00:41 -04:00
Lei Zhang cac1bd02a5
[spirv] Refresh external projects (#1139) 2018-03-13 17:17:03 -04:00
Lei Zhang 89bc301735
[spirv] Refresh external projects for SPIR-V 1.3 (#1117) 2018-03-07 14:07:48 -05:00