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
819e9dda
Commit
819e9dda
authored
Oct 03, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Send geometry shader binding updates through the command stream.
parent
368fcab2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
cs.c
dlls/wined3d/cs.c
+21
-0
device.c
dlls/wined3d/device.c
+4
-7
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/cs.c
View file @
819e9dda
...
...
@@ -39,6 +39,7 @@ enum wined3d_cs_op
WINED3D_CS_OP_SET_INDEX_BUFFER
,
WINED3D_CS_OP_SET_TEXTURE
,
WINED3D_CS_OP_SET_VERTEX_SHADER
,
WINED3D_CS_OP_SET_GEOMETRY_SHADER
,
};
struct
wined3d_cs_present
...
...
@@ -531,6 +532,25 @@ void wined3d_cs_emit_set_vertex_shader(struct wined3d_cs *cs, struct wined3d_sha
cs
->
ops
->
submit
(
cs
);
}
static
void
wined3d_cs_exec_set_geometry_shader
(
struct
wined3d_cs
*
cs
,
const
void
*
data
)
{
const
struct
wined3d_cs_set_shader
*
op
=
data
;
cs
->
state
.
geometry_shader
=
op
->
shader
;
device_invalidate_state
(
cs
->
device
,
STATE_GEOMETRY_SHADER
);
}
void
wined3d_cs_emit_set_geometry_shader
(
struct
wined3d_cs
*
cs
,
struct
wined3d_shader
*
shader
)
{
struct
wined3d_cs_set_shader
*
op
;
op
=
cs
->
ops
->
require_space
(
cs
,
sizeof
(
*
op
));
op
->
opcode
=
WINED3D_CS_OP_SET_GEOMETRY_SHADER
;
op
->
shader
=
shader
;
cs
->
ops
->
submit
(
cs
);
}
static
void
(
*
const
wined3d_cs_op_handlers
[])(
struct
wined3d_cs
*
cs
,
const
void
*
data
)
=
{
/* WINED3D_CS_OP_PRESENT */
wined3d_cs_exec_present
,
...
...
@@ -546,6 +566,7 @@ static void (* const wined3d_cs_op_handlers[])(struct wined3d_cs *cs, const void
/* WINED3D_CS_OP_SET_INDEX_BUFFER */
wined3d_cs_exec_set_index_buffer
,
/* WINED3D_CS_OP_SET_TEXTURE */
wined3d_cs_exec_set_texture
,
/* WINED3D_CS_OP_SET_VERTEX_SHADER */
wined3d_cs_exec_set_vertex_shader
,
/* WINED3D_CS_OP_SET_GEOMETRY_SHADER */
wined3d_cs_exec_set_geometry_shader
,
};
static
void
*
wined3d_cs_st_require_space
(
struct
wined3d_cs
*
cs
,
size_t
size
)
...
...
dlls/wined3d/device.c
View file @
819e9dda
...
...
@@ -2611,17 +2611,14 @@ void CDECL wined3d_device_set_geometry_shader(struct wined3d_device *device, str
TRACE
(
"device %p, shader %p.
\n
"
,
device
,
shader
);
if
(
device
->
recording
||
shader
==
prev
)
return
;
if
(
shader
)
wined3d_shader_incref
(
shader
);
device
->
update_state
->
geometry_shader
=
shader
;
wined3d_cs_emit_set_geometry_shader
(
device
->
cs
,
shader
);
if
(
prev
)
wined3d_shader_decref
(
prev
);
device
->
update_state
->
geometry_shader
=
shader
;
if
(
device
->
recording
||
shader
==
prev
)
return
;
device_invalidate_state
(
device
,
STATE_GEOMETRY_SHADER
);
}
struct
wined3d_shader
*
CDECL
wined3d_device_get_geometry_shader
(
const
struct
wined3d_device
*
device
)
...
...
dlls/wined3d/wined3d_private.h
View file @
819e9dda
...
...
@@ -2487,6 +2487,7 @@ void wined3d_cs_emit_present(struct wined3d_cs *cs, struct wined3d_swapchain *sw
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
HWND
dst_window_override
,
const
RGNDATA
*
dirty_region
,
DWORD
flags
)
DECLSPEC_HIDDEN
;
void
wined3d_cs_emit_set_depth_stencil
(
struct
wined3d_cs
*
cs
,
struct
wined3d_surface
*
depth_stencil
)
DECLSPEC_HIDDEN
;
void
wined3d_cs_emit_set_geometry_shader
(
struct
wined3d_cs
*
cs
,
struct
wined3d_shader
*
shader
)
DECLSPEC_HIDDEN
;
void
wined3d_cs_emit_set_index_buffer
(
struct
wined3d_cs
*
cs
,
struct
wined3d_buffer
*
buffer
,
enum
wined3d_format_id
format_id
)
DECLSPEC_HIDDEN
;
void
wined3d_cs_emit_set_render_target
(
struct
wined3d_cs
*
cs
,
UINT
render_target_idx
,
...
...
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