-
9a98d323
by Hai Nguyen
at 2022-01-01T04:31:44-05:00
Added GLSL version override interface and CLI
This change list allows a user to override the GLSL version from the
command line or through the C and C++ interfaces. This will override the
override happens in ProcessDeferred() before DeduceVersionProfile() so
the process should still error out if the version is insufficient for
the shader code.
- Added --glsl-version <version> to CLI.
- Added parameter to route glslVersion as override version to
preprocessor and parse functions to C++ interface.
- Updated C interface with function to override GLSL version.
-
356928a9
by Hai Nguyen
at 2022-01-01T05:00:05-05:00
Updated gtests preprocess()and parse() calls with arg for new parameter
-
1f10ddda
by Hai Nguyen
at 2022-01-01T19:02:14-05:00
Revisions to GLSL version override
- Reverted public function interface changes for C++.
- Added override member variable to TShader.
- Added accessor TShader::setOverrideVersion.
- Reverted changes to tests.
-
6a3aeb73
by Hai Nguyen
at 2022-01-10T09:43:44-05:00
Added initial tests for --glsl-version
- Added compilation tests for shader stages using a different
version at each stage.
-
8f2c400a
by Hai Nguyen
at 2022-01-10T09:56:54-05:00
Added missing test result
-
c5072a8c
by Greg Fischer
at 2022-02-07T12:15:31-07:00
Fix sameElementShape test of sampler
There is apparently a hole in the initialization of sampler in TType
so that a simple comparison which should pass might fail. Until the
hole is found, also test that both types are samplers before comparing
the sampler field for equality.
Fixes #2875
-
b7ba87bc
by Greg Fischer
at 2022-02-07T13:09:13-07:00
Merge pull request #2886 from greg-lunarg/i2875
Fix sameElementShape test of sampler
-
be202ef9
by Malcolm Bechard
at 2022-02-09T18:44:22-05:00
avoid leaving decorations on auto-push-constants
uniform blocks that are upgraded to push_constants shouldn't have
set/binding etc. decorations applied to them
-
25555a7f
by Brendan Shanks
at 2022-02-10T09:36:50-08:00
Explicitly use Python 3 for scripts
-
cf02eda7
by Greg Fischer
at 2022-02-10T11:57:37-07:00
Merge pull request #2887 from mbechard/master
avoid leaving decorations on auto-push-constants
-
90d4bd05
by Greg Fischer
at 2022-02-10T14:16:44-07:00
Merge pull request #2888 from mrpippy/python3
Explicitly use Python 3 for scripts
-
63dbacaa
by David Neto
at 2022-02-16T17:17:08-05:00
Fix Test/hlsl.namespace.frag test case
Before this change, the example is rejected by DXC:
$ dxc -T ps_6_0 hlsl.namespace.frag
hlsl.namespace.frag:22:73: error: call to non-static member function
without an object argument
return N1::getVec() + N2::getVec() + N2::N3::getVec() + N2::N3::C1::getVec() * N2::gf;
~~~~~~~~~~~~^~~~~~
The call to the class member function requires an object, or we ned to
make the function static. This update makes the function static.
This also fixes SPIR-V validation: without this change the call
to that getVec does not have enough arguments:
error: line 69: OpFunctionCall Function <id>'s parameter count does not
match the argument count.
%43 = OpFunctionCall %v4float %N2__N3__C1__getVec_
-
d15deba1
by Greg Fischer
at 2022-02-16T16:15:20-07:00
Merge pull request #2891 from dneto0/hlsl-namespace
Fix Test/hlsl.namespace.frag test case
-
bbe692e7
by Greg Fischer
at 2022-02-23T15:55:49-07:00
Improve error message for image/sampler functions for enhanced-msgs
For recent GLSL versions, if texture2D function call appears, the error
message reports an unsupported type constructor. Change message to
unsupported function. Likewise for other removed texture* function calls.
-
ac7f6a29
by Greg Fischer
at 2022-02-23T16:34:36-07:00
Merge pull request #2892 from greg-lunarg/mb
Improve error message for image/sampler functions under enhanced-msgs
-
79a35ace
by Greg Fischer
at 2022-02-24T15:03:13-07:00
Don't do updatePrecision on float16_t operations
float16_t does not take GLSL precisions and SPIR-V does not
support RelaxedPrecision on float16_t.
Fixes #2894
-
43d585d8
by Greg Fischer
at 2022-02-24T17:57:22-07:00
Merge pull request #2895 from greg-lunarg/i2894
Don't do updatePrecision on float16_t operations
-
438999d2
by ZhiqianXia
at 2022-03-01T15:06:04+08:00
1. refine the check for "origin_upper_left" and "pixel_center_integer"
2. gl_FragCoord can be used at ogl140 with extension "GL_ARB_fragment_coord_conventions".
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
-
538231d8
by Greg Fischer
at 2022-03-01T14:50:55-07:00
Merge pull request #2897 from ZhiqianXia/origin_upper_left
Fix the issue for GL_ARB_fragment_coord_conventions extension.
-
07f67702
by ZhiqianXia
at 2022-03-11T14:42:11+08:00
The first redeclarations of gl_FragCoord must appear before any
use of gl_FragCoord.
-
d44871ca
by Alexey Panteleev
at 2022-03-11T17:56:15-08:00
Escape the characters that Make considers special in the dependency files.
-
e80f2f87
by Biswapriyo Nath
at 2022-03-15T19:26:57+05:30
cmake: Install SPVRemapper runtime library
This installs SPVRemapper.dll file which was missing previously.
-
c6f8e532
by Greg Fischer
at 2022-03-21T12:03:34-06:00
Merge pull request #2902 from ZhiqianXia/gl_FragCoord
The first redeclarations of gl_FragCoord must appear before any use.
-
610fd6ed
by sfricke-samsung
at 2022-03-23T11:42:21-06:00
Prevent Push Constant blocks being an array (#2904)
* Prevent Push Constant blocks being an array
* Add push constant array error test
Co-authored-by: Greg Fischer <greg@lunarg.com>
-
6d937739
by Greg Fischer
at 2022-03-23T11:43:43-06:00
Merge pull request #2906 from apanteleev/escape-deps
Make depfiles compatible with Windows paths
-
0988e868
by Greg Fischer
at 2022-03-24T10:23:19-06:00
Update spirv-tools and spirv-headers known good
To pick up support for spirv-opt --eliminate-dead-input-components
-
397086a5
by Greg Fischer
at 2022-03-24T12:12:40-06:00
Merge pull request #2911 from greg-lunarg/kg122
Update spirv-tools and spirv-headers known good
-
abbdf63c
by Greg Fischer
at 2022-03-24T13:22:44-06:00
Add eliminate-dead-input-components to -Os
-
64cef8ed
by Greg Fischer
at 2022-03-24T13:25:38-06:00
Merge pull request #2908 from Biswa96/cmake-spirv-remap
cmake: Install SPVRemapper runtime library
-
f25ca1ec
by Greg Fischer
at 2022-03-24T13:43:40-06:00
Merge pull request #2912 from greg-lunarg/edic1
Add eliminate-dead-input-components to -Os
-
871e61fd
by Greg Fischer
at 2022-03-24T16:36:48-06:00
Update glsl.versionOverride.comp
Change original shader to version 110
-
c1e8a174
by Greg Fischer
at 2022-03-24T16:37:42-06:00
Update glsl.versionOverride.frag
Change original shader to version 110
-
46edfaee
by Greg Fischer
at 2022-03-24T16:39:34-06:00
Update glsl.versionOverride.geom
Change original shader to version 110
-
03fe69d3
by Greg Fischer
at 2022-03-24T16:40:18-06:00
Update glsl.versionOverride.tesc
Change original shader to version 110
-
dc5b5319
by Greg Fischer
at 2022-03-24T16:41:15-06:00
Update glsl.versionOverride.tese
Change shader original version to 110
-
3c12f20b
by Greg Fischer
at 2022-03-24T16:41:52-06:00
Update glsl.versionOverride.vert
Change shader original version to 110
-
f1d286fc
by Greg Fischer
at 2022-03-24T17:51:54-06:00
Merge pull request #2851 from chaoticbob/version-override
Added GLSL version override functionality and CLI
-
b7968b7d
by Greg Fischer
at 2022-03-25T14:36:01-06:00
Generate Int8, Int16 and Float16 capabilities for constants
Fixes #2905
-
870c7547
by Greg Fischer
at 2022-03-25T15:56:18-06:00
Merge pull request #2913 from greg-lunarg/i2905
Generate Int8, Int16 and Float16 capabilities for constants
-
5a41eb31
by Edoardo Luciani
at 2022-03-26T15:26:46+00:00
Update README.md
-
b88174e6
by Greg Fischer
at 2022-03-28T11:34:40-06:00
Improved comment for glslang_optimization_level_t
-
9617bdea
by Greg Fischer
at 2022-03-28T12:04:17-06:00
Merge pull request #2917 from greg-lunarg/i2907
Improved comment for glslang_optimization_level_t
-
abbe4664
by Greg Fischer
at 2022-03-28T12:07:30-06:00
Merge pull request #2915 from EdoardoLuciani/master
Update README.md with ray tracing shader stages filename extensions
-
e7729889
by Greg Fischer
at 2022-04-06T12:00:57-06:00
Update spirv-tools known good
-
094e539b
by Greg Fischer
at 2022-04-06T13:01:04-06:00
Merge pull request #2923 from greg-lunarg/kg123
Update spirv-tools known good
-
df4ded3f
by Greg Fischer
at 2022-04-06T13:05:55-06:00
Release 11.9.0
-
9bb8cfff
by Greg Fischer
at 2022-04-06T13:42:55-06:00
Merge pull request #2924 from greg-lunarg/r.11.9.0a
Release 11.9.0
-
de2581ed
by SpaceIm
at 2022-04-07T21:18:27+02:00
fix MinGW
pre compiled headers leads to "internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:192: MapViewOfFileEx: Attempt to access invalid address"
-
48fd6c82
by Greg Fischer
at 2022-04-07T18:33:03-06:00
Merge pull request #2925 from SpaceIm/fix-mingw
CMake: fix MinGW build
-
24e69505
by Gerry Fan
at 2022-04-13T17:08:51+00:00
Change ANDROID_NDK_ROOT to ANDROID_NDK_HOME in README.md
-
06ac1414
by Greg Fischer
at 2022-04-15T10:45:00-06:00
Merge pull request #2927 from ggfan/ndk-env-variable-update
Change ANDROID_NDK_ROOT to ANDROID_NDK_HOME in README.md
-
17c8387a
by tellowkrinkle
at 2022-04-16T20:21:41-05:00
Add macOS hidden files to gitignore
-
f906b895
by Ryp
at 2022-04-22T20:59:10+03:00
Fix WavePrefixCountBits() being off by one.
It was counting bits up to the current lane included, whereas the
documentation says it should be excluded. This now matches dxc's behavior
as well.
Fix #2929
-
a9fc9107
by Greg Fischer
at 2022-04-22T15:31:55-06:00
Merge pull request #2928 from tellowkrinkle/patch-1
Add macOS hidden files to gitignore
-
e3bca2ad
by Greg Fischer
at 2022-04-22T15:44:20-06:00
Merge pull request #2932 from Ryp/master
Fix WavePrefixCountBits() being off by one.
-
3015d00e
by Marius Bjorge
at 2022-05-05T12:56:04+02:00
Adding support for GL_EXT_ray_cull_mask
-
dab6fc89
by Marius Bjorge
at 2022-05-05T14:03:57+02:00
Update spirv-tools and spirv-headers known good
-
521216aa
by alelenv
at 2022-05-05T21:46:58-07:00
Disable layout error check for RT ops in presence of EXT_spirv_intrinsics
Fixes #2935
-
38de6121
by Greg Fischer
at 2022-05-06T11:07:14-06:00
Merge pull request #2938 from mariusbjorge/GL_EXT_ray_cull_mask
Adding support for GL_EXT_ray_cull_mask
-
14f6e273
by Greg Fischer
at 2022-05-06T11:09:55-06:00
Merge pull request #2940 from alelenv/spirv_intrinsics_rt_ops
Disable layout error check for RT ops in presence of EXT_spirv_intrinsics
-
b5aae627
by ahagan
at 2022-05-11T12:08:25-04:00
Add whitelist filtering for debug comments in SPIRV-Remap.
-
2f5bc0b7
by Greg Fischer
at 2022-05-11T13:45:33-06:00
Merge pull request #2933 from AaronHaganAMD/whitelist
Add whitelist filtering for debug comments in SPIRV-Remap.
-
67384dd1
by Malcolm Bechard
at 2022-05-17T00:53:52-04:00
fix structure indexing reassignment during block merging
For EOpIndexDirectStruct binaries, we want to visit the left symbol (the
structure) before we visit the binary, so it gets updated first.
That way we are comparing the updated structure against the target
'unitType', not the original structure.
-
2439e6d5
by Greg Fischer
at 2022-05-18T13:19:28-06:00
Merge pull request #2943 from mbechard/master
fix structure indexing reassignment during block merging
-
ea7e64cf
by David Neto
at 2022-05-19T13:27:12-04:00
Remove unused variable
-
86ff4bca
by Greg Fischer
at 2022-05-20T09:46:45-06:00
Merge pull request #2945 from dneto0/remove-unused-var
Remove unused variable
-
df01afe7
by Sergey Kosarevsky
at 2022-05-20T23:00:43-07:00
Android.mk: Add CInterface files
-
e3148915
by Gabriele Di Bari
at 2022-05-21T17:00:24+02:00
handleEntryPointAttributes add EatInstance case
-
78012300
by Sergey Kosarevsky
at 2022-05-23T21:36:32-07:00
Add a new C interface example to README.md
-
279c28e7
by Qingyuan Zheng
at 2022-05-23T23:05:43-07:00
generate OpLine before OpFunction
-
353ef3ac
by Gabriele Di Bari
at 2022-05-24T18:53:39+02:00
Add test for the instance param (geometry shader)
-
e28ec404
by Gabriele91
at 2022-05-24T20:09:20+02:00
Add hlsl.instance.geom output
-
8735cdbf
by Greg Fischer
at 2022-05-24T14:11:43-06:00
Merge pull request #2948 from Gabriele91/fix/HLSL-Instance-attribute-as-spirv-invocation-attribute
HLSL Instance attribute translated as spirv invocations attribute
-
604904fb
by Greg Fischer
at 2022-05-24T14:14:56-06:00
Merge pull request #2947 from corporateshark/master
Add CInterface files and documentation
-
ebf45697
by stusmith
at 2022-05-25T13:02:02+01:00
Add support for VK_EXT_fragment_shader_barycentric
-
25e97a5b
by Greg Fischer
at 2022-05-25T11:02:09-06:00
Fix build for clang + mingw32-make
Fixes #2951
-
abc87e98
by Greg Fischer
at 2022-05-25T12:07:12-06:00
Merge pull request #2953 from greg-lunarg/mingw0
Fix build for clang + mingw32-make
-
7dda6a63
by Greg Fischer
at 2022-05-26T10:41:25-06:00
Merge pull request #2952 from stu-s/EXT_fragment_shader_barycentric
Add support for VK_EXT_fragment_shader_barycentric
-
b6df89b4
by Qingyuan Zheng
at 2022-05-30T23:08:50-07:00
use unique_ptr to avoid calling deleted move ctor
-
61d24414
by Qingyuan Zheng
at 2022-05-31T10:40:25-07:00
avoid using make_unique for c++11 compatibility
-
316f12ac
by Greg Fischer
at 2022-05-31T13:25:22-06:00
Merge pull request #2950 from qingyuanzNV/insert_opline_before_opfunction2
Generate OpLine Before OpFunction
-
6cdae463
by Andrea Faulds
at 2022-06-01T10:43:13+02:00
Avoid duplicate BuiltIn variables for ray tracing matrices (fix #2921)
Fixes an issue where invalid SPIR-V was generated when
gl_ObjectToWorldEXT and gl_ObjectToWorld3x4EXT, or
gl_WorldToObjectEXT and gl_WorldToObject3x4EXT, were used in the same
shader. The SPIR-V specification requires that there be at most one
OpVariable decorated with a given BuiltIn value.
-
4c3e00bf
by Greg Fischer
at 2022-06-01T14:07:18-06:00
Merge pull request #2955 from andfau-arm/duplicate-builtin-clash
Avoid duplicate BuiltIn variables for ray tracing matrices (fix #2921)
-
9e2b9147
by Greg Fischer
at 2022-06-01T16:40:29-06:00
Restore legacy interface for remap()
Fixes ABI breakage caused by #2933
-
2be1561b
by Greg Fischer
at 2022-06-01T17:20:20-06:00
Merge pull request #2957 from greg-lunarg/p2933
Restore legacy interface for remap()
-
3f369d4a
by Jeremy Hayes
at 2022-06-02T11:51:31-06:00
Update known_good.json
-
1c5f28e6
by Greg Fischer
at 2022-06-02T16:49:28-06:00
Merge pull request #2960 from jeremy-lunarg/hayes-update-known-good
Update known_good.json
-
c411e58d
by Jeremy Hayes
at 2022-06-02T17:34:26-06:00
Release 11.10.0
-
adbf0d31
by Greg Fischer
at 2022-06-02T18:01:12-06:00
Merge pull request #2961 from jeremy-lunarg/hayes-update-changes
Release 11.10.0
-
76c4ff2e
by Timo Aaltonen
at 2022-06-22T13:01:02+03:00
Merge branch 'upstream-unstable' into debian-unstable
-
23c16077
by Timo Aaltonen
at 2022-06-22T13:01:36+03:00
version bump
-
13896712
by Timo Aaltonen
at 2022-07-01T12:24:49+03:00
control: Bump spirv-tools depends.
-
477f966a
by Timo Aaltonen
at 2022-07-01T12:26:08+03:00
release to sid