ZhiqianXia
78de10954e
Support the textureQueryLOD at #extension GL_ARB_texture_query_lod.
...
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
2021-08-02 16:20:02 +08:00
Greg Fischer
0db0010d3c
Merge pull request #2691 from ZhiqianXia/BugPoint
...
Atomic memory function can only be used for shader storage block member or shared variable.
2021-07-29 14:51:44 -06:00
Greg Fischer
9ff6cd0bd6
Merge branch 'master' into BugPoint
2021-07-29 14:48:24 -06:00
Greg Fischer
ba540202cd
Merge pull request #2700 from ZhiqianXia/u2i
...
Support Uint to Int implicit conversions at #extension GL_ARB_gpu_shader5.
2021-07-29 14:10:40 -06:00
Greg Fischer
d433cccb8a
Merge pull request #2702 from jeremy-lunarg/hayes-2518
...
Generate separate stores for partially swizzled memory stores
2021-07-28 16:49:27 -06:00
Jeremy Hayes
6d5b40f051
Generate separate stores for partially swizzled memory stores
...
Full vector and fully specified vector swizzle stores are not affected by this change, only partial swizzles ie swizzles with fewer components than the vector being stored to.
Previously the vector being stored to loaded and any components not specified in the swizzle were used to create a full store to the vector.
While this change generates more SPIR-V instructions, it is necessary for correctness.
Fixes #2518 .
2021-07-28 14:55:45 -06:00
Nathan Reed
fc9897d1ba
Fix OpImageRead result type when compiling HLSL ( #2706 )
...
Fix OpImageRead result type when compiling HLSL
- Per the Vulkan spec, OpImageRead must return a 4-component vector always. When compiling HLSL, loads from a RWTexture of a template type with < 4 components would incorrectly generate an OpImageRead with a < 4 component result, resulting in validation errors.
- This was previously fixed for OpImageFetch in commit 4425f24; this commit does the same thing for OpImageRead.
- Added associated tests and expanded existing image fetch tests to check all the different types of textures, in both float and int incarnations, for completeness.
- Update other HLSL tests involving OpImageRead
2021-07-28 09:29:17 -06:00
Greg Fischer
4a12ee1ae3
Merge pull request #2705 from pkasting/master
...
Fix some instances of -Wunused-but-set-variable.
2021-07-28 09:27:03 -06:00
Greg Fischer
1978c7692f
Merge pull request #2704 from YunHsiao/master
...
Fix per-set argument parsing in standalone
2021-07-27 15:03:35 -06:00
Peter Kasting
e8cffa5b7f
Fix some instances of -Wunused-but-set-variable.
...
Bug: chromium:1203071
2021-07-26 07:34:37 -07:00
Yun Hsiao Wu
ae4305da91
Fix per-set argument parsing in standalone
2021-07-26 16:21:12 +08:00
ZhiqianXia
8cd85272ad
Support Uint to Int implicit conversions at #extension GL_ARB_gpu_shader5.
...
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
2021-07-19 17:24:28 +08:00
Greg Fischer
9158061398
Merge pull request #2695 from ShabbyX/fix-bool-array-in-uniform-load
...
Fix loading bool arrays from interface blocks
2021-07-16 08:40:37 -06:00
Shahbaz Youssefi
097215f618
Fix loading bool arrays from interface blocks
...
SPIR-V disallows bool in interface blocks, which is emulated with uint.
When loading a bool variable (through accessChainLoad()), it's converted
from uint to bool if it came from an interface block.
This was handled for bool and bvecN, but not for bool arrays. This
change implements the conversion for bool arrays.
Closes #2694
2021-07-15 22:29:48 -04:00
ZhiqianXia
cf52f73a0c
Atomic memory function can only be used for shader storage block member or shared variable.
...
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
2021-07-12 16:57:25 +08:00
Greg Fischer
4b7b86d568
Merge pull request #2688 from KhronosGroup/revert-2643-master
...
Revert "Atomic memory function can only be used for shader storage block member or shared variable."
2021-07-08 15:15:55 -06:00
Greg Fischer
263e50f6aa
Revert "Atomic memory function can only be used for shader storage block member or shared variable."
2021-07-08 13:10:58 -06:00
Greg Fischer
9e707294f1
Merge pull request #2684 from ZhiqianXia/Dev
...
Add support for gl_MaxVaryingVectors for ogl.
2021-07-07 15:08:55 -06:00
Greg Fischer
89286ca56b
Merge pull request #2643 from ZhiqianXia/master
...
Atomic memory function can only be used for shader storage block member or shared variable.
2021-07-07 14:27:10 -06:00
ZhiqianXia
5531fbc662
Add support for gl_MaxVaryingVectors for ogl.
2021-07-07 15:32:52 +08:00
ZhiqianXia
8a5c5e8210
Merge branch 'KhronosGroup:master' into master
2021-07-07 14:12:33 +08:00
Greg Fischer
ae2a562936
Merge pull request #2671 from greg-lunarg/kg118
...
Update known goods and CHANGES for 11.5.0
2021-06-23 14:25:17 -06:00
Greg Fischer
83be602174
Update known goods and CHANGES for 11.5.0
2021-06-23 13:47:39 -06:00
Greg Fischer
0c4c93bf61
Merge pull request #2670 from dneto0/fix-android-mk
...
Android.mk: Add SpirvIntrinsics.cpp
2021-06-23 10:46:28 -06:00
David Neto
e89fbf3ad8
Android.mk: Add SpirvIntrinsics.cpp
...
It was missing, and was breaking the build for Android.mk.
2021-06-22 21:57:05 -04:00
Greg Fischer
b38100f6bc
Merge pull request #2669 from sudonatalie/remove-unused-var
...
Remove unused variable Num_string_literal_EXTs
2021-06-17 15:29:34 -06:00
Greg Fischer
e74b35f3f5
Merge pull request #2664 from mbechard/master
...
only declare compatibility gl_ variables in compatibility mode
2021-06-17 14:49:02 -06:00
Natalie Chouinard
c5f30ff6fe
Remove unused variable Num_string_literal_EXTs
...
Remove an unused variable that causes build failures in downstream
repository.
2021-06-17 11:10:10 -07:00
Greg Fischer
b9d06bdb01
Merge pull request #2668 from cmarcelo/GLSL_EXT_shader_atomic_float2
...
Implement GLSL_EXT_shader_atomic_float2
2021-06-17 11:27:47 -06:00
Greg Fischer
71612a7e5d
Merge pull request #2625 from amdrexu/feature
...
Implement the extension GL_EXT_spirv_intrinsics
2021-06-16 14:52:35 -06:00
Greg Fischer
c830b26b5f
Merge pull request #2667 from greg-lunarg/i2666
...
Remove output variables from compute regression tests
2021-06-16 11:54:07 -06:00
Jason Ekstrand
d352577a99
Implement GLSL_EXT_shader_atomic_float2
2021-06-16 09:11:14 -07:00
Greg Fischer
cd6b2382d0
Remove output variables from compute regression tests
...
Output variables in GLCompute shaders is not supported in Vulkan.
Recent upgrade of spirv-tools revealed this problem.
2021-06-15 15:56:27 -06:00
Greg Fischer
a23e143636
Merge pull request #2666 from alan-baker/update-tools
...
Update SPIRV-Tools and SPIRV-Headers
2021-06-15 15:00:58 -06:00
Alan Baker
3d9a31c6d1
Update test expectations
2021-06-15 11:13:35 -04:00
Alan Baker
f997bb32da
Update known good SPIRV-Tools and SPIRV-Headers
2021-06-15 11:11:58 -04:00
Greg Fischer
b848fd6a94
Merge pull request #2665 from JustSid/master
...
Fix SPIR-V remapper not remapping OpExtInst instruction set IDs
2021-06-14 10:35:29 -06:00
Sidney Just
f1121f02ab
Fixed SPIR-V remapper not remapping OpExtInst instruction set IDs
2021-06-12 15:30:36 -07:00
Malcolm Bechard
275d7ae882
only declare compatibility gl_ variables in compatibility mode
...
avoid declaring them in GLSL 1.50+ if core profile is chosen by the
version statement
fixes #2663
2021-06-10 21:52:09 -04:00
Greg Fischer
fe15158676
Merge pull request #2662 from greg-lunarg/spec1
...
Add support for float spec const vector initialization
2021-06-09 13:09:28 -06:00
Greg Fischer
230168d5d9
Add support for float spec const vector initialization
...
Fixes #2025
2021-06-09 10:07:03 -06:00
Rex Xu
65a7fb7054
Implement the extension GL_EXT_spirv_intrinsics
...
- Add support of SPIR-V execution mode qualifiers.
- Add support of SPIR-V storage class qualifier.
- Add support of SPIR-V decorate qualifiers.
- Add support of SPIR-V type specifier.
- Add support of SPIR-V intruction qualifiers.
- Add support of spirv_by_reference/spirv_literal parameter qualifier.
- Add shader stage macros introduced by this extension.
2021-06-09 14:18:06 +08:00
Greg Fischer
3d935ea224
Merge pull request #2661 from jaebaek/update_spirv_tools_and_unit_tests
...
Update spirv tools and unit tests
2021-06-08 15:20:46 -06:00
Jaebaek Seo
02f1c80d77
Fix unit test failures
2021-06-08 10:39:55 -04:00
Jaebaek Seo
a5f9118e7c
Update known_good.json for SPIRV-Tools
2021-06-08 09:47:29 -04:00
Greg Fischer
cb2c7fd674
Merge pull request #2659 from alan-baker/subgroup-uniform-control-flow
...
Implement GL_EXT_subgroup_uniform_control_flow.
2021-06-07 14:14:22 -06:00
John Kessenich
848d3a9447
Implement GL_EXT_subgroup_uniform_control_flow.
2021-06-07 10:21:05 -04:00
Greg Fischer
1fa21491bc
Merge pull request #2653 from syntheticmagus/selectionBlockSetters
...
Add setters for true and false blocks of selection nodes, copying the pattern already used for the condition.
2021-06-04 12:08:29 -06:00
Greg Fischer
2675cc3f91
Merge pull request #2656 from ShabbyX/fix-oob
...
Fix OOB write in matrix constructor
2021-06-04 11:00:27 -06:00
Greg Fischer
de2cb9db15
Merge pull request #2655 from ShabbyX/fix-ubsan
...
Fix UBSAN error with negating 0x8000'0000
2021-06-04 10:45:48 -06:00