Commit Graph

4445 Commits

Author SHA1 Message Date
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
Shahbaz Youssefi
10a7137dc9 Fix UBSAN error with negating 0x8000'0000
Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
2021-06-03 17:18:12 -04:00
Shahbaz Youssefi
cfdeeb842d Fix OOB write in matrix constructor
In a matrix constructor that takes a number of components, as many
components as necessary must be taken, with the rest discarded, as GLSL
allows more components than necessary to be specified.  For example, the
following:

    mat4 m4 = mat4(v4, v4.yzwx, v4.zwx, v4.zwxy, v4.wxyz);

is equivalent to:

    mat4 m4 = mat4(v4, v4.yzwx, v4.zwx, v4.zwxy, v4.w);

glslang takes the components from the constructor and builds the single
components of the matrix in a 2D array before constructing the matrix
itself.  It however did not check for extra parameters and was thus
writing OOB to said 2D array.  This is fixed in this change

Signed-off-by: Shahbaz Youssefi <shabbyx@gmail.com>
2021-06-03 13:42:57 -04:00
syntheticmagus
ec73737859 Add setters for true and false blocks of selection nodes, copying the pattern already used for the condition. 2021-05-28 18:24:59 -07:00
Greg Fischer
6bdcb4be34
Merge pull request #2651 from greg-lunarg/rel0
Add missing libs to release
2021-05-27 14:11:46 -06:00
Greg Fischer
3406857053 Add missing libs to release
GenericCodeGen, MachineIndependent and glslang-default-resource-limits

Fixes #2648
2021-05-26 16:20:35 -06:00
Greg Fischer
6fe560f74f
Merge pull request #2647 from greg-lunarg/arg2
Do true SPV type check for function array arg linkage
2021-05-20 13:45:51 -06:00
Greg Fischer
11c24e9adb Do true SPV type check for function array arg linkage
Previous check was missing type difference between uniform array
actual arg with stride decoration and the formal arg without. Now
does logical or component-wise copy where needed.

Fixes #2637
2021-05-20 10:51:14 -06:00
Greg Fischer
e71278cc92
Merge pull request #2646 from johnstiles-google/parseconst
Fix mat4x2(scalar) constructor.
2021-05-18 11:00:08 -06:00
John Stiles
9724ee42df Fix mat4x2(scalar) constructor. 2021-05-18 12:13:41 -04:00
ZhiqianXia
587261a817 Atomic memory function can only be used for shader storage block member or shared variable.
The glsl spec says:A shader will fail to compile if the value passed to the mem argument of an atomic memory function does not
correspond to a buffer or shared variable.
2021-05-15 00:13:43 +08:00
Greg Fischer
202c8abae0
Merge pull request #2641 from tgfrerer/fix_hlsl_function_error_msg
fix error message for hlslGrammar::acceptConstructor
2021-05-11 13:50:53 -06:00
Greg Fischer
d234552c30
Merge pull request #2634 from xantares/patch-1
Dont export inline TObjectReflection::getType()
2021-05-11 10:10:34 -06:00
tgfrerer
adfa0938a2
fix error message for hlslGrammar::acceptConstructor
Fix the error message for when an erroneous HLSL constructor statement
is detected.

Prior to this change, such error messages would not show correct file
path and line number information.

Additionally, update test data to account for updated error messages.
2021-05-11 09:42:11 +01:00
xantares
eaf2af6451
Dont export inline TObjectReflection::getType()
Fixes mingw build 
Closes #2460
2021-05-08 10:37:37 +02:00
Greg Fischer
9431c53c84
Merge pull request #2632 from greg-lunarg/karl0
Fix arrays dimensioned with spec constant sized gl_WorkGroupSize
2021-05-07 10:09:17 -06:00