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
30a3bc26
Commit
30a3bc26
authored
Mar 18, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Mar 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add dynamic locking support to CheckDeviceFormat.
parent
7fd87f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
directx.c
dlls/wined3d/directx.c
+18
-0
No files found.
dlls/wined3d/directx.c
View file @
30a3bc26
...
...
@@ -2245,6 +2245,10 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
}
}
/* Always report dynamic locking */
if
(
Usage
&
WINED3DUSAGE_DYNAMIC
)
UsageCaps
|=
WINED3DUSAGE_DYNAMIC
;
if
(
Usage
&
WINED3DUSAGE_RENDERTARGET
)
{
if
(
CheckRenderTargetCapability
(
AdapterFormat
,
CheckFormat
))
{
UsageCaps
|=
WINED3DUSAGE_RENDERTARGET
;
...
...
@@ -2333,6 +2337,10 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
}
}
/* Always report dynamic locking */
if
(
Usage
&
WINED3DUSAGE_DYNAMIC
)
UsageCaps
|=
WINED3DUSAGE_DYNAMIC
;
if
(
Usage
&
WINED3DUSAGE_RENDERTARGET
)
{
if
(
CheckRenderTargetCapability
(
AdapterFormat
,
CheckFormat
))
{
UsageCaps
|=
WINED3DUSAGE_RENDERTARGET
;
...
...
@@ -2386,6 +2394,12 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
UsageCaps
|=
WINED3DUSAGE_DEPTHSTENCIL
;
}
}
else
if
(
RType
==
WINED3DRTYPE_VOLUMETEXTURE
)
{
/* Volumetexture allows:
* - D3DUSAGE_DYNAMIC
* - D3DUSAGE_NONSECURE (d3d9ex)
* - D3DUSAGE_SOFTWAREPROCESSING
*/
/* Check volume texture and volume usage caps */
if
(
GL_SUPPORT
(
EXT_TEXTURE3D
))
{
if
(
CheckTextureCapability
(
Adapter
,
CheckFormat
)
==
FALSE
)
{
...
...
@@ -2393,6 +2407,10 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
return
WINED3DERR_NOTAVAILABLE
;
}
/* Always report dynamic locking */
if
(
Usage
&
WINED3DUSAGE_DYNAMIC
)
UsageCaps
|=
WINED3DUSAGE_DYNAMIC
;
/* Check QUERY_FILTER support */
if
(
Usage
&
WINED3DUSAGE_QUERY_FILTER
)
{
if
(
CheckFilterCapability
(
CheckFormat
))
{
...
...
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