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

608 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 5852de760b
Bump cryptography from 41.0.6 to 42.0.4 in /utils/git (#6339)
Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.6
to 42.0.4.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst">cryptography's
changelog</a>.</em></p>
<blockquote>
<p>42.0.4 - 2024-02-20</p>
<pre><code>
* Fixed a null-pointer-dereference and segfault that could occur when
creating
a PKCS#12 bundle. Credit to **Alexander-Programming** for reporting the
  issue. **CVE-2024-26130**
* Fixed ASN.1 encoding for PKCS7/SMIME signed messages. The fields
``SMIMECapabilities``
and ``SignatureAlgorithmIdentifier`` should now be correctly encoded
according to the
  definitions in :rfc:`2633` :rfc:`3370`.
<p>.. _v42-0-3:</p>
<p>42.0.3 - 2024-02-15
</code></pre></p>
<ul>
<li>Fixed an initialization issue that caused key loading failures for
some
users.</li>
</ul>
<p>.. _v42-0-2:</p>
<p>42.0.2 - 2024-01-30</p>
<pre><code>
* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL
3.2.1.
* Fixed an issue that prevented the use of Python buffer protocol
objects in
  ``sign`` and ``verify`` methods on asymmetric keys.
* Fixed an issue with incorrect keyword-argument naming with
``EllipticCurvePrivateKey``

:meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey.exchange`,
  ``X25519PrivateKey``

:meth:`~cryptography.hazmat.primitives.asymmetric.x25519.X25519PrivateKey.exchange`,
  ``X448PrivateKey``

:meth:`~cryptography.hazmat.primitives.asymmetric.x448.X448PrivateKey.exchange`,
  and ``DHPrivateKey``

:meth:`~cryptography.hazmat.primitives.asymmetric.dh.DHPrivateKey.exchange`.
<p>.. _v42-0-1:</p>
<p>42.0.1 - 2024-01-24
</code></pre></p>
<ul>
<li>Fixed an issue with incorrect keyword-argument naming with
<code>EllipticCurvePrivateKey</code>

:meth:<code>~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey.sign</code>.</li>
<li>Resolved compatibility issue with loading certain RSA public keys in

:func:<code>~cryptography.hazmat.primitives.serialization.load_pem_public_key</code>.</li>
</ul>
<p>.. _v42-0-0:</p>
<p>42.0.0 - 2024-01-22</p>
<pre><code>
&lt;/tr&gt;&lt;/table&gt; 
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="fe18470f7d"><code>fe18470</code></a>
Bump for 42.0.4 release (<a
href="https://redirect.github.com/pyca/cryptography/issues/10445">#10445</a>)</li>
<li><a
href="aaa2dd06ed"><code>aaa2dd0</code></a>
Fix ASN.1 issues in PKCS#7 and S/MIME signing (<a
href="https://redirect.github.com/pyca/cryptography/issues/10373">#10373</a>)
(<a
href="https://redirect.github.com/pyca/cryptography/issues/10442">#10442</a>)</li>
<li><a
href="7a4d012991"><code>7a4d012</code></a>
Fixes <a
href="https://redirect.github.com/pyca/cryptography/issues/10422">#10422</a>
-- don't crash when a PKCS#12 key and cert don't match (<a
href="https://redirect.github.com/pyca/cryptography/issues/10423">#10423</a>)
...</li>
<li><a
href="df314bb182"><code>df314bb</code></a>
backport actions m1 switch to 42.0.x (<a
href="https://redirect.github.com/pyca/cryptography/issues/10415">#10415</a>)</li>
<li><a
href="c49a7a5271"><code>c49a7a5</code></a>
changelog and version bump for 42.0.3 (<a
href="https://redirect.github.com/pyca/cryptography/issues/10396">#10396</a>)</li>
<li><a
href="396bcf64c5"><code>396bcf6</code></a>
fix provider loading take two (<a
href="https://redirect.github.com/pyca/cryptography/issues/10390">#10390</a>)
(<a
href="https://redirect.github.com/pyca/cryptography/issues/10395">#10395</a>)</li>
<li><a
href="0e0e46f5f7"><code>0e0e46f</code></a>
backport: initialize openssl's legacy provider in rust (<a
href="https://redirect.github.com/pyca/cryptography/issues/10323">#10323</a>)
(<a
href="https://redirect.github.com/pyca/cryptography/issues/10333">#10333</a>)</li>
<li><a
href="2202123b50"><code>2202123</code></a>
changelog and version bump 42.0.2 (<a
href="https://redirect.github.com/pyca/cryptography/issues/10268">#10268</a>)</li>
<li><a
href="f7032bdd40"><code>f7032bd</code></a>
bump openssl in CI (<a
href="https://redirect.github.com/pyca/cryptography/issues/10298">#10298</a>)
(<a
href="https://redirect.github.com/pyca/cryptography/issues/10299">#10299</a>)</li>
<li><a
href="002e886f16"><code>002e886</code></a>
Fixes <a
href="https://redirect.github.com/pyca/cryptography/issues/10294">#10294</a>
-- correct accidental change to exchange kwarg (<a
href="https://redirect.github.com/pyca/cryptography/issues/10295">#10295</a>)
(<a
href="https://redirect.github.com/pyca/cryptography/issues/10296">#10296</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pyca/cryptography/compare/41.0.6...42.0.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cryptography&package-manager=pip&previous-version=41.0.6&new-version=42.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/microsoft/DirectXShaderCompiler/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-13 14:29:31 -05:00
Helena Kotas aaab2a708a
Use git rev-parse to get last commit sha (#6366)
Do not use `git describe`, it is using tags which might be out of date
and unrelated to the current build and version.
2024-02-29 12:00:39 -08:00
Tex Riddell 696a13a2a8
DxilValidation: add ShaderCompatInfo call graph checking (#6332)
ShaderCompatInfo identifies compatibility for functions that could be
called from an entry point.
Currently, this checking detects compatibility problems between entry
points and internal function calls that the validator otherwise misses.

This change adds a check for ShaderCompatInfo, recursing into called
functions looking for a source of conflict when not compatible with the
current entry point properties.
Errors are emitted for the entry point and at one source of each type of
conflict that ShaderCompatInfo detects.
A function is considered the source of a conflict when it has the
conflict but none of the functions called from this function have this
conflict.

Removed early exit for ShaderFlags validation when module is a library,
since these flags should be validated for libraries, and running
CollectShaderFlagsForModule fills in the ShaderCompatInfo data we need
for validation.

Also fixed tests for illegal barrier and derivative use, as well as
replacing the ignored MaxOutputRecords with the correct MaxRecords
attribute.

Fixes #6292.
2024-02-26 15:02:28 -08:00
Xiang Li 5dee81ce1d
Fix crash in DXIL.dll caused by illegal DXIL intrinsic. (#6302)
Replace assert on illegal DXIL op with return illegal value. Check the
illegal cases in validation.

Fixes #6168
2024-02-20 11:07:16 -08:00
Tex Riddell 2314d06cfe
New barrier DXIL Op fixes for Validation and RDAT function compatibility info (#6291)
Fix barrier allowed ops and flags by shader kind

New barrier operations lacked validation and for RDAT info: had
incorrect min target and shader stage flags.

- Identify barrier DXIL operations with new `is_barrier` in `hctdb.py`
and generated `OP::IsDxilOpBarrier`.
- Identify when a barrier op requires shader stage with group
(compute-like stage), or when it requires node memory.
- Add new `OptFeatureInfo_RequiresGroup` to identify function only
compatible with a shader stage with a visible group for access to
groupshared memory or use of group sync.
- Translate to original `BarrierMode` when compatible; adds
`BarrierMode::Invalid` to identify invalid cases.
- Account for `DXIL::MemoryTypeFlags::AllMemory` being allowed and
auto-masked by driver.
- Properly set min shader model and compatible shader stage flags.
- Validate barrier for shader stage.
- Added new barriers to counters which were missing.

Adressing parts of: #6256 and #6292
Fixes #6266
2024-02-20 10:44:34 -08:00
Tex Riddell df588beb48
NFC: Fix DXIL op is_const for Barrier and node create handle ops (#6280)
DXIL operations should use is_const=True for constant arguments. This
allows for convenience methods to retrieve the constant value, and could
(should, but currently doesn't) result in validation that the argument
is constant.

`BarrierByNodeRecordHandle` SemanticFlags argument must be constant.
`MetadataIdx` for both `createNodeOutputHandle` and
`CreateNodeInputRecordHandle` must be constant.
2024-02-15 15:45:45 -08:00
Joshua Batista cadf3bfed1
[Sema] Add final touches to wave size range implementation (#6202)
Upon further discussion, the team has agreed that in certain degenerate
cases, the current diagnostics are insufficient.
In the case that min == max in the wave size range attribute, a
defaultError warning should be emitted. Additionally, there should be an
explicit way to handle the case where 0,0,0 is passed to the wavesize
range attribute.
This PR directly handles and tests both of these cases.
Fixes #6161

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-10 02:15:59 +00:00
Tex Riddell 9c518dbd94
RDAT: Check flags and WaveSize for min SM; fix flag detection and merging (#6207)
Add ShaderKind::Last_1_8 for shader mask
Add shader model comments before flag groupings in DxilConstants.h and DxilShaderFlags.

Add missing flag checks for min shader model in RDAT function info. Move ShaderCompatInfo computation into DxilModule, propagate callee info.

Move computation of shader model requirements based on flags into DxilModule. Finalize requirements for entry functions in AdjustMinimumShaderModelAndFlags.

Fixes for function level flag tracking:
- DerivativesInMeshAndAmpShaders: use flag to track deriv use, then adjust for entry functions.
- hasUAVs: based on resource use in function instead of global resources.
- WriteableMSAATextures: based on use in function instead of global resources.
  - Also catch cases for dynamic res from any use by looking at create/annotate handle, not just the TextureStoreSample op.
- RaytracingTier1_1: move module-level detection to CollectShaderFlagsForModule
- Marked deriv and quad ops as being supported in node.
- Fixed SampleCmpBias to be considered gradient op.
- Update RDAT definitions to dump more useful info for testing

Fixes #6218.
2024-02-09 17:14:12 -08:00
Helena Kotas 9196dfb0fd
Update version to 1.8.2403 (#6210)
Update version to 1.8.2403 in preparation for DXC 1.8.2403 release.

Related to #6203
2024-01-26 14:50:48 -08:00
dependabot[bot] 0362f31fea
Bump cryptography from 41.0.4 to 41.0.6 in /utils/git (#6075)
Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.4
to 41.0.6.

Changelog
Sourced from cryptography's changelog


* Fixed a null-pointer-dereference and segfault that could occur when
loading
certificates from a PKCS#7 bundle. Credit to **pkuzco** for reporting
the
  issue. **CVE-2023-49083**
.. _v41-0-5:
41.0.5 - 2023-10-24

Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL
3.1.4.
<li>Added a function to support an upcoming <code>pyOpenSSL</code>
release.
.. _v41-0-4:

41.0.6 release (https://redirect.github.com/pyca/cryptography/issues/9927)

bump for 41.0.5 release (
https://redirect.github.com/pyca/cryptography/issues/9766")

Added binding needed for pyOpenSSL https://redirect.github.com/pyca/cryptography/issues/9739
(https://redirect.github.com/pyca/cryptography/issues/9740)
See full diff in 
https://github.com/pyca/cryptography/compare/41.0.4...41.0.6
view

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-25 12:25:38 -08:00
Joshua Batista 02afa578c1
[Validation] Add validation and tests for invalid system values in incompatible node launch type (#6108)
#5827 first requires validation at the DXIL level. The validation will
check for functions that have incompatible node launch types, and
intrinsics that represent certain system values.
This PR implements this validation and adds some tests that exercise
this validation.
Fixes #6104
2024-01-24 12:45:19 -08:00
Tex Riddell dcb618a2f1
Fix bad WaveSize non-range PSV0 and improve things (#6172)
PSV0 MaximumExpectedWaveLaneCount was incorrectly set to 0 for
non-range.

Create struct for WaveSize in DxilFunctionProps.h.
Centralize encoding and validation logic there.
Use validation logic in both SemaHLSL and DxilValidation.

Remove test requiring newer shader model in CodeGenHLSL.
Add comprehensive test for compute and node, cs and lib targets, SM 6.6
and 6.8, testing ast, metadata and RDAT.
Add PSV0 tests to catch incorrect runtime data.

Update validation rules and test for more cases.
2024-01-22 17:28:26 -08:00
Natalie Chouinard f9535a7c81
Remove AppVeyor (#6176)
The AppVeyor subscription has now ended, so latest builds are failing
with timeouts and downloads of last-known-good are failing with download
size limits. This change removes the AppVeyor run scripts and
documentation references.

Follow-up to add new links for downloading latest build artifacts in
Issue #6175
2024-01-22 19:12:32 +00:00
Joshua Batista 00e170f348
Implement wave size range (#6167)
Wave Size should be able to take a range of possible wavesizes. This PR
aims to implement what is described in this spec:
https://github.com/microsoft/hlsl-specs/pull/149/files

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-20 06:16:03 +00:00
Helena Kotas 6d8645f985
Add DXIL 1.8 op code cap and move WaveMatrix intrisics to SM 6.9 (#6163)
Adds max opcode value for DXIL 1.8 and moves WaveMatrix intrinsics into
future shader model 6.9.

Contributes to #6133
Related to #6125
2024-01-20 01:34:49 +00:00
David Peixotto d936753d6a
Write lit xml output as utf-8 (#6130)
This commit modifies the xml output of lit so that we always open the
file as utf-8 and also encode any invalid characters with the xml
character reference.

I was hitting an encoding error on windows for some test output because
the xml file was using the windows cp1252 encoding and it ran into some
characters that could not be encoded.

In order to test the change I added a new flag to lit
`--xml-include-test-output` which will include all test output in the
xml. That way we can still expect the lit run to pass and also validate
that the xml file is properly encoded.
2024-01-05 11:32:49 -08:00
Joshua Batista ab4c4e50db
Remove ExtractRecordStructFromArray intrinsic (#6025)
The ExtractRecordStructFromArray intrinsic is left over dead code that
should be removed. This PR removes the intrinsic from existence. In the
cases where this intrinsic was used, DefaultSubscript is used instead.
Moved from #5893 to target the main branch instead.
Fixes https://github.com/microsoft/DirectXShaderCompiler/issues/5351
2023-11-30 17:06:40 -08:00
Antonio Maiorano c97d48847d
Python: fix calls to os.makedirs to avoid existence check races (#6060)
In parallel builds of DXC, hctgen.py in particuilar would sometimes
throw an exception from os.makedirs because the directory would already
exist. The conditional check for file existence introduces a race when
running the script in parallel. Fix this, and all other cases where such
conditional checks were done, by using the `exist_ok = True` argument.
2023-11-28 16:11:51 +00:00
Xiang Li 9dbfde5d51
[CI] fix issue when apply format (#6019)
Fix issues hit when apply format.
1. tmp diff file is not opened binary form, don't need to encode.
2. add contents write to "Check code formatting" workflow for commit and
push change.
3. put main branch to different path to avoid issue when checkout head
branch to same path.
2023-11-16 16:27:26 -05:00
Xiang Li 6c0d4b8d60
[CI] trigger apply format with task list (#6004)
Add task list to format fail comment.
- [ ] Check this box to apply formatting changes to this branch.
If the task is checked, trigger apply format.
2023-11-15 00:07:19 +00:00
Xiang Li 4a6fdfa20f
[CI] add workflow to apply clang-format diff (#5984)
When hit clang-format error in a pull request, edit the comment with
diff.
Add @apply-format at the beginning of the comment and Update comment.  
 

New added "Apply code format" workflow will be triggered.  
It will checkout the code from compare branch of the pull request, apply
the diff,
then commit and push it to the compare branch to fix the format issue.  
  
The process should be getting clang-format diff comment first.  
Then review the diff in the comment.
If the diff looks good, edit and add @apply-format to apply the diff.
2023-11-09 13:37:21 -05:00
Helena Kotas 89fbd19c85 Fix typo in Decl.RayQueryInFnSig validation rule 2023-11-08 15:40:37 -08:00
Helena Kotas 273f431320 One more conflict resolution fix 2023-11-03 13:53:21 -07:00
Helena Kotas 96bb59b95a Merge branch 'main' into merge-from-main-11-2-no3 2023-11-02 14:25:31 -07:00
Helena Kotas 2377aa756f Format hctdb.py and hctdb_instrhelp.py with black for conflict resolution in the upcoming merge 2023-11-02 13:47:55 -07:00
Joshua Batista cd03365aa5
[Diagnostics] Improve recursion diagnostics, specifically for library shaders (#5858)
Previously, there would be no recursion validation performed on any
function declarations in library shaders. This PR adds code that
validates that no function declarations that are found inside library
shaders are recursive. The diagnostics aren't repeated, since there's
logic to prevent the same diagnostic from being emitted by 2 similar
ancestors of the same recursive function. The PR also adjusts recursion
detection for shaders in non-library cases, and improves the original
diagnostic by adding information about the name of the function that is
recursive. The PR is meant to complete the work on issue #5789. However,
more work needs to be done for full accuracy.
The PR checks *all* function declarations in the translation unit for
the library shader case, when it should really only be checking a subset
of function declarations. This issue is filed here: #5857
Fixes #5789
2023-11-02 10:33:41 -07:00
Xiang Li 3d1b501290
Add SV_BaseVertexLocation and SV_StartInstanceLocation to VSIn (#5770)
New VS Input semantics SV_BaseVertexLocation and
SV_StartInstanceLocation are added for
BaseVertexLocation and StartInstanceLocation of
https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12graphicscommandlist-drawindexedinstanced

Also added DXIL operation for these 2 input semantics.

Fixes https://github.com/microsoft/DirectXShaderCompiler/issues/2907
2023-10-31 14:43:37 -04:00
Tex Riddell 7f0662f1d8
Add missing '-' for pass in ExtractIRForPassTest.py (#5918)
The default generated RUN line generated by ExtractIRForPassTest.py adds
the desired pass to the options, but forgot to add the '-', so it would
fail with difficult to diagnose error in dxopt during argument parsing.

This adds the missing '-' so the RUN line doesn't have to be fixed in
this way every time the script is used.
2023-10-25 23:46:09 +00:00
Xiang Li 7c157be44d
Remove integer variants of SampleCmp (#5930)
Disable integer resource for SampleCmp/CmpLevel/CmpLevelZero.

Fixes #5564
2023-10-25 19:11:48 -04:00
Tex Riddell e1774f6e5b
Reformat hct python scripts with black (#5917)
A few syntax errors fixed along the way:
- hcttracei.py: `print` -> `print()`, `<>` -> `!=`
- hcttest-system-values.py: `os.path.join()` close paren before
arguments
2023-10-24 21:34:51 +00:00
Greg Roth 8caace9aa0
Revert mistaken debug changes to hctbuild (#5888)
The previous PR #5881 didn't do what it meant to and had a lot of debug
code due to a mistaken commit. This reverts that commit and restores the
setting of the build type flag
2023-10-18 13:23:48 -07:00
Joshua Batista 5eaf7a7c2e
Remove implicit record to struct cast intrinsic (#5871)
The ImplicitRecordToStructCast intrinsic is left over dead code that
should be removed. This PR removes the intrinsic from existence.
Partially addresses
https://github.com/microsoft/DirectXShaderCompiler/issues/5351
2023-10-18 10:21:43 -07:00
Greg Roth a56078a992
Make hctbuild cmake gen consistent with asserts (#5881)
A slightly complex series of events causes invocations of hctbuild after
the first to enable asserts in release builds. This sets the build type
even when it isn't needed to avoid it.

Because the build type was not being set when generating for visual
studio in hctbuild, when generating the cmake files using CMakeLists, it
would produce an alarming message saying it was defaulting to debug,
but, in fact, since it didn't care for the purposes of sln file
generation, that wasn't actually a problem, just confusing. It did set a
variable to enable asserts, but didn't do this for release variant
builds

The real problem occurs if hctbuild is invoked again, at that point,
instead of defaulting to Debug, it leaves the build type empty because
of another variable set in the cache.

Additionally, since the first invocation enabled asserts, that also
comes from the cache and so code that strips NDEBUG from all build
variants is invoked because the build type is, in fact, not debug, it's
an empty string.
2023-10-17 19:38:47 +00:00
Xiang Li 568ad77e66
[Sanitizer] Fix sanitizer fails in msvc (#5851)
1. Add -sanitizer to hctbuild.
2. Detach pCompileSource in recompile to avoid release freeed memory.
3. Fix Execution test issue about Init size.

This is for
https://github.com/microsoft/DirectXShaderCompiler/issues/5876
2023-10-17 13:35:02 -04:00
Xiang Li 956fa34b4f
[ClangCL] Cleanup rest clang-cl warnings (#5847)
1. printf format mismatch.
2. avoid cast from CComPtr<IncludeHandlerVFSOverlayForTest> to
CComPtr<IDxcIncludeHandler>.
3. fix signed unsigned mismatch.
4. fix order of fields in constructor.
5. add override for override methods.
6. port
01f4209631
7. add copy assignment operator to avoid
-Wdeprecated-copy-with-user-provided-copy
8. disable -Wignored-qualifiers for taef header WexTestClass.h.
9. remove unused fields.
10. add -clang-cl for hctbuild.
2023-10-16 19:40:51 +00:00
dependabot[bot] 1306b0ce66
Bump urllib3 from 2.0.4 to 2.0.6 in /utils/git (#5839)
Bumps urllib3 from 2.0.4 to 2.0.6.

Release notes Sourced from urllib3's releases
2.0.6

Added the Cookie header to the list of headers to strip
from requests when redirecting to a different host. As before, different
headers can be set via Retry.remove_headers_on_redirect.
(GHSA-v845-jxx5-vc9f)

2.0.5

Allowed pyOpenSSL third-party module without any deprecation
warning. https://redirect.github.com/urllib3/urllib3/issues/3126

Fixed default blocksize of HTTPConnection
classes to match high-level classes. Previously was 8KiB, now 16KiB. 
https://redirect.github.com/urllib3/urllib3/issues/3066

Changelog Sourced from urllib3's changelog

2.0.6 (2023-10-02)

Added the Cookie header to the list of headers to strip
from requests when redirecting to a different host. As before, different
headers can be set via
Retry.remove_headers_on_redirect

2.0.5 (2023-09-20)

Allowed pyOpenSSL third-party module without any deprecation
warning. https://github.com/urllib3/urllib3/issues/3126

Fixed default blocksize of HTTPConnection
classes to match high-level classes. Previously was 8KiB, now 16KiB.
https://github.com/urllib3/urllib3/issues/3066

Commits
262e3e3322
Release 2.0.6

644124ecd0
Merge pull request from GHSA-v845-jxx5-vc9f</li>

740380c59c
Bump cryptography from 41.0.3 to 41.0.4 (https://redirect.github.com/urllib3/urllib3/issues/3131)

d9f85a7494
Release 2.0.5

d41f412296
Undeprecate pyOpenSSL module (https://redirect.github.com/urllib3/urllib3/issues/3127)

b6c04cb3e6
Fix a link to "absolute URI" definition (https://redirect.github.com/urllib3/urllib3/issues/3128

af7c78fa30
refactor: change double conditional to one (https://redirect.github.com/urllib3/urllib3/issues/3118

34c13c8e68
Refer to current internet standards in docs on proxies (https://redirect.github.com/urllib3/urllib3/issues/3124

a3e94f218c
Fix a name of an attribute in docs (https://redirect.github.com/urllib3/urllib3/issues/3125

da69d4f4f9
Fix docs build (https://redirect.github.com/urllib3/urllib3/issues/3123

Additional commits viewable in https://github.com/urllib3/urllib3/compare/2.0.4...2.0.6


Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-16 10:59:44 -07:00
dependabot[bot] 56962cc126
Bump cryptography from 41.0.3 to 41.0.4 in /utils/git (#5840)
Bumps cryptography from 41.0.3 to 41.0.4.

Sourced from cryptography's changelog:

41.0.4 - 2023-09-19

* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.1.3.

fc11bce693
bump for 41.0.4 
https://github.com/pyca/cryptography/pull/9629
See full diff in https://github.com/pyca/cryptography/compare/41.0.3...41.0.4

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-16 10:49:31 -07:00
Greg Roth 2123869930 Merge branch 'main' of into staging-sm-6.8 2023-10-12 10:41:37 -07:00
Tex Riddell deeb8225fa
Update Barrier intrinsic to merge ACCESS and SYNC flags (#5825)
- Merge ACCESS_FLAG AccessFlags and SYNC_FLAG SyncFlags into new
BARRIER_SEMANTIC_FLAG SemanticFlags according to spec update
- Update lowering, DxilValidation, and tests
- Delete now-redundant validation tests

Fixes #5780
2023-10-10 15:30:53 -07:00
Tim Corringham 3870258157
Amend compute node compatibility DXIL validation (#5589)
Update the DXIL validation for compute node compatibility, and for node
input vs launch type compatibility, to make the diagnostics more
informative, and update the validation tests accordingly.

Fixes #5348

---------

Co-authored-by: Tim Corringham <tcorring@amd.com>
Co-authored-by: Joshua Batista <jbatista@microsoft.com>
2023-10-10 13:29:06 -07:00
Chris B 0dc8d9060d
Pull in llvm-project's clang-format check action (#5834)
This action and scripting was written by @tru for LLVM and addresses
some of the false positives we've been seeing in our action. There is
more room for improvement, but it would be better to unify than to have
divergent approaches since we're solving the same problem.
2023-10-09 14:55:39 -05:00
Xiang Li d7d0d66764
Allow SamplerComparisonState when CalculateLevelOfDetail (#5802)
New overloads are added for CalculateLevelOfDetail and
CalculateLevelOfDetailUnclamped. Also update validator to allow
SamplerComparisonState for shader model higher than 6.7.

Fixes https://github.com/microsoft/DirectXShaderCompiler/pull/5183
2023-10-05 11:04:27 -04:00
Adam Yang e4b9b88c0c
Fixed a crash in unroller when exiting blocks use switch instead of branch (#5779)
The code to structurize loop exits assumed exiting blocks always use
BranchInst and never SwitchInst. This caused a crash. This change makes
the structurizer preemptively check whether this assumption is true
before attempting.
2023-09-26 10:59:22 -07:00
Chris Bieneman 16fa30121e Merge remote-tracking branch 'origin/main' into
cbieneman/update-staging-2023-09-21
2023-09-21 13:04:47 -05:00
Xiang Li 95253012ea
[lit] Enable exec test by default for hcttest (#5652)
Enable exec test for hcttest -all.

Fixes https://github.com/microsoft/DirectXShaderCompiler/issues/5551
2023-09-20 22:40:19 -04:00
Xiang Li 2325bc539c
Add SampleCmpBias and SampleCmpGrad (#5716)
1. Add DXIL opcode for SampleCmpBias and SampleCmpGrad.
Merged from https://github.com/microsoft/DirectXShaderCompiler/pull/5562

2. Add hlsl intrinsic for  SampleCmpBias and SampleCmpGrad.
3. Lower the intrinsic to DXIL.

This is for https://github.com/microsoft/hlsl-specs/issues/30
Fixes #5560

---------

Co-authored-by: Greg Roth <grroth@microsoft.com>
2023-09-20 20:31:55 -04:00
Chris Bieneman 2169fc1c27 Merge remote-tracking branch 'origin/main' into cbieneman/clang-format-6.8 2023-09-19 09:37:40 -05:00
Greg Roth eb252f0f33
Merge branch 'main' into 'staging-sm-6.8' (#5741)
Conflicts mostly to do with removing SAL annotations

---------

Signed-off-by: Nathan Gauër <brioche@google.com>
Co-authored-by: Helena Kotas <hekotas@microsoft.com>
Co-authored-by: Xiang Li <python3kgae@outlook.com>
Co-authored-by: Chris B <cbieneman@microsoft.com>
Co-authored-by: Justin Bogner <mail@justinbogner.com>
Co-authored-by: Steven Perron <stevenperron@google.com>
Co-authored-by: Cassandra Beckley <cbeckley@google.com>
Co-authored-by: Natalie Chouinard <1953083+sudonatalie@users.noreply.github.com>
Co-authored-by: Jeff Noyle <jeffno@microsoft.com>
Co-authored-by: Nathan Gauër <brioche@google.com>
Co-authored-by: Tex Riddell <texr@microsoft.com>
Co-authored-by: r-a-sattarov <51679282+r-a-sattarov@users.noreply.github.com>
Co-authored-by: David Peixotto <davpeix@microsoft.com>
Co-authored-by: Joshua Batista <jbatista@microsoft.com>
Co-authored-by: Antonio Maiorano <amaiorano@google.com>
Co-authored-by: Minmin Gong <gongminmin@msn.com>
2023-09-18 22:01:12 -07:00
Greg Roth 4d132f95ff
[lit] allow for spaces in taef commands (#5720)
The way taef tests were gathered and executed previously flattened the
list of arguments to a string. This allowed the weird /select: flag to
work correctly, but if any of the arguments had spaces, they were
misinterpretted having lost the implicit quotes around each.

By removing the flattening, putting a space between the flag and the
argument for /select: and removing the explicit quotes around that
argument, the command executes properly whether there are spaces or not

Additionally added a way to detect when these commands failed since they
were silently failing and skipping a large swath of testing when spaces
were present.

Fixes #5719
2023-09-18 19:58:04 +00:00
Xiang Li 549030f977
[lit] set clang_taef_site_config in llvm-lit.py (#5717)
This will make it possible to run taef test from llvm-lit.py directly
 without set clang_taef_site_config and clang_taef_exec_site_config.
2023-09-14 23:43:43 +00:00