Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
efc97279
Commit
efc97279
authored
Mar 03, 2017
by
Daniel Koch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename KHX to EXT to match the released specs
GL_KHX_multiview and GL_KHX_device_group don't exist, they were released as GL_EXT_multiview and GL_EXT_device_group.
parent
c18cae21
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
26 deletions
+26
-26
spv.deviceGroup.frag.out
Test/baseResults/spv.deviceGroup.frag.out
+5
-5
spv.multiView.frag.out
Test/baseResults/spv.multiView.frag.out
+5
-5
spv.deviceGroup.frag
Test/spv.deviceGroup.frag
+2
-2
spv.multiView.frag
Test/spv.multiView.frag
+2
-2
Initialize.cpp
glslang/MachineIndependent/Initialize.cpp
+6
-6
Versions.cpp
glslang/MachineIndependent/Versions.cpp
+3
-3
Versions.h
glslang/MachineIndependent/Versions.h
+3
-3
No files found.
Test/baseResults/spv.deviceGroup.frag.out
View file @
efc97279
...
@@ -13,11 +13,11 @@ Warning, version 450 is not yet complete; most version-specific features are pre
...
@@ -13,11 +13,11 @@ Warning, version 450 is not yet complete; most version-specific features are pre
EntryPoint Fragment 4 "main" 9
EntryPoint Fragment 4 "main" 9
ExecutionMode 4 OriginUpperLeft
ExecutionMode 4 OriginUpperLeft
Source GLSL 450
Source GLSL 450
SourceExtension "GL_
KHX
_device_group"
SourceExtension "GL_
EXT
_device_group"
Name 4 "main"
Name 4 "main"
Name 9 "color"
Name 9 "color"
Name 12 "gl_DeviceIndex
KHR
"
Name 12 "gl_DeviceIndex"
Decorate 12(gl_DeviceIndex
KHR
) BuiltIn DeviceIndex
Decorate 12(gl_DeviceIndex) BuiltIn DeviceIndex
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -26,11 +26,11 @@ Warning, version 450 is not yet complete; most version-specific features are pre
...
@@ -26,11 +26,11 @@ Warning, version 450 is not yet complete; most version-specific features are pre
9(color): 8(ptr) Variable Output
9(color): 8(ptr) Variable Output
10: TypeInt 32 1
10: TypeInt 32 1
11: TypePointer UniformConstant 10(int)
11: TypePointer UniformConstant 10(int)
12(gl_DeviceIndex
KHR
): 11(ptr) Variable UniformConstant
12(gl_DeviceIndex): 11(ptr) Variable UniformConstant
15: 6(float) Constant 0
15: 6(float) Constant 0
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
13: 10(int) Load 12(gl_DeviceIndex
KHR
)
13: 10(int) Load 12(gl_DeviceIndex)
14: 6(float) ConvertSToF 13
14: 6(float) ConvertSToF 13
16: 7(fvec4) CompositeConstruct 14 15 15 15
16: 7(fvec4) CompositeConstruct 14 15 15 15
Store 9(color) 16
Store 9(color) 16
...
...
Test/baseResults/spv.multiView.frag.out
View file @
efc97279
...
@@ -13,11 +13,11 @@ Warning, version 450 is not yet complete; most version-specific features are pre
...
@@ -13,11 +13,11 @@ Warning, version 450 is not yet complete; most version-specific features are pre
EntryPoint Fragment 4 "main" 9
EntryPoint Fragment 4 "main" 9
ExecutionMode 4 OriginUpperLeft
ExecutionMode 4 OriginUpperLeft
Source GLSL 450
Source GLSL 450
SourceExtension "GL_
KHX
_multiview"
SourceExtension "GL_
EXT
_multiview"
Name 4 "main"
Name 4 "main"
Name 9 "color"
Name 9 "color"
Name 12 "gl_ViewIndex
KHR
"
Name 12 "gl_ViewIndex"
Decorate 12(gl_ViewIndex
KHR
) BuiltIn ViewIndex
Decorate 12(gl_ViewIndex) BuiltIn ViewIndex
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -26,11 +26,11 @@ Warning, version 450 is not yet complete; most version-specific features are pre
...
@@ -26,11 +26,11 @@ Warning, version 450 is not yet complete; most version-specific features are pre
9(color): 8(ptr) Variable Output
9(color): 8(ptr) Variable Output
10: TypeInt 32 1
10: TypeInt 32 1
11: TypePointer UniformConstant 10(int)
11: TypePointer UniformConstant 10(int)
12(gl_ViewIndex
KHR
): 11(ptr) Variable UniformConstant
12(gl_ViewIndex): 11(ptr) Variable UniformConstant
15: 6(float) Constant 0
15: 6(float) Constant 0
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
13: 10(int) Load 12(gl_ViewIndex
KHR
)
13: 10(int) Load 12(gl_ViewIndex)
14: 6(float) ConvertSToF 13
14: 6(float) ConvertSToF 13
16: 7(fvec4) CompositeConstruct 14 15 15 15
16: 7(fvec4) CompositeConstruct 14 15 15 15
Store 9(color) 16
Store 9(color) 16
...
...
Test/spv.deviceGroup.frag
View file @
efc97279
#version 450
#version 450
#extension GL_
KHX
_device_group : enable
#extension GL_
EXT
_device_group : enable
out
vec4
color
;
out
vec4
color
;
void
main
()
{
void
main
()
{
color
=
vec4
(
gl_DeviceIndex
KHR
,
0
,
0
,
0
);
color
=
vec4
(
gl_DeviceIndex
,
0
,
0
,
0
);
}
}
Test/spv.multiView.frag
View file @
efc97279
#version 450
#version 450
#extension GL_
KHX
_multiview : enable
#extension GL_
EXT
_multiview : enable
out
vec4
color
;
out
vec4
color
;
void
main
()
{
void
main
()
{
color
=
vec4
(
gl_ViewIndex
KHR
,
0
,
0
,
0
);
color
=
vec4
(
gl_ViewIndex
,
0
,
0
,
0
);
}
}
glslang/MachineIndependent/Initialize.cpp
View file @
efc97279
...
@@ -3702,8 +3702,8 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
...
@@ -3702,8 +3702,8 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
}
}
if
(
profile
!=
EEsProfile
)
{
if
(
profile
!=
EEsProfile
)
{
commonBuiltins
.
append
(
"uniform int gl_ViewIndex
KHR
;"
);
commonBuiltins
.
append
(
"uniform int gl_ViewIndex;"
);
commonBuiltins
.
append
(
"uniform int gl_DeviceIndex
KHR;"
);
// GL_KHX
_device_group
commonBuiltins
.
append
(
"uniform int gl_DeviceIndex
;"
);
// GL_EXT
_device_group
}
}
// printf("%s\n", commonBuiltins.c_str());
// printf("%s\n", commonBuiltins.c_str());
...
@@ -5318,10 +5318,10 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
...
@@ -5318,10 +5318,10 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
}
if
(
profile
!=
EEsProfile
)
{
if
(
profile
!=
EEsProfile
)
{
symbolTable
.
setFunctionExtensions
(
"gl_DeviceIndex
KHR"
,
1
,
&
E_GL_KHX
_device_group
);
symbolTable
.
setFunctionExtensions
(
"gl_DeviceIndex
"
,
1
,
&
E_GL_EXT
_device_group
);
BuiltInVariable
(
"gl_DeviceIndex
KHR
"
,
EbvDeviceIndex
,
symbolTable
);
BuiltInVariable
(
"gl_DeviceIndex"
,
EbvDeviceIndex
,
symbolTable
);
symbolTable
.
setFunctionExtensions
(
"gl_ViewIndex
KHR"
,
1
,
&
E_GL_KHX
_multiview
);
symbolTable
.
setFunctionExtensions
(
"gl_ViewIndex
"
,
1
,
&
E_GL_EXT
_multiview
);
BuiltInVariable
(
"gl_ViewIndex
KHR
"
,
EbvViewIndex
,
symbolTable
);
BuiltInVariable
(
"gl_ViewIndex"
,
EbvViewIndex
,
symbolTable
);
}
}
break
;
break
;
...
...
glslang/MachineIndependent/Versions.cpp
View file @
efc97279
...
@@ -233,9 +233,9 @@ void TParseVersions::initializeExtensionBehavior()
...
@@ -233,9 +233,9 @@ void TParseVersions::initializeExtensionBehavior()
extensionBehavior
[
E_GL_OES_texture_buffer
]
=
EBhDisable
;
extensionBehavior
[
E_GL_OES_texture_buffer
]
=
EBhDisable
;
extensionBehavior
[
E_GL_OES_texture_cube_map_array
]
=
EBhDisable
;
extensionBehavior
[
E_GL_OES_texture_cube_map_array
]
=
EBhDisable
;
//
KHX
extensions
//
EXT
extensions
extensionBehavior
[
E_GL_
KHX
_device_group
]
=
EBhDisable
;
extensionBehavior
[
E_GL_
EXT
_device_group
]
=
EBhDisable
;
extensionBehavior
[
E_GL_
KHX
_multiview
]
=
EBhDisable
;
extensionBehavior
[
E_GL_
EXT
_multiview
]
=
EBhDisable
;
}
}
// Get code that is not part of a shared symbol table, is specific to this shader,
// Get code that is not part of a shared symbol table, is specific to this shader,
...
...
glslang/MachineIndependent/Versions.h
View file @
efc97279
...
@@ -132,9 +132,9 @@ const char* const E_GL_ARB_sparse_texture_clamp = "GL_ARB_sparse_texture
...
@@ -132,9 +132,9 @@ const char* const E_GL_ARB_sparse_texture_clamp = "GL_ARB_sparse_texture
const
char
*
const
E_GL_EXT_shader_non_constant_global_initializers
=
"GL_EXT_shader_non_constant_global_initializers"
;
const
char
*
const
E_GL_EXT_shader_non_constant_global_initializers
=
"GL_EXT_shader_non_constant_global_initializers"
;
const
char
*
const
E_GL_EXT_shader_image_load_formatted
=
"GL_EXT_shader_image_load_formatted"
;
const
char
*
const
E_GL_EXT_shader_image_load_formatted
=
"GL_EXT_shader_image_load_formatted"
;
//
KHX
extensions
//
EXT
extensions
const
char
*
const
E_GL_
KHX_device_group
=
"GL_KHX
_device_group"
;
const
char
*
const
E_GL_
EXT_device_group
=
"GL_EXT
_device_group"
;
const
char
*
const
E_GL_
KHX_multiview
=
"GL_KHX
_multiview"
;
const
char
*
const
E_GL_
EXT_multiview
=
"GL_EXT
_multiview"
;
// #line and #include
// #line and #include
const
char
*
const
E_GL_GOOGLE_cpp_style_line_directive
=
"GL_GOOGLE_cpp_style_line_directive"
;
const
char
*
const
E_GL_GOOGLE_cpp_style_line_directive
=
"GL_GOOGLE_cpp_style_line_directive"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment