Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
d9vk
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Joshua Ashton
d9vk
Commits
fb994424
Commit
fb994424
authored
Dec 02, 2019
by
Joshua Ashton
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[d3d9] Implement d3d9.supportD32
parent
e582117f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
src/d3d9/d3d9_format.cpp
src/d3d9/d3d9_format.cpp
+4
-0
src/d3d9/d3d9_format.h
src/d3d9/d3d9_format.h
+1
-0
src/d3d9/d3d9_options.cpp
src/d3d9/d3d9_options.cpp
+1
-0
src/d3d9/d3d9_options.h
src/d3d9/d3d9_options.h
+3
-0
No files found.
src/d3d9/d3d9_format.cpp
View file @
fb994424
...
...
@@ -394,6 +394,7 @@ namespace dxvk {
const
D3D9Options
&
options
)
{
m_dfSupport
=
options
.
supportDFFormats
;
m_x4r4g4b4Support
=
options
.
supportX4R4G4B4
;
m_d32supportFinal
=
options
.
supportD32
;
// AMD do not support 24-bit depth buffers on Vulkan,
// so we have to fall back to a 32-bit depth format.
...
...
@@ -430,6 +431,9 @@ namespace dxvk {
if
(
Format
==
D3D9Format
::
DF24
&&
!
m_dfSupport
)
return
D3D9_VK_FORMAT_MAPPING
();
if
(
Format
==
D3D9Format
::
D32
&&
!
m_d32supportFinal
)
return
D3D9_VK_FORMAT_MAPPING
();
if
(
!
m_d24s8Support
&&
mapping
.
FormatColor
==
VK_FORMAT_D24_UNORM_S8_UINT
)
mapping
.
FormatColor
=
VK_FORMAT_D32_SFLOAT_S8_UINT
;
...
...
src/d3d9/d3d9_format.h
View file @
fb994424
...
...
@@ -209,6 +209,7 @@ namespace dxvk {
bool
m_dfSupport
;
bool
m_x4r4g4b4Support
;
bool
m_d32supportFinal
;
};
}
\ No newline at end of file
src/d3d9/d3d9_options.cpp
View file @
fb994424
...
...
@@ -52,6 +52,7 @@ namespace dxvk {
this
->
maxAvailableMemory
=
config
.
getOption
<
uint32_t
>
(
"d3d9.maxAvailableMemory"
,
UINT32_MAX
);
this
->
supportDFFormats
=
config
.
getOption
<
bool
>
(
"d3d9.supportDFFormats"
,
true
);
this
->
supportX4R4G4B4
=
config
.
getOption
<
bool
>
(
"d3d9.supportX4R4G4B4"
,
true
);
this
->
supportD32
=
config
.
getOption
<
bool
>
(
"d3d9.supportD32"
,
true
);
this
->
swvpFloatCount
=
config
.
getOption
<
uint32_t
>
(
"d3d9.swvpFloatCount"
,
caps
::
MaxFloatConstantsSoftware
);
this
->
swvpIntCount
=
config
.
getOption
<
uint32_t
>
(
"d3d9.swvpIntCount"
,
caps
::
MaxOtherConstantsSoftware
);
this
->
swvpBoolCount
=
config
.
getOption
<
uint32_t
>
(
"d3d9.swvpBoolCount"
,
caps
::
MaxOtherConstantsSoftware
);
...
...
src/d3d9/d3d9_options.h
View file @
fb994424
...
...
@@ -83,6 +83,9 @@ namespace dxvk {
/// Support X4R4G4B4
bool
supportX4R4G4B4
;
/// Support D32
bool
supportD32
;
/// SWVP Constant Limits
uint32_t
swvpFloatCount
;
uint32_t
swvpIntCount
;
...
...
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