Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a24ff273
Commit
a24ff273
authored
Aug 30, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Aug 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Fix resource misc flags conversion.
Tests with ID3D11Buffers have shown that not all resource misc flags are translated to d3d10 flags.
parent
59745133
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
utils.c
dlls/d3d11/utils.c
+6
-9
No files found.
dlls/d3d11/utils.c
View file @
a24ff273
...
...
@@ -488,17 +488,14 @@ UINT d3d10_resource_misc_flags_from_d3d11_resource_misc_flags(UINT resource_misc
{
static
const
UINT
bitwise_identical_flags
=
D3D11_RESOURCE_MISC_GENERATE_MIPS
|
D3D11_RESOURCE_MISC_SHARED
|
D3D11_RESOURCE_MISC_TEXTURECUBE
|
D3D11_RESOURCE_MISC_BUFFER_STRUCTURED
|
D3D11_RESOURCE_MISC_RESOURCE_CLAMP
|
D3D11_RESOURCE_MISC_SHARED_NTHANDLE
|
D3D11_RESOURCE_MISC_RESTRICTED_CONTENT
|
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE
|
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER
|
D3D11_RESOURCE_MISC_GUARDED
;
|
D3D11_RESOURCE_MISC_TEXTURECUBE
;
const
UINT
handled_flags
=
bitwise_identical_flags
|
D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS
|
D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS
|
D3D11_RESOURCE_MISC_BUFFER_STRUCTURED
|
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
|
D3D11_RESOURCE_MISC_GDI_COMPATIBLE
;
|
D3D11_RESOURCE_MISC_GDI_COMPATIBLE
|
D3D11_RESOURCE_MISC_SHARED_NTHANDLE
;
UINT
d3d10_resource_misc_flags
=
resource_misc_flags
&
bitwise_identical_flags
;
if
(
resource_misc_flags
&
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
)
...
...
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