Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
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
Lorenzo Ferrillo
wine
Commits
d9ab258d
Commit
d9ab258d
authored
13 years ago
by
Henri Verbeet
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
d3d9: Add some FIXMEs for d3d9ex resource sharing.
parent
8a3d0dc5
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
dlls/d3d9/device.c
+38
-7
38 additions, 7 deletions
dlls/d3d9/device.c
with
38 additions
and
7 deletions
dlls/d3d9/device.c
+
38
−
7
View file @
d9ab258d
...
...
@@ -698,6 +698,9 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateTexture(IDirect3DDevice9Ex *ifa
TRACE
(
"iface %p, width %u, height %u, levels %u, usage %#x, format %#x, pool %#x, texture %p, shared_handle %p.
\n
"
,
iface
,
width
,
height
,
levels
,
usage
,
format
,
pool
,
texture
,
shared_handle
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
...
...
@@ -732,6 +735,9 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateVolumeTexture(IDirect3DDevice9E
TRACE
(
"usage %#x, format %#x, pool %#x, texture %p, shared_handle %p.
\n
"
,
usage
,
format
,
pool
,
texture
,
shared_handle
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
...
...
@@ -764,6 +770,9 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateCubeTexture(IDirect3DDevice9Ex
TRACE
(
"iface %p, edge_length %u, levels %u, usage %#x, format %#x, pool %#x, texture %p, shared_handle %p.
\n
"
,
iface
,
edge_length
,
levels
,
usage
,
format
,
pool
,
texture
,
shared_handle
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
...
...
@@ -796,6 +805,9 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexBuffer(IDirect3DDevice9Ex
TRACE
(
"iface %p, size %u, usage %#x, fvf %#x, pool %#x, buffer %p, shared_handle %p.
\n
"
,
iface
,
size
,
usage
,
fvf
,
pool
,
buffer
,
shared_handle
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
...
...
@@ -828,6 +840,9 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateIndexBuffer(IDirect3DDevice9Ex
TRACE
(
"iface %p, size %u, usage %#x, format %#x, pool %#x, buffer %p, shared_handle %p.
\n
"
,
iface
,
size
,
usage
,
format
,
pool
,
buffer
,
shared_handle
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
...
...
@@ -886,7 +901,7 @@ static HRESULT IDirect3DDevice9Impl_CreateSurface(IDirect3DDevice9Impl *device,
static
HRESULT
WINAPI
IDirect3DDevice9Impl_CreateRenderTarget
(
IDirect3DDevice9Ex
*
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
BOOL
Lockable
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pS
hared
H
andle
)
BOOL
Lockable
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
s
hared
_h
andle
)
{
IDirect3DDevice9Impl
*
This
=
impl_from_IDirect3DDevice9Ex
(
iface
);
HRESULT
hr
;
...
...
@@ -894,7 +909,10 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateRenderTarget(IDirect3DDevice9Ex
TRACE
(
"iface %p, width %u, height %u, format %#x, multisample_type %#x, multisample_quality %u.
\n
"
"lockable %#x, surface %p, shared_handle %p.
\n
"
,
iface
,
Width
,
Height
,
Format
,
MultiSample
,
MultisampleQuality
,
Lockable
,
ppSurface
,
pSharedHandle
);
Lockable
,
ppSurface
,
shared_handle
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
hr
=
IDirect3DDevice9Impl_CreateSurface
(
This
,
Width
,
Height
,
Format
,
Lockable
,
FALSE
/* Discard */
,
0
/* Level */
,
ppSurface
,
D3DUSAGE_RENDERTARGET
,
D3DPOOL_DEFAULT
,
...
...
@@ -906,7 +924,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateRenderTarget(IDirect3DDevice9Ex
static
HRESULT
WINAPI
IDirect3DDevice9Impl_CreateDepthStencilSurface
(
IDirect3DDevice9Ex
*
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
BOOL
Discard
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pS
hared
H
andle
)
HANDLE
*
s
hared
_h
andle
)
{
IDirect3DDevice9Impl
*
This
=
impl_from_IDirect3DDevice9Ex
(
iface
);
HRESULT
hr
;
...
...
@@ -914,7 +932,10 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateDepthStencilSurface(IDirect3DDe
TRACE
(
"iface %p, width %u, height %u, format %#x, multisample_type %#x, multisample_quality %u.
\n
"
"discard %#x, surface %p, shared_handle %p.
\n
"
,
iface
,
Width
,
Height
,
Format
,
MultiSample
,
MultisampleQuality
,
Discard
,
ppSurface
,
pSharedHandle
);
Discard
,
ppSurface
,
shared_handle
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
hr
=
IDirect3DDevice9Impl_CreateSurface
(
This
,
Width
,
Height
,
Format
,
TRUE
/* Lockable */
,
Discard
,
0
/* Level */
,
ppSurface
,
D3DUSAGE_DEPTHSTENCIL
,
D3DPOOL_DEFAULT
,
MultiSample
,
...
...
@@ -1054,15 +1075,19 @@ static HRESULT WINAPI IDirect3DDevice9Impl_ColorFill(IDirect3DDevice9Ex *iface,
static
HRESULT
WINAPI
IDirect3DDevice9Impl_CreateOffscreenPlainSurface
(
IDirect3DDevice9Ex
*
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pS
hared
H
andle
)
HANDLE
*
s
hared
_h
andle
)
{
IDirect3DDevice9Impl
*
This
=
impl_from_IDirect3DDevice9Ex
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, width %u, height %u, format %#x, pool %#x, surface %p, shared_handle %p.
\n
"
,
iface
,
Width
,
Height
,
Format
,
Pool
,
ppSurface
,
pSharedHandle
);
iface
,
Width
,
Height
,
Format
,
Pool
,
ppSurface
,
shared_handle
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
if
(
Pool
==
D3DPOOL_MANAGED
){
if
(
Pool
==
D3DPOOL_MANAGED
)
{
FIXME
(
"Attempting to create a managed offscreen plain surface
\n
"
);
return
D3DERR_INVALIDCALL
;
}
...
...
@@ -2850,6 +2875,9 @@ static HRESULT WINAPI IDirect3DDevice9ExImpl_CreateRenderTargetEx(IDirect3DDevic
iface
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
,
shared_handle
,
usage
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
return
E_NOTIMPL
;
}
...
...
@@ -2872,6 +2900,9 @@ static HRESULT WINAPI IDirect3DDevice9ExImpl_CreateDepthStencilSurfaceEx(IDirect
iface
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
discard
,
surface
,
shared_handle
,
usage
);
if
(
shared_handle
)
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
return
E_NOTIMPL
;
}
...
...
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