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
ae7a20af
Commit
ae7a20af
authored
Dec 09, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Explicitly pass blit_priv and gl_info to set_shader().
parent
0caed0a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
12 deletions
+8
-12
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-5
surface.c
dlls/wined3d/surface.c
+3
-5
swapchain.c
dlls/wined3d/swapchain.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
ae7a20af
...
...
@@ -7027,13 +7027,11 @@ static GLuint gen_yuv_shader(struct arbfp_blit_priv *priv, const struct wined3d_
}
/* Context activation is done by the caller. */
static
HRESULT
arbfp_blit_set
(
IWineD3DDevice
*
iface
,
IWineD3DSurfaceImpl
*
surface
)
static
HRESULT
arbfp_blit_set
(
void
*
blit_priv
,
const
struct
wined3d_gl_info
*
gl_info
,
IWineD3DSurfaceImpl
*
surface
)
{
GLenum
shader
;
IWineD3DDeviceImpl
*
device
=
(
IWineD3DDeviceImpl
*
)
iface
;
const
struct
wined3d_gl_info
*
gl_info
=
&
device
->
adapter
->
gl_info
;
float
size
[
4
]
=
{(
float
)
surface
->
pow2Width
,
(
float
)
surface
->
pow2Height
,
1
.
0
f
,
1
.
0
f
};
struct
arbfp_blit_priv
*
priv
=
device
->
blit_priv
;
struct
arbfp_blit_priv
*
priv
=
blit_priv
;
enum
complex_fixup
fixup
;
GLenum
textype
=
surface
->
texture_target
;
...
...
@@ -7190,7 +7188,7 @@ HRESULT arbfp_blit_surface(IWineD3DDeviceImpl *device, IWineD3DSurfaceImpl *src_
if
(
!
surface_is_offscreen
(
dst_surface
))
surface_translate_drawable_coords
(
dst_surface
,
context
->
win_handle
,
&
dst_rect
);
arbfp_blit_set
(
(
IWineD3DDevice
*
)
device
,
src_surface
);
arbfp_blit_set
(
device
->
blit_priv
,
context
->
gl_info
,
src_surface
);
ENTER_GL
();
...
...
dlls/wined3d/surface.c
View file @
ae7a20af
...
...
@@ -3358,7 +3358,7 @@ static void surface_blt_to_drawable(IWineD3DDeviceImpl *device,
if
(
!
surface_is_offscreen
(
dst_surface
))
surface_translate_drawable_coords
(
dst_surface
,
context
->
win_handle
,
&
dst_rect
);
device
->
blitter
->
set_shader
(
(
IWineD3DDevice
*
)
device
,
src_surface
);
device
->
blitter
->
set_shader
(
device
->
blit_priv
,
context
->
gl_info
,
src_surface
);
ENTER_GL
();
...
...
@@ -4752,10 +4752,8 @@ static void ffp_blit_p8_upload_palette(IWineD3DSurfaceImpl *surface, const struc
}
/* Context activation is done by the caller. */
static
HRESULT
ffp_blit_set
(
IWineD3DDevice
*
iface
,
IWineD3DSurfaceImpl
*
surface
)
static
HRESULT
ffp_blit_set
(
void
*
blit_priv
,
const
struct
wined3d_gl_info
*
gl_info
,
IWineD3DSurfaceImpl
*
surface
)
{
IWineD3DDeviceImpl
*
device
=
(
IWineD3DDeviceImpl
*
)
iface
;
const
struct
wined3d_gl_info
*
gl_info
=
&
device
->
adapter
->
gl_info
;
enum
complex_fixup
fixup
=
get_complex_fixup
(
surface
->
resource
.
format
->
color_fixup
);
/* When EXT_PALETTED_TEXTURE is around, palette conversion is done by the GPU
...
...
@@ -4876,7 +4874,7 @@ static void cpu_blit_free(IWineD3DDeviceImpl *device)
}
/* Context activation is done by the caller. */
static
HRESULT
cpu_blit_set
(
IWineD3DDevice
*
iface
,
IWineD3DSurfaceImpl
*
surface
)
static
HRESULT
cpu_blit_set
(
void
*
blit_priv
,
const
struct
wined3d_gl_info
*
gl_info
,
IWineD3DSurfaceImpl
*
surface
)
{
return
WINED3D_OK
;
}
...
...
dlls/wined3d/swapchain.c
View file @
ae7a20af
...
...
@@ -171,7 +171,7 @@ static void swapchain_blit(IWineD3DSwapChainImpl *This, struct wined3d_context *
/* Set up the texture. The surface is not in a IWineD3D*Texture container,
* so there are no d3d texture settings to dirtify
*/
device
->
blitter
->
set_shader
(
(
IWineD3DDevice
*
)
device
,
backbuffer
);
device
->
blitter
->
set_shader
(
device
->
blit_priv
,
context2
->
gl_info
,
backbuffer
);
glTexParameteri
(
backbuffer
->
texture_target
,
GL_TEXTURE_MIN_FILTER
,
gl_filter
);
glTexParameteri
(
backbuffer
->
texture_target
,
GL_TEXTURE_MAG_FILTER
,
gl_filter
);
...
...
dlls/wined3d/wined3d_private.h
View file @
ae7a20af
...
...
@@ -1177,7 +1177,7 @@ struct blit_shader
{
HRESULT
(
*
alloc_private
)(
IWineD3DDeviceImpl
*
device
);
void
(
*
free_private
)(
IWineD3DDeviceImpl
*
device
);
HRESULT
(
*
set_shader
)(
IWineD3DDevice
*
iface
,
IWineD3DSurfaceImpl
*
surface
);
HRESULT
(
*
set_shader
)(
void
*
blit_priv
,
const
struct
wined3d_gl_info
*
gl_info
,
IWineD3DSurfaceImpl
*
surface
);
void
(
*
unset_shader
)(
IWineD3DDevice
*
iface
);
BOOL
(
*
blit_supported
)(
const
struct
wined3d_gl_info
*
gl_info
,
enum
blit_operation
blit_op
,
const
RECT
*
src_rect
,
DWORD
src_usage
,
WINED3DPOOL
src_pool
,
const
struct
wined3d_format
*
src_format
,
...
...
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