Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a6862f91
Commit
a6862f91
authored
Mar 26, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Rename struct blit_shader to struct wined3d_blitter_ops.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
df6b4020
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
19 deletions
+17
-19
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-1
device.c
dlls/wined3d/device.c
+1
-1
directx.c
dlls/wined3d/directx.c
+1
-1
surface.c
dlls/wined3d/surface.c
+5
-5
utils.c
dlls/wined3d/utils.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+7
-9
No files found.
dlls/wined3d/arb_program_shader.c
View file @
a6862f91
...
...
@@ -7885,7 +7885,7 @@ static HRESULT arbfp_blit_depth_fill(struct wined3d_device *device, struct wined
return
WINED3DERR_INVALIDCALL
;
}
const
struct
blit_shader
arbfp_blit
=
const
struct
wined3d_blitter_ops
arbfp_blit
=
{
arbfp_blit_alloc
,
arbfp_blit_free
,
...
...
dlls/wined3d/device.c
View file @
a6862f91
...
...
@@ -4158,7 +4158,7 @@ HRESULT CDECL wined3d_device_clear_rendertarget_view(struct wined3d_device *devi
struct
wined3d_rendertarget_view
*
view
,
const
RECT
*
rect
,
DWORD
flags
,
const
struct
wined3d_color
*
color
,
float
depth
,
DWORD
stencil
)
{
const
struct
blit_shader
*
blitter
;
const
struct
wined3d_blitter_ops
*
blitter
;
struct
wined3d_resource
*
resource
;
enum
wined3d_blit_op
blit_op
;
RECT
r
;
...
...
dlls/wined3d/directx.c
View file @
a6862f91
...
...
@@ -2597,7 +2597,7 @@ static const struct wined3d_shader_backend_ops *select_shader_backend(const stru
return
&
none_shader_backend
;
}
static
const
struct
blit_shader
*
select_blit_implementation
(
const
struct
wined3d_gl_info
*
gl_info
,
static
const
struct
wined3d_blitter_ops
*
select_blit_implementation
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_shader_backend_ops
*
shader_backend_ops
)
{
if
((
shader_backend_ops
==
&
glsl_shader_backend
...
...
dlls/wined3d/surface.c
View file @
a6862f91
...
...
@@ -547,9 +547,9 @@ static HRESULT wined3d_surface_depth_fill(struct wined3d_surface *surface, const
{
struct
wined3d_resource
*
resource
=
&
surface
->
container
->
resource
;
struct
wined3d_device
*
device
=
resource
->
device
;
const
struct
wined3d_blitter_ops
*
blitter
;
struct
wined3d_rendertarget_view
*
view
;
struct
wined3d_view_desc
view_desc
;
const
struct
blit_shader
*
blitter
;
HRESULT
hr
;
if
(
!
(
blitter
=
wined3d_select_blitter
(
&
device
->
adapter
->
gl_info
,
&
device
->
adapter
->
d3d_info
,
...
...
@@ -2105,9 +2105,9 @@ HRESULT surface_color_fill(struct wined3d_surface *s, const RECT *rect, const st
{
struct
wined3d_resource
*
resource
=
&
s
->
container
->
resource
;
struct
wined3d_device
*
device
=
resource
->
device
;
const
struct
wined3d_blitter_ops
*
blitter
;
struct
wined3d_rendertarget_view
*
view
;
struct
wined3d_view_desc
view_desc
;
const
struct
blit_shader
*
blitter
;
HRESULT
hr
;
if
(
!
(
blitter
=
wined3d_select_blitter
(
&
device
->
adapter
->
gl_info
,
&
device
->
adapter
->
d3d_info
,
...
...
@@ -2793,7 +2793,7 @@ static void ffp_blit_blit_surface(struct wined3d_device *device, enum wined3d_bl
(
old_color_key_flags
&
WINED3D_CKEY_SRC_BLT
)
?
&
old_blt_key
:
NULL
);
}
const
struct
blit_shader
ffp_blit
=
const
struct
wined3d_blitter_ops
ffp_blit
=
{
ffp_blit_alloc
,
ffp_blit_free
,
...
...
@@ -3434,7 +3434,7 @@ static void cpu_blit_blit_surface(struct wined3d_device *device, enum wined3d_bl
ERR
(
"Blit method not implemented by cpu_blit.
\n
"
);
}
const
struct
blit_shader
cpu_blit
=
const
struct
wined3d_blitter_ops
cpu_blit
=
{
cpu_blit_alloc
,
cpu_blit_free
,
...
...
@@ -3592,7 +3592,7 @@ HRESULT wined3d_surface_blt(struct wined3d_surface *dst_surface, const RECT *dst
else
{
struct
wined3d_texture_sub_resource
*
src_sub_resource
,
*
dst_sub_resource
;
const
struct
blit_shader
*
blitter
;
const
struct
wined3d_blitter_ops
*
blitter
;
dst_sub_resource
=
surface_get_sub_resource
(
dst_surface
);
src_sub_resource
=
src_texture
?
&
src_texture
->
sub_resources
[
src_sub_resource_idx
]
:
NULL
;
...
...
dlls/wined3d/utils.c
View file @
a6862f91
...
...
@@ -5851,12 +5851,12 @@ int wined3d_ffp_vertex_program_key_compare(const void *key, const struct wine_rb
return
memcmp
(
ka
,
kb
,
sizeof
(
*
ka
));
}
const
struct
blit_shader
*
wined3d_select_blitter
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_blitter_ops
*
wined3d_select_blitter
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_d3d_info
*
d3d_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
enum
wined3d_pool
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
enum
wined3d_pool
dst_pool
,
const
struct
wined3d_format
*
dst_format
)
{
static
const
struct
blit_shader
*
const
blitters
[]
=
static
const
struct
wined3d_blitter_ops
*
const
blitters
[]
=
{
&
arbfp_blit
,
&
ffp_blit
,
...
...
dlls/wined3d/wined3d_private.h
View file @
a6862f91
...
...
@@ -1862,9 +1862,7 @@ enum wined3d_blit_op
WINED3D_BLIT_OP_DEPTH_BLIT
,
};
/* Shaders for color conversions in blits. Do not do blit operations while
* already under the GL lock. */
struct
blit_shader
struct
wined3d_blitter_ops
{
HRESULT
(
*
alloc_private
)(
struct
wined3d_device
*
device
);
void
(
*
free_private
)(
struct
wined3d_device
*
device
);
...
...
@@ -1882,12 +1880,12 @@ struct blit_shader
const
struct
wined3d_color_key
*
color_key
,
enum
wined3d_texture_filter_type
filter
);
};
extern
const
struct
blit_shader
f
fp_blit
DECLSPEC_HIDDEN
;
extern
const
struct
blit_shader
arb
fp_blit
DECLSPEC_HIDDEN
;
extern
const
struct
blit_shader
cpu_blit
DECLSPEC_HIDDEN
;
extern
const
struct
wined3d_blitter_ops
arb
fp_blit
DECLSPEC_HIDDEN
;
extern
const
struct
wined3d_blitter_ops
f
fp_blit
DECLSPEC_HIDDEN
;
extern
const
struct
wined3d_blitter_ops
cpu_blit
DECLSPEC_HIDDEN
;
BOOL
wined3d_clip_blit
(
const
RECT
*
clip_rect
,
RECT
*
clipped
,
RECT
*
other
)
DECLSPEC_HIDDEN
;
const
struct
blit_shader
*
wined3d_select_blitter
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_blitter_ops
*
wined3d_select_blitter
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_d3d_info
*
d3d_info
,
enum
wined3d_blit_op
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
enum
wined3d_pool
src_pool
,
const
struct
wined3d_format
*
src_format
,
const
RECT
*
dst_rect
,
DWORD
dst_usage
,
enum
wined3d_pool
dst_pool
,
const
struct
wined3d_format
*
dst_format
)
...
...
@@ -2358,7 +2356,7 @@ struct wined3d_adapter
const
struct
wined3d_vertex_pipe_ops
*
vertex_pipe
;
const
struct
fragment_pipeline
*
fragment_pipe
;
const
struct
wined3d_shader_backend_ops
*
shader_backend
;
const
struct
blit_shader
*
blitter
;
const
struct
wined3d_blitter_ops
*
blitter
;
};
struct
wined3d_caps_gl_ctx
...
...
@@ -2625,7 +2623,7 @@ struct wined3d_device
struct
StateEntry
StateTable
[
STATE_HIGHEST
+
1
];
/* Array of functions for states which are handled by more than one pipeline part */
APPLYSTATEFUNC
*
multistate_funcs
[
STATE_HIGHEST
+
1
];
const
struct
blit_shader
*
blitter
;
const
struct
wined3d_blitter_ops
*
blitter
;
BYTE
vertexBlendUsed
:
1
;
/* To avoid needless setting of the blend matrices */
BYTE
bCursorVisible
:
1
;
...
...
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