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
98e1d7f6
Unverified
Commit
98e1d7f6
authored
May 17, 2018
by
John Kessenich
Committed by
GitHub
May 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1383 from amdrexu/bugfix
Fix issue #1376: SPV_AMD_gpu_shader_half_float is not emitted under vulkan1.1
parents
cfb05ec7
b4a2a6cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+14
-0
No files found.
SPIRV/GlslangToSpv.cpp
View file @
98e1d7f6
...
...
@@ -4630,6 +4630,10 @@ spv::Id TGlslangToSpvTraverser::createUnaryOperation(glslang::TOperator op, OpDe
unaryOp
=
spv
::
OpFwidthCoarse
;
break
;
case
glslang
:
:
EOpInterpolateAtCentroid
:
#ifdef AMD_EXTENSIONS
if
(
typeProxy
==
glslang
::
EbtFloat16
)
builder
.
addExtension
(
spv
::
E_SPV_AMD_gpu_shader_half_float
);
#endif
builder
.
addCapability
(
spv
::
CapabilityInterpolationFunction
);
libCall
=
spv
::
GLSLstd450InterpolateAtCentroid
;
break
;
...
...
@@ -6097,10 +6101,18 @@ spv::Id TGlslangToSpvTraverser::createMiscOperation(glslang::TOperator op, spv::
libCall
=
spv
::
GLSLstd450Refract
;
break
;
case
glslang
:
:
EOpInterpolateAtSample
:
#ifdef AMD_EXTENSIONS
if
(
typeProxy
==
glslang
::
EbtFloat16
)
builder
.
addExtension
(
spv
::
E_SPV_AMD_gpu_shader_half_float
);
#endif
builder
.
addCapability
(
spv
::
CapabilityInterpolationFunction
);
libCall
=
spv
::
GLSLstd450InterpolateAtSample
;
break
;
case
glslang
:
:
EOpInterpolateAtOffset
:
#ifdef AMD_EXTENSIONS
if
(
typeProxy
==
glslang
::
EbtFloat16
)
builder
.
addExtension
(
spv
::
E_SPV_AMD_gpu_shader_half_float
);
#endif
builder
.
addCapability
(
spv
::
CapabilityInterpolationFunction
);
libCall
=
spv
::
GLSLstd450InterpolateAtOffset
;
break
;
...
...
@@ -6251,6 +6263,8 @@ spv::Id TGlslangToSpvTraverser::createMiscOperation(glslang::TOperator op, spv::
break
;
case
glslang
:
:
EOpInterpolateAtVertex
:
if
(
typeProxy
==
glslang
::
EbtFloat16
)
builder
.
addExtension
(
spv
::
E_SPV_AMD_gpu_shader_half_float
);
extBuiltins
=
getExtBuiltins
(
spv
::
E_SPV_AMD_shader_explicit_vertex_parameter
);
libCall
=
spv
::
InterpolateAtVertexAMD
;
break
;
...
...
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