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
9b74ebd7
Commit
9b74ebd7
authored
Jul 09, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the "lockable" parameter to device_parent_create_rendertarget().
parent
f8077a56
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
28 deletions
+20
-28
device.c
dlls/d3d10core/device.c
+3
-3
device.c
dlls/d3d8/device.c
+4
-4
device.c
dlls/d3d9/device.c
+4
-4
ddraw.c
dlls/ddraw/ddraw.c
+4
-8
swapchain.c
dlls/wined3d/swapchain.c
+4
-8
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/d3d10core/device.c
View file @
9b74ebd7
...
...
@@ -1400,7 +1400,7 @@ static HRESULT CDECL device_parent_create_surface(struct wined3d_device_parent *
static
HRESULT
CDECL
device_parent_create_rendertarget
(
struct
wined3d_device_parent
*
device_parent
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
struct
wined3d_surface
**
surface
)
{
struct
d3d10_device
*
device
=
device_from_wined3d_device_parent
(
device_parent
);
...
...
@@ -1409,9 +1409,9 @@ static HRESULT CDECL device_parent_create_rendertarget(struct wined3d_device_par
HRESULT
hr
;
FIXME
(
"device_parent %p, container_parent %p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
"
\t
multisample_quality %u,
lockable %u,
surface %p partial stub!
\n
"
,
"
\t
multisample_quality %u, surface %p partial stub!
\n
"
,
device_parent
,
container_parent
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
multisample_quality
,
surface
);
FIXME
(
"Implement DXGI<->wined3d usage conversion
\n
"
);
...
...
dlls/d3d8/device.c
View file @
9b74ebd7
...
...
@@ -2856,7 +2856,7 @@ static HRESULT CDECL device_parent_create_surface(struct wined3d_device_parent *
static
HRESULT
CDECL
device_parent_create_rendertarget
(
struct
wined3d_device_parent
*
device_parent
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
struct
wined3d_surface
**
surface
)
{
struct
d3d8_device
*
device
=
device_from_device_parent
(
device_parent
);
...
...
@@ -2864,12 +2864,12 @@ static HRESULT CDECL device_parent_create_rendertarget(struct wined3d_device_par
HRESULT
hr
;
TRACE
(
"device_parent %p, container_parent %p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
"
\t
multisample_quality %u,
lockable %u,
surface %p.
\n
"
,
"
\t
multisample_quality %u, surface %p.
\n
"
,
device_parent
,
container_parent
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
multisample_type
,
multisample_quality
,
surface
);
hr
=
IDirect3DDevice8_CreateRenderTarget
(
&
device
->
IDirect3DDevice8_iface
,
width
,
height
,
d3dformat_from_wined3dformat
(
format
),
multisample_type
,
lockable
,
(
IDirect3DSurface8
**
)
&
d3d_surface
);
d3dformat_from_wined3dformat
(
format
),
multisample_type
,
TRUE
,
(
IDirect3DSurface8
**
)
&
d3d_surface
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create rendertarget, hr %#x.
\n
"
,
hr
);
...
...
dlls/d3d9/device.c
View file @
9b74ebd7
...
...
@@ -3210,7 +3210,7 @@ static HRESULT CDECL device_parent_create_surface(struct wined3d_device_parent *
static
HRESULT
CDECL
device_parent_create_rendertarget
(
struct
wined3d_device_parent
*
device_parent
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
struct
wined3d_surface
**
surface
)
{
struct
d3d9_device
*
device
=
device_from_device_parent
(
device_parent
);
...
...
@@ -3218,12 +3218,12 @@ static HRESULT CDECL device_parent_create_rendertarget(struct wined3d_device_par
HRESULT
hr
;
TRACE
(
"device_parent %p, container_parent %p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
"
\t
multisample_quality %u,
lockable %u,
surface %p.
\n
"
,
"
\t
multisample_quality %u, surface %p.
\n
"
,
device_parent
,
container_parent
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
multisample_quality
,
surface
);
hr
=
d3d9_device_CreateRenderTarget
(
&
device
->
IDirect3DDevice9Ex_iface
,
width
,
height
,
d3dformat_from_wined3dformat
(
format
),
multisample_type
,
multisample_quality
,
lockable
,
d3dformat_from_wined3dformat
(
format
),
multisample_type
,
multisample_quality
,
TRUE
,
(
IDirect3DSurface9
**
)
&
d3d_surface
,
NULL
);
if
(
FAILED
(
hr
))
{
...
...
dlls/ddraw/ddraw.c
View file @
9b74ebd7
...
...
@@ -5444,17 +5444,16 @@ static const struct wined3d_parent_ops ddraw_frontbuffer_parent_ops =
static
HRESULT
CDECL
device_parent_create_rendertarget
(
struct
wined3d_device_parent
*
device_parent
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
struct
wined3d_surface
**
surface
)
{
struct
ddraw
*
ddraw
=
ddraw_from_device_parent
(
device_parent
);
DWORD
flags
=
0
;
HRESULT
hr
;
TRACE
(
"device_parent %p, container_parent %p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
"
\t
multisample_quality %u,
lockable %u,
surface %p.
\n
"
,
"
\t
multisample_quality %u, surface %p.
\n
"
,
device_parent
,
container_parent
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
multisample_quality
,
surface
);
if
(
ddraw
->
wined3d_frontbuffer
)
{
...
...
@@ -5462,12 +5461,9 @@ static HRESULT CDECL device_parent_create_rendertarget(struct wined3d_device_par
return
E_FAIL
;
}
if
(
lockable
)
flags
|=
WINED3D_SURFACE_MAPPABLE
;
hr
=
wined3d_surface_create
(
ddraw
->
wined3d_device
,
width
,
height
,
format
,
0
,
WINED3DUSAGE_RENDERTARGET
,
WINED3D_POOL_DEFAULT
,
multisample_type
,
multisample_quality
,
DefaultSurfaceType
,
flags
,
ddraw
,
&
ddraw_frontbuffer_parent_ops
,
surface
);
DefaultSurfaceType
,
WINED3D_SURFACE_MAPPABLE
,
ddraw
,
&
ddraw_frontbuffer_parent_ops
,
surface
);
if
(
SUCCEEDED
(
hr
))
ddraw
->
wined3d_frontbuffer
=
*
surface
;
...
...
dlls/wined3d/swapchain.c
View file @
9b74ebd7
...
...
@@ -943,12 +943,10 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, enum wined3d_
swapchain_update_render_to_fbo
(
swapchain
);
TRACE
(
"Creating front buffer.
\n
"
);
hr
=
device
->
device_parent
->
ops
->
create_rendertarget
(
device
->
device_parent
,
parent
,
if
(
FAILED
(
hr
=
device
->
device_parent
->
ops
->
create_rendertarget
(
device
->
device_parent
,
parent
,
swapchain
->
desc
.
backbuffer_width
,
swapchain
->
desc
.
backbuffer_height
,
swapchain
->
desc
.
backbuffer_format
,
swapchain
->
desc
.
multisample_type
,
swapchain
->
desc
.
multisample_quality
,
TRUE
/* Lockable */
,
&
swapchain
->
front_buffer
);
if
(
FAILED
(
hr
))
swapchain
->
desc
.
multisample_quality
,
&
swapchain
->
front_buffer
)))
{
WARN
(
"Failed to create front buffer, hr %#x.
\n
"
,
hr
);
goto
err
;
...
...
@@ -1053,12 +1051,10 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, enum wined3d_
for
(
i
=
0
;
i
<
swapchain
->
desc
.
backbuffer_count
;
++
i
)
{
TRACE
(
"Creating back buffer %u.
\n
"
,
i
);
hr
=
device
->
device_parent
->
ops
->
create_rendertarget
(
device
->
device_parent
,
parent
,
if
(
FAILED
(
hr
=
device
->
device_parent
->
ops
->
create_rendertarget
(
device
->
device_parent
,
parent
,
swapchain
->
desc
.
backbuffer_width
,
swapchain
->
desc
.
backbuffer_height
,
swapchain
->
desc
.
backbuffer_format
,
swapchain
->
desc
.
multisample_type
,
swapchain
->
desc
.
multisample_quality
,
TRUE
/* Lockable */
,
&
swapchain
->
back_buffers
[
i
]);
if
(
FAILED
(
hr
))
swapchain
->
desc
.
multisample_quality
,
&
swapchain
->
back_buffers
[
i
])))
{
WARN
(
"Failed to create back buffer %u, hr %#x.
\n
"
,
i
,
hr
);
goto
err
;
...
...
include/wine/wined3d.h
View file @
9b74ebd7
...
...
@@ -2002,7 +2002,7 @@ struct wined3d_device_parent_ops
UINT
level
,
enum
wined3d_cubemap_face
face
,
struct
wined3d_surface
**
surface
);
HRESULT
(
__cdecl
*
create_rendertarget
)(
struct
wined3d_device_parent
*
device_parent
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format_id
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
struct
wined3d_surface
**
surface
);
DWORD
multisample_quality
,
struct
wined3d_surface
**
surface
);
HRESULT
(
__cdecl
*
create_depth_stencil
)(
struct
wined3d_device_parent
*
device_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format_id
,
enum
wined3d_multisample_type
multisample_type
,
DWORD
multisample_quality
,
BOOL
discard
,
struct
wined3d_surface
**
surface
);
...
...
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