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
33536437
Commit
33536437
authored
7 years ago
by
Sven Hesse
Browse files
Options
Downloads
Patches
Plain Diff
libs/vkd3d: Implement GetCopyableFootprints for DIMENSION_BUFFER.
parent
1a7cabdd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/vkd3d/device.c
+23
-3
23 additions, 3 deletions
libs/vkd3d/device.c
with
23 additions
and
3 deletions
libs/vkd3d/device.c
+
23
−
3
View file @
33536437
...
...
@@ -1144,10 +1144,30 @@ static void STDMETHODCALLTYPE d3d12_device_GetCopyableFootprints(ID3D12Device *i
return
;
}
if
(
desc
->
Dimension
!=
D3D12_RESOURCE_DIMENSION_TEXTURE2D
)
switch
(
desc
->
Dimension
)
{
FIXME
(
"Unhandled resource dimension %#x.
\n
"
,
desc
->
Dimension
);
return
;
case
D3D12_RESOURCE_DIMENSION_BUFFER
:
if
(
desc
->
Format
!=
DXGI_FORMAT_UNKNOWN
||
desc
->
Layout
!=
D3D12_TEXTURE_LAYOUT_ROW_MAJOR
||
desc
->
Height
!=
1
||
desc
->
DepthOrArraySize
!=
1
||
desc
->
MipLevels
!=
1
||
desc
->
SampleDesc
.
Count
!=
1
||
desc
->
SampleDesc
.
Quality
!=
0
||
(
desc
->
Alignment
!=
0
&&
desc
->
Alignment
!=
D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT
))
{
WARN
(
"Invalid parameters for a buffer resource.
\n
"
);
return
;
}
break
;
case
D3D12_RESOURCE_DIMENSION_TEXTURE2D
:
break
;
case
D3D12_RESOURCE_DIMENSION_TEXTURE1D
:
case
D3D12_RESOURCE_DIMENSION_TEXTURE3D
:
FIXME
(
"Unhandled resource dimension %#x.
\n
"
,
desc
->
Dimension
);
return
;
default:
WARN
(
"Invalid resource dimension %#x.
\n
"
,
desc
->
Dimension
);
return
;
}
if
(
first_sub_resource
>=
desc
->
MipLevels
*
desc
->
DepthOrArraySize
...
...
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