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
c1262756
Commit
c1262756
authored
Aug 02, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Go to the fallbacks for cross-swapchain blits.
parent
111e8fe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
surface.c
dlls/wined3d/surface.c
+22
-0
No files found.
dlls/wined3d/surface.c
View file @
c1262756
...
...
@@ -1285,6 +1285,7 @@ static HRESULT surface_blt(struct wined3d_surface *dst_surface, const RECT *dst_
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect
,
DWORD
flags
,
const
WINEDDBLTFX
*
fx
,
WINED3DTEXTUREFILTERTYPE
filter
)
{
const
struct
wined3d_swapchain
*
src_swapchain
,
*
dst_swapchain
;
struct
wined3d_device
*
device
=
dst_surface
->
resource
.
device
;
DWORD
src_ds_flags
,
dst_ds_flags
;
static
const
DWORD
simple_blit
=
WINEDDBLT_ASYNC
...
...
@@ -1310,6 +1311,27 @@ static HRESULT surface_blt(struct wined3d_surface *dst_surface, const RECT *dst_
goto
fallback
;
}
if
(
src_surface
&&
src_surface
->
container
.
type
==
WINED3D_CONTAINER_SWAPCHAIN
)
src_swapchain
=
src_surface
->
container
.
u
.
swapchain
;
else
src_swapchain
=
NULL
;
if
(
dst_surface
->
container
.
type
==
WINED3D_CONTAINER_SWAPCHAIN
)
dst_swapchain
=
dst_surface
->
container
.
u
.
swapchain
;
else
dst_swapchain
=
NULL
;
/* This isn't strictly needed. FBO blits for example could deal with
* cross-swapchain blits by first downloading the source to a texture
* before switching to the destination context. We just have this here to
* not have to deal with the issue, since cross-swapchain blits should be
* rare. */
if
(
src_swapchain
&&
dst_swapchain
&&
src_swapchain
!=
dst_swapchain
)
{
FIXME
(
"Using fallback for cross-swapchain blit.
\n
"
);
goto
fallback
;
}
dst_ds_flags
=
dst_surface
->
resource
.
format
->
flags
&
(
WINED3DFMT_FLAG_DEPTH
|
WINED3DFMT_FLAG_STENCIL
);
if
(
src_surface
)
src_ds_flags
=
src_surface
->
resource
.
format
->
flags
&
(
WINED3DFMT_FLAG_DEPTH
|
WINED3DFMT_FLAG_STENCIL
);
...
...
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