Skip to content

Commit a4d8c1d

Browse files
committed
Merge branch 'main' of https://github.com/microsoft/DirectXShaderCompiler into combine-and-move-linalg-ast-tests
2 parents 172a794 + 05de2c9 commit a4d8c1d

46 files changed

Lines changed: 1679 additions & 255 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/clang-format-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
--end-rev $END_REV \
8383
--changed-files "$CHANGED_FILES"
8484
apply_diff:
85-
if: ${{ github.event_name == 'issue_comment' && endsWith(github.event.comment.body, '- [x] Check this box to apply formatting changes to this branch.') }}
85+
if: ${{ github.event_name == 'issue_comment' && github.event.comment.user.login == 'github-actions[bot]' && endsWith(github.event.comment.body, '- [x] Check this box to apply formatting changes to this branch.') }}
8686
runs-on: ubuntu-latest
8787
env:
8888
TMP_DIFF_FILE: /tmp/diff.patch

azure-pipelines.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ stages:
7878

7979
variables:
8080
macOS: macOS-latest
81-
linux: Ubuntu-22.04 # FIXME: #7364, DXC does not build correctly with GCC 13+
81+
linux: Ubuntu-24.04
8282

8383
strategy:
8484
matrix:
@@ -99,13 +99,13 @@ stages:
9999
Linux_Gcc_Release:
100100
image: ${{ variables.linux }}
101101
configuration: Release
102-
CC: gcc-9
103-
CXX: g++-9
102+
CC: gcc
103+
CXX: g++
104104
Linux_Gcc_Debug:
105105
image: ${{ variables.linux }}
106106
configuration: Debug
107-
CC: gcc-9
108-
CXX: g++-9
107+
CC: gcc
108+
CXX: g++
109109
CMAKE_OPTS: -DLLVM_USE_SPLIT_DWARF=On
110110
MacOS_Clang_Release:
111111
image: ${{ variables.macOS }}
@@ -144,11 +144,6 @@ stages:
144144
displayName: 'Installing dependencies'
145145
condition: eq(variables['image'], variables['linux'])
146146
147-
- bash: |
148-
sudo apt-get install g++-9 -y
149-
displayName: 'Installing g++-9'
150-
condition: and(eq(variables['CXX'], 'g++-9'), eq(variables['image'], variables['linux']))
151-
152147
- bash: |
153148
brew update
154149
brew install ninja

cmake/modules/HandleLLVMOptions.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ if(NOT LLVM_FORCE_USE_OLD_TOOLCHAIN)
1616
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.7)
1717
message(FATAL_ERROR "Host GCC version must be at least 4.7!")
1818
endif()
19+
# GCC 13 has a known miscompilation bug in -funswitch-loops
20+
# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109934) that causes
21+
# widespread test failures at -O3. Disable -funswitch-loops for GCC 13.
22+
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0 AND
23+
CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14.0)
24+
add_compile_options(-fno-unswitch-loops)
25+
message(STATUS "Disabling -funswitch-loops due to GCC 13 miscompilation bug (PR109934)")
26+
endif()
1927
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
2028
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.1)
2129
message(FATAL_ERROR "Host Clang version must be at least 3.1!")

docs/CommandGuide/FileCheck.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ OPTIONS
6060
-verify``. With this option FileCheck will verify that input does not contain
6161
warnings not covered by any ``CHECK:`` patterns.
6262

63+
.. option:: -D<VAR=VALUE>
64+
65+
Sets a filecheck variable ``VAR`` with value ``VALUE`` that can be used in
66+
``CHECK:`` lines.
67+
6368
.. option:: -version
6469

6570
Show the version number of this program.

docs/ReleaseNotes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ line upon naming the release. Refer to previous for appropriate section names.
4141

4242
- Fixed non-deterministic DXIL/PDB output when compiling shaders with resource arrays, debug info, and SM 6.6+. [#8171](https://github.com/microsoft/DirectXShaderCompiler/issues/8171)
4343
- Fixed mesh shader semantics that were incorrectly case sensitive.
44+
- DXIL validation: added validation for `CreateHandleFromBinding`.
45+
- DXIL validation now rejects non-standard integer bit widths (e.g. `i25`) in instructions.
46+
47+
#### Other Changes
48+
49+
- `/P` now matches `cl.exe` behavior: preprocesses to `<inputname>.i` by
50+
default, with `/Fi` to override the output filename. The old FXC-style `/P
51+
<filename>` positional syntax has been renamed to `/Po`.
52+
[#4611](https://github.com/microsoft/DirectXShaderCompiler/issues/4611).
53+
4454

4555
### Version 1.9.2602
4656

include/dxc/DxilRootSignature/DxilRootSignature.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static const uint32_t DxilMapAnisotropy = 16;
5555

5656
// Enumerations and flags.
5757
enum class DxilComparisonFunc : unsigned {
58+
None = 0,
5859
Never = 1,
5960
Less = 2,
6061
Equal = 3,

include/dxc/Support/HLSLOptions.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ def Lx : Flag<["-", "/"], "Lx">, HelpText<"Output hexadecimal literals">, Group<
514514
// In place of 'E' for clang; fxc uses 'E' for entry point.
515515
def P : Flag<["-", "/"], "P">, Flags<[CoreOption, DriverOption]>, Group<hlslutil_Group>,
516516
HelpText<"Preprocess to file">;
517+
def Po : Flag<["-", "/"], "Po">, Flags<[CoreOption, DriverOption]>, Group<hlslutil_Group>,
518+
HelpText<"Preprocess to file (deprecated, use /P /Fi instead)">;
517519

518520
// @<file> - options response file
519521

include/dxc/dxcapi.internal.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ enum LEGAL_INTRINSIC_COMPTYPES {
142142
LICOMPTYPE_VK_BUFFER_POINTER = 56,
143143
LICOMPTYPE_VK_SAMPLED_TEXTURE2D = 57,
144144
LICOMPTYPE_VK_SAMPLED_TEXTURE2D_ARRAY = 58,
145-
LICOMPTYPE_COUNT = 59
145+
LICOMPTYPE_VK_SAMPLED_TEXTURE2DMS = 59,
146+
LICOMPTYPE_VK_SAMPLED_TEXTURE2DMS_ARRAY = 60,
147+
LICOMPTYPE_COUNT = 61
146148
#else
147149
LICOMPTYPE_COUNT = 56
148150
#endif

0 commit comments

Comments
 (0)