Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
f845df86
There was an error fetching the commit references. Please try again later.
Unverified
Commit
f845df86
authored
5 years ago
by
ReinUsesLisp
Browse files
Options
Downloads
Patches
Plain Diff
maxwell_to_vk: Use VK_EXT_index_type_uint8 when available
parent
8fc49a83
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/video_core/renderer_vulkan/maxwell_to_vk.cpp
+6
-3
6 additions, 3 deletions
src/video_core/renderer_vulkan/maxwell_to_vk.cpp
src/video_core/renderer_vulkan/maxwell_to_vk.h
+1
-1
1 addition, 1 deletion
src/video_core/renderer_vulkan/maxwell_to_vk.h
with
7 additions
and
4 deletions
src/video_core/renderer_vulkan/maxwell_to_vk.cpp
+
6
−
3
View file @
f845df86
...
...
@@ -308,11 +308,14 @@ vk::CompareOp ComparisonOp(Maxwell::ComparisonOp comparison) {
return
{};
}
vk
::
IndexType
IndexFormat
(
Maxwell
::
IndexFormat
index_format
)
{
vk
::
IndexType
IndexFormat
(
const
VKDevice
&
device
,
Maxwell
::
IndexFormat
index_format
)
{
switch
(
index_format
)
{
case
Maxwell
::
IndexFormat
::
UnsignedByte
:
UNIMPLEMENTED_MSG
(
"Vulkan does not support native u8 index format"
);
return
vk
::
IndexType
::
eUint16
;
if
(
!
device
.
IsExtIndexTypeUint8Supported
())
{
UNIMPLEMENTED_MSG
(
"Native uint8 indices are not supported on this device"
);
return
vk
::
IndexType
::
eUint16
;
}
return
vk
::
IndexType
::
eUint8EXT
;
case
Maxwell
::
IndexFormat
::
UnsignedShort
:
return
vk
::
IndexType
::
eUint16
;
case
Maxwell
::
IndexFormat
::
UnsignedInt
:
...
...
This diff is collapsed.
Click to expand it.
src/video_core/renderer_vulkan/maxwell_to_vk.h
+
1
−
1
View file @
f845df86
...
...
@@ -40,7 +40,7 @@ vk::Format VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttr
vk
::
CompareOp
ComparisonOp
(
Maxwell
::
ComparisonOp
comparison
);
vk
::
IndexType
IndexFormat
(
Maxwell
::
IndexFormat
index_format
);
vk
::
IndexType
IndexFormat
(
const
VKDevice
&
device
,
Maxwell
::
IndexFormat
index_format
);
vk
::
StencilOp
StencilOp
(
Maxwell
::
StencilOp
stencil_op
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment