Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
vkd3d
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wine
vkd3d
Commits
39a2c0e5
Commit
39a2c0e5
authored
7 years ago
by
Józef Kucia
Browse files
Options
Downloads
Patches
Plain Diff
libs/vkd3d: Fix width and height for DSV descriptors.
parent
7917b84c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/vkd3d/resource.c
+5
-3
5 additions, 3 deletions
libs/vkd3d/resource.c
with
5 additions
and
3 deletions
libs/vkd3d/resource.c
+
5
−
3
View file @
39a2c0e5
...
...
@@ -1338,6 +1338,7 @@ void d3d12_dsv_desc_create_dsv(struct d3d12_dsv_desc *dsv_desc, struct d3d12_dev
struct
d3d12_resource
*
resource
,
const
D3D12_DEPTH_STENCIL_VIEW_DESC
*
desc
)
{
const
struct
vkd3d_format
*
format
;
uint32_t
miplevel_idx
;
d3d12_dsv_desc_destroy
(
dsv_desc
,
device
);
...
...
@@ -1368,13 +1369,14 @@ void d3d12_dsv_desc_create_dsv(struct d3d12_dsv_desc *dsv_desc, struct d3d12_dev
if
(
desc
&&
desc
->
Flags
)
FIXME
(
"Ignoring flags %#x.
\n
"
,
desc
->
Flags
);
miplevel_idx
=
desc
?
desc
->
u
.
Texture2D
.
MipSlice
:
0
;
if
(
vkd3d_create_texture_view
(
device
,
resource
,
format
,
VK_IMAGE_VIEW_TYPE_2D
,
desc
?
desc
->
u
.
Texture2D
.
MipSlice
:
0
,
1
,
0
,
1
,
&
dsv_desc
->
vk_view
)
<
0
)
miplevel_idx
,
1
,
0
,
1
,
&
dsv_desc
->
vk_view
)
<
0
)
return
;
dsv_desc
->
format
=
format
->
vk_format
;
dsv_desc
->
width
=
resource
->
desc
.
Width
;
dsv_desc
->
height
=
resource
->
desc
.
Height
;
dsv_desc
->
width
=
d3d12_
resource
_
desc
_get_width
(
&
resource
->
desc
,
miplevel_idx
)
;
dsv_desc
->
height
=
d3d12_
resource
_
desc
_get_height
(
&
resource
->
desc
,
miplevel_idx
)
;
dsv_desc
->
magic
=
VKD3D_DESCRIPTOR_MAGIC_DSV
;
dsv_desc
->
resource
=
resource
;
}
...
...
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