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
65c8c40b
Commit
65c8c40b
authored
Mar 20, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use a separate STATE_VIEWPORT state handler in the GLSL pipeline.
parent
70c6666d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
glsl_shader.c
dlls/wined3d/glsl_shader.c
+12
-1
state.c
dlls/wined3d/state.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-2
No files found.
dlls/wined3d/glsl_shader.c
View file @
65c8c40b
...
...
@@ -7100,6 +7100,17 @@ static void glsl_vertex_pipe_projection(struct wined3d_context *context,
transform_projection
(
context
,
state
,
state_id
);
}
static
void
glsl_vertex_pipe_viewport
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
{
if
(
!
isStateDirty
(
context
,
STATE_TRANSFORM
(
WINED3D_TS_PROJECTION
)))
glsl_vertex_pipe_projection
(
context
,
state
,
STATE_TRANSFORM
(
WINED3D_TS_PROJECTION
));
if
(
!
isStateDirty
(
context
,
STATE_RENDER
(
WINED3D_RS_POINTSCALEENABLE
))
&&
state
->
render_states
[
WINED3D_RS_POINTSCALEENABLE
])
state_pscale
(
context
,
state
,
STATE_RENDER
(
WINED3D_RS_POINTSCALEENABLE
));
context
->
constant_update_mask
|=
WINED3D_SHADER_CONST_VS_POS_FIXUP
;
}
static
const
struct
StateEntryTemplate
glsl_vertex_pipe_vp_states
[]
=
{
{
STATE_VDECL
,
{
STATE_VDECL
,
glsl_vertex_pipe_vdecl
},
WINED3D_GL_EXT_NONE
},
...
...
@@ -7150,7 +7161,7 @@ static const struct StateEntryTemplate glsl_vertex_pipe_vp_states[] =
{
STATE_ACTIVELIGHT
(
6
),
{
STATE_ACTIVELIGHT
(
6
),
light
},
WINED3D_GL_EXT_NONE
},
{
STATE_ACTIVELIGHT
(
7
),
{
STATE_ACTIVELIGHT
(
7
),
light
},
WINED3D_GL_EXT_NONE
},
/* Viewport */
{
STATE_VIEWPORT
,
{
STATE_VIEWPORT
,
viewport_vertexpart
},
WINED3D_GL_EXT_NONE
},
{
STATE_VIEWPORT
,
{
STATE_VIEWPORT
,
glsl_vertex_pipe_viewport
},
WINED3D_GL_EXT_NONE
},
/* Transform states */
{
STATE_TRANSFORM
(
WINED3D_TS_VIEW
),
{
STATE_TRANSFORM
(
WINED3D_TS_VIEW
),
glsl_vertex_pipe_view
},
WINED3D_GL_EXT_NONE
},
{
STATE_TRANSFORM
(
WINED3D_TS_PROJECTION
),
{
STATE_TRANSFORM
(
WINED3D_TS_PROJECTION
),
glsl_vertex_pipe_projection
},
WINED3D_GL_EXT_NONE
},
...
...
dlls/wined3d/state.c
View file @
65c8c40b
...
...
@@ -4790,7 +4790,7 @@ static void viewport_miscpart(struct wined3d_context *context, const struct wine
checkGLcall
(
"glViewport"
);
}
void
viewport_vertexpart
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
static
void
viewport_vertexpart
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
{
if
(
!
isStateDirty
(
context
,
STATE_TRANSFORM
(
WINED3D_TS_PROJECTION
)))
transform_projection
(
context
,
state
,
STATE_TRANSFORM
(
WINED3D_TS_PROJECTION
));
...
...
dlls/wined3d/wined3d_private.h
View file @
65c8c40b
...
...
@@ -2814,8 +2814,6 @@ void transform_texture(struct wined3d_context *context,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
DECLSPEC_HIDDEN
;
void
state_ambient
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
DECLSPEC_HIDDEN
;
void
viewport_vertexpart
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
DECLSPEC_HIDDEN
;
void
state_clipping
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
DECLSPEC_HIDDEN
;
void
light
(
struct
wined3d_context
*
context
,
...
...
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