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
7c88aff1
Commit
7c88aff1
authored
Apr 11, 2018
by
Rex Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify SPV_AMD_gpu_shader_int16 extension string when frexp() takes 16-bit
exp operand
parent
6cf7645c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+5
-0
No files found.
SPIRV/GlslangToSpv.cpp
View file @
7c88aff1
...
@@ -6126,6 +6126,11 @@ spv::Id TGlslangToSpvTraverser::createMiscOperation(glslang::TOperator op, spv::
...
@@ -6126,6 +6126,11 @@ spv::Id TGlslangToSpvTraverser::createMiscOperation(glslang::TOperator op, spv::
assert
(
builder
.
isPointerType
(
typeId1
));
assert
(
builder
.
isPointerType
(
typeId1
));
typeId1
=
builder
.
getContainedTypeId
(
typeId1
);
typeId1
=
builder
.
getContainedTypeId
(
typeId1
);
int
width
=
builder
.
getScalarTypeWidth
(
typeId1
);
int
width
=
builder
.
getScalarTypeWidth
(
typeId1
);
#ifdef AMD_EXTENSIONS
if
(
width
==
16
)
// Using 16-bit exp operand, enable extension SPV_AMD_gpu_shader_int16
builder
.
addExtension
(
spv
::
E_SPV_AMD_gpu_shader_int16
);
#endif
if
(
builder
.
getNumComponents
(
operands
[
0
])
==
1
)
if
(
builder
.
getNumComponents
(
operands
[
0
])
==
1
)
frexpIntType
=
builder
.
makeIntegerType
(
width
,
true
);
frexpIntType
=
builder
.
makeIntegerType
(
width
,
true
);
else
else
...
...
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