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
bccfd7cc
Commit
bccfd7cc
authored
Apr 12, 2010
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Apr 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add BLT_OP_COLOR_FILL to blit_supported and use it in BltOverride.
parent
10f58c14
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
17 deletions
+39
-17
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+8
-7
surface.c
dlls/wined3d/surface.c
+29
-9
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
bccfd7cc
...
...
@@ -6846,13 +6846,7 @@ static BOOL arbfp_blit_supported(const struct wined3d_gl_info *gl_info, enum bli
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format_desc
*
dst_format_desc
)
{
enum
complex_fixup
src_fixup
=
get_complex_fixup
(
src_format_desc
->
color_fixup
);
if
(
TRACE_ON
(
d3d_shader
)
&&
TRACE_ON
(
d3d
))
{
TRACE
(
"Checking support for fixup:
\n
"
);
dump_color_fixup_desc
(
src_format_desc
->
color_fixup
);
}
enum
complex_fixup
src_fixup
;
if
(
blit_op
!=
BLIT_OP_BLIT
)
{
...
...
@@ -6860,6 +6854,13 @@ static BOOL arbfp_blit_supported(const struct wined3d_gl_info *gl_info, enum bli
return
FALSE
;
}
src_fixup
=
get_complex_fixup
(
src_format_desc
->
color_fixup
);
if
(
TRACE_ON
(
d3d_shader
)
&&
TRACE_ON
(
d3d
))
{
TRACE
(
"Checking support for fixup:
\n
"
);
dump_color_fixup_desc
(
src_format_desc
->
color_fixup
);
}
if
(
!
is_identity_fixup
(
dst_format_desc
->
color_fixup
))
{
TRACE
(
"Destination fixups are not supported
\n
"
);
...
...
dlls/wined3d/surface.c
View file @
bccfd7cc
...
...
@@ -3759,16 +3759,19 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, const
return
WINED3DERR_INVALIDCALL
;
}
/* This == (IWineD3DSurfaceImpl *) myDevice->render_targets[0] || dstSwapchain
must be true if we are here */
if
(
This
!=
(
IWineD3DSurfaceImpl
*
)
myDevice
->
render_targets
[
0
]
&&
!
(
This
==
(
IWineD3DSurfaceImpl
*
)
dstSwapchain
->
frontBuffer
||
(
dstSwapchain
->
backBuffer
&&
This
==
(
IWineD3DSurfaceImpl
*
)
dstSwapchain
->
backBuffer
[
0
])))
{
TRACE
(
"Surface is higher back buffer, falling back to software
\n
"
);
if
(
ffp_blit
.
blit_supported
(
&
myDevice
->
adapter
->
gl_info
,
BLIT_OP_COLOR_FILL
,
NULL
,
0
,
0
,
NULL
,
&
dst_rect
,
This
->
resource
.
usage
,
This
->
resource
.
pool
,
This
->
resource
.
format_desc
))
{
return
ffp_blit
.
color_fill
(
myDevice
,
This
,
&
dst_rect
,
color
);
}
else
if
(
cpu_blit
.
blit_supported
(
&
myDevice
->
adapter
->
gl_info
,
BLIT_OP_COLOR_FILL
,
NULL
,
0
,
0
,
NULL
,
&
dst_rect
,
This
->
resource
.
usage
,
This
->
resource
.
pool
,
This
->
resource
.
format_desc
))
{
return
cpu_blit
.
color_fill
(
myDevice
,
This
,
&
dst_rect
,
color
);
}
return
ffp_blit
.
color_fill
(
myDevice
,
This
,
&
dst_rect
,
color
);
return
WINED3DERR_INVALIDCALL
;
}
}
...
...
@@ -4801,8 +4804,20 @@ static BOOL ffp_blit_supported(const struct wined3d_gl_info *gl_info, enum blit_
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format_desc
*
dst_format_desc
)
{
enum
complex_fixup
src_fixup
=
get_complex_fixup
(
src_format_desc
->
color_fixup
)
;
enum
complex_fixup
src_fixup
;
if
(
blit_op
==
BLIT_OP_COLOR_FILL
)
{
if
(
!
(
dst_usage
&
WINED3DUSAGE_RENDERTARGET
))
{
TRACE
(
"Color fill not supported
\n
"
);
return
FALSE
;
}
return
TRUE
;
}
src_fixup
=
get_complex_fixup
(
src_format_desc
->
color_fixup
);
if
(
TRACE_ON
(
d3d_surface
)
&&
TRACE_ON
(
d3d
))
{
TRACE
(
"Checking support for fixup:
\n
"
);
...
...
@@ -4880,6 +4895,11 @@ static BOOL cpu_blit_supported(const struct wined3d_gl_info *gl_info, enum blit_
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format_desc
*
dst_format_desc
)
{
if
(
blit_op
==
BLIT_OP_COLOR_FILL
)
{
return
TRUE
;
}
return
FALSE
;
}
...
...
dlls/wined3d/wined3d_private.h
View file @
bccfd7cc
...
...
@@ -1171,7 +1171,8 @@ HRESULT compile_state_table(struct StateEntry *StateTable, APPLYSTATEFUNC **dev_
enum
blit_operation
{
BLIT_OP_BLIT
BLIT_OP_BLIT
,
BLIT_OP_COLOR_FILL
};
/* Shaders for color conversions in blits */
...
...
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