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
90da0092
Commit
90da0092
authored
Apr 05, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make "blit_operation" naming a bit more consistent.
parent
2d7fa5f2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
29 deletions
+29
-29
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-3
directx.c
dlls/wined3d/directx.c
+1
-1
surface.c
dlls/wined3d/surface.c
+18
-18
utils.c
dlls/wined3d/utils.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+6
-6
No files found.
dlls/wined3d/arb_program_shader.c
View file @
90da0092
...
...
@@ -7145,7 +7145,7 @@ static void arbfp_blit_unset(const struct wined3d_gl_info *gl_info)
LEAVE_GL
();
}
static
BOOL
arbfp_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
static
BOOL
arbfp_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
WINED3DPOOL
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format
*
dst_format
)
{
...
...
@@ -7154,7 +7154,7 @@ static BOOL arbfp_blit_supported(const struct wined3d_gl_info *gl_info, enum bli
if
(
!
gl_info
->
supported
[
ARB_FRAGMENT_PROGRAM
])
return
FALSE
;
if
(
blit_op
!=
BLIT_OP
_BLIT
)
if
(
blit_op
!=
WINED3D_BLIT_OP_COLOR
_BLIT
)
{
TRACE
(
"Unsupported blit_op=%d
\n
"
,
blit_op
);
return
FALSE
;
...
...
@@ -7203,7 +7203,7 @@ static BOOL arbfp_blit_supported(const struct wined3d_gl_info *gl_info, enum bli
}
HRESULT
arbfp_blit_surface
(
IWineD3DDeviceImpl
*
device
,
IWineD3DSurfaceImpl
*
src_surface
,
const
RECT
*
src_rect
,
IWineD3DSurfaceImpl
*
dst_surface
,
const
RECT
*
dst_rect_in
,
enum
blit_operation
blit_op
,
IWineD3DSurfaceImpl
*
dst_surface
,
const
RECT
*
dst_rect_in
,
enum
wined3d_blit_op
blit_op
,
DWORD
Filter
)
{
IWineD3DSwapChainImpl
*
dst_swapchain
;
...
...
dlls/wined3d/directx.c
View file @
90da0092
...
...
@@ -3602,7 +3602,7 @@ static BOOL CheckSurfaceCapability(const struct wined3d_adapter *adapter,
if
(
CheckDepthStencilCapability
(
adapter
,
adapter_format
,
check_format
))
return
TRUE
;
/* If opengl can't process the format natively, the blitter may be able to convert it */
if
(
adapter
->
blitter
->
blit_supported
(
&
adapter
->
gl_info
,
BLIT_OP
_BLIT
,
if
(
adapter
->
blitter
->
blit_supported
(
&
adapter
->
gl_info
,
WINED3D_BLIT_OP_COLOR
_BLIT
,
NULL
,
WINED3DPOOL_DEFAULT
,
0
,
check_format
,
NULL
,
WINED3DPOOL_DEFAULT
,
0
,
adapter_format
))
{
...
...
dlls/wined3d/surface.c
View file @
90da0092
...
...
@@ -2306,7 +2306,7 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck,
* 8-bit blits need to be handled by the blit_shader.
* TODO: get rid of this #if 0. */
#if 0
blit_supported = device->blitter->blit_supported(&device->adapter->gl_info,
BLIT_OP
_BLIT,
blit_supported = device->blitter->blit_supported(&device->adapter->gl_info,
WINED3D_BLIT_OP_COLOR
_BLIT,
&rect, This->resource.usage, This->resource.pool, This->resource.format,
&rect, This->resource.usage, This->resource.pool, This->resource.format);
#endif
...
...
@@ -3262,7 +3262,7 @@ static void fb_copy_to_texture_hwstretch(IWineD3DSurfaceImpl *dst_surface, IWine
}
/* Until the blit_shader is ready, define some prototypes here. */
static
BOOL
fbo_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
static
BOOL
fbo_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
WINED3DPOOL
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format
*
dst_format
);
...
...
@@ -3506,7 +3506,7 @@ HRESULT surface_color_fill(IWineD3DSurfaceImpl *s, const RECT *rect, const WINED
IWineD3DDeviceImpl
*
device
=
s
->
resource
.
device
;
const
struct
blit_shader
*
blitter
;
blitter
=
wined3d_select_blitter
(
&
device
->
adapter
->
gl_info
,
BLIT_OP_COLOR_FILL
,
blitter
=
wined3d_select_blitter
(
&
device
->
adapter
->
gl_info
,
WINED3D_
BLIT_OP_COLOR_FILL
,
NULL
,
0
,
0
,
NULL
,
rect
,
s
->
resource
.
usage
,
s
->
resource
.
pool
,
s
->
resource
.
format
);
if
(
!
blitter
)
{
...
...
@@ -3730,9 +3730,8 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *dst_surface,
*
* If EXT_framebuffer_blit is supported that can be used instead. Note that EXT_framebuffer_blit implies
* FBO support, so it doesn't really make sense to try and make it work with different offscreen rendering
* backends.
*/
if
(
fbo_blit_supported
(
gl_info
,
BLIT_OP_BLIT
,
* backends. */
if
(
fbo_blit_supported
(
gl_info
,
WINED3D_BLIT_OP_COLOR_BLIT
,
&
src_rect
,
src_surface
->
resource
.
usage
,
src_surface
->
resource
.
pool
,
src_surface
->
resource
.
format
,
&
dst_rect
,
dst_surface
->
resource
.
usage
,
dst_surface
->
resource
.
pool
,
dst_surface
->
resource
.
format
))
{
...
...
@@ -3773,7 +3772,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *dst_surface,
TRACE
(
"Blt from surface %p to rendertarget %p
\n
"
,
src_surface
,
dst_surface
);
if
(
!
(
flags
&
(
WINEDDBLT_KEYSRC
|
WINEDDBLT_KEYSRCOVERRIDE
))
&&
fbo_blit_supported
(
gl_info
,
BLIT_OP
_BLIT
,
&&
fbo_blit_supported
(
gl_info
,
WINED3D_BLIT_OP_COLOR
_BLIT
,
&
src_rect
,
src_surface
->
resource
.
usage
,
src_surface
->
resource
.
pool
,
src_surface
->
resource
.
format
,
&
dst_rect
,
dst_surface
->
resource
.
usage
,
dst_surface
->
resource
.
pool
,
...
...
@@ -3790,16 +3789,17 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *dst_surface,
}
if
(
!
(
flags
&
(
WINEDDBLT_KEYSRC
|
WINEDDBLT_KEYSRCOVERRIDE
))
&&
arbfp_blit
.
blit_supported
(
gl_info
,
BLIT_OP
_BLIT
,
&&
arbfp_blit
.
blit_supported
(
gl_info
,
WINED3D_BLIT_OP_COLOR
_BLIT
,
&
src_rect
,
src_surface
->
resource
.
usage
,
src_surface
->
resource
.
pool
,
src_surface
->
resource
.
format
,
&
dst_rect
,
dst_surface
->
resource
.
usage
,
dst_surface
->
resource
.
pool
,
dst_surface
->
resource
.
format
))
{
return
arbfp_blit_surface
(
device
,
src_surface
,
&
src_rect
,
dst_surface
,
&
dst_rect
,
BLIT_OP_BLIT
,
Filter
);
return
arbfp_blit_surface
(
device
,
src_surface
,
&
src_rect
,
dst_surface
,
&
dst_rect
,
WINED3D_BLIT_OP_COLOR_BLIT
,
Filter
);
}
if
(
!
device
->
blitter
->
blit_supported
(
gl_info
,
BLIT_OP
_BLIT
,
if
(
!
device
->
blitter
->
blit_supported
(
gl_info
,
WINED3D_BLIT_OP_COLOR
_BLIT
,
&
src_rect
,
src_surface
->
resource
.
usage
,
src_surface
->
resource
.
pool
,
src_surface
->
resource
.
format
,
&
dst_rect
,
dst_surface
->
resource
.
usage
,
dst_surface
->
resource
.
pool
,
dst_surface
->
resource
.
format
))
{
...
...
@@ -4566,7 +4566,7 @@ HRESULT surface_load_location(IWineD3DSurfaceImpl *surface, DWORD flag, const RE
}
else
if
(
surface
->
flags
&
(
SFLAG_INSRGBTEX
|
SFLAG_INTEXTURE
)
&&
(
surface
->
resource
.
format
->
flags
&
attach_flags
)
==
attach_flags
&&
fbo_blit_supported
(
gl_info
,
BLIT_OP
_BLIT
,
&&
fbo_blit_supported
(
gl_info
,
WINED3D_BLIT_OP_COLOR
_BLIT
,
NULL
,
surface
->
resource
.
usage
,
surface
->
resource
.
pool
,
surface
->
resource
.
format
,
NULL
,
surface
->
resource
.
usage
,
surface
->
resource
.
pool
,
surface
->
resource
.
format
))
{
...
...
@@ -4838,13 +4838,13 @@ static void ffp_blit_unset(const struct wined3d_gl_info *gl_info)
LEAVE_GL
();
}
static
BOOL
ffp_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
static
BOOL
ffp_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
WINED3DPOOL
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format
*
dst_format
)
{
enum
complex_fixup
src_fixup
;
if
(
blit_op
==
BLIT_OP_COLOR_FILL
)
if
(
blit_op
==
WINED3D_
BLIT_OP_COLOR_FILL
)
{
if
(
!
(
dst_usage
&
WINED3DUSAGE_RENDERTARGET
))
{
...
...
@@ -4862,7 +4862,7 @@ static BOOL ffp_blit_supported(const struct wined3d_gl_info *gl_info, enum blit_
dump_color_fixup_desc
(
src_format
->
color_fixup
);
}
if
(
blit_op
!=
BLIT_OP
_BLIT
)
if
(
blit_op
!=
WINED3D_BLIT_OP_COLOR
_BLIT
)
{
TRACE
(
"Unsupported blit_op=%d
\n
"
,
blit_op
);
return
FALSE
;
...
...
@@ -4931,11 +4931,11 @@ static void cpu_blit_unset(const struct wined3d_gl_info *gl_info)
{
}
static
BOOL
cpu_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
static
BOOL
cpu_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
WINED3DPOOL
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format
*
dst_format
)
{
if
(
blit_op
==
BLIT_OP_COLOR_FILL
)
if
(
blit_op
==
WINED3D_
BLIT_OP_COLOR_FILL
)
{
return
TRUE
;
}
...
...
@@ -4965,7 +4965,7 @@ const struct blit_shader cpu_blit = {
cpu_blit_color_fill
};
static
BOOL
fbo_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
static
BOOL
fbo_blit_supported
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
WINED3DPOOL
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format
*
dst_format
)
{
...
...
@@ -4975,7 +4975,7 @@ static BOOL fbo_blit_supported(const struct wined3d_gl_info *gl_info, enum blit_
/* We only support blitting. Things like color keying / color fill should
* be handled by other blitters.
*/
if
(
blit_op
!=
BLIT_OP
_BLIT
)
if
(
blit_op
!=
WINED3D_BLIT_OP_COLOR
_BLIT
)
return
FALSE
;
/* Source and/or destination need to be on the GL side */
...
...
dlls/wined3d/utils.c
View file @
90da0092
...
...
@@ -3211,7 +3211,7 @@ void select_shader_mode(const struct wined3d_gl_info *gl_info, int *ps_selected,
else
*
ps_selected
=
SHADER_NONE
;
}
const
struct
blit_shader
*
wined3d_select_blitter
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
const
struct
blit_shader
*
wined3d_select_blitter
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
WINED3DPOOL
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format
*
dst_format
)
{
...
...
dlls/wined3d/wined3d_private.h
View file @
90da0092
...
...
@@ -1166,10 +1166,10 @@ HRESULT compile_state_table(struct StateEntry *StateTable, APPLYSTATEFUNC **dev_
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
StateEntryTemplate
*
vertex
,
const
struct
fragment_pipeline
*
fragment
,
const
struct
StateEntryTemplate
*
misc
)
DECLSPEC_HIDDEN
;
enum
blit_operation
enum
wined3d_blit_op
{
BLIT_OP
_BLIT
,
BLIT_OP_COLOR_FILL
WINED3D_BLIT_OP_COLOR
_BLIT
,
WINED3D_BLIT_OP_COLOR_FILL
,
};
/* Shaders for color conversions in blits. Do not do blit operations while
...
...
@@ -1180,7 +1180,7 @@ struct blit_shader
void
(
*
free_private
)(
IWineD3DDeviceImpl
*
device
);
HRESULT
(
*
set_shader
)(
void
*
blit_priv
,
const
struct
wined3d_gl_info
*
gl_info
,
IWineD3DSurfaceImpl
*
surface
);
void
(
*
unset_shader
)(
const
struct
wined3d_gl_info
*
gl_info
);
BOOL
(
*
blit_supported
)(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
BOOL
(
*
blit_supported
)(
const
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
WINED3DPOOL
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format
*
dst_format
);
HRESULT
(
*
color_fill
)(
IWineD3DDeviceImpl
*
device
,
IWineD3DSurfaceImpl
*
dst_surface
,
...
...
@@ -1191,14 +1191,14 @@ extern const struct blit_shader ffp_blit DECLSPEC_HIDDEN;
extern
const
struct
blit_shader
arbfp_blit
DECLSPEC_HIDDEN
;
extern
const
struct
blit_shader
cpu_blit
DECLSPEC_HIDDEN
;
const
struct
blit_shader
*
wined3d_select_blitter
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
const
struct
blit_shader
*
wined3d_select_blitter
(
const
struct
wined3d_gl_info
*
gl_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
WINED3DPOOL
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
WINED3DPOOL
dst_pool
,
const
struct
wined3d_format
*
dst_format
)
DECLSPEC_HIDDEN
;
/* Temporary blit_shader helper functions */
HRESULT
arbfp_blit_surface
(
IWineD3DDeviceImpl
*
device
,
IWineD3DSurfaceImpl
*
src_surface
,
const
RECT
*
src_rect
,
IWineD3DSurfaceImpl
*
dst_surface
,
const
RECT
*
dst_rect_in
,
enum
blit_operation
blit_op
,
IWineD3DSurfaceImpl
*
dst_surface
,
const
RECT
*
dst_rect_in
,
enum
wined3d_blit_op
blit_op
,
DWORD
Filter
)
DECLSPEC_HIDDEN
;
struct
wined3d_context
*
context_acquire
(
IWineD3DDeviceImpl
*
This
,
IWineD3DSurfaceImpl
*
target
)
DECLSPEC_HIDDEN
;
...
...
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