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
1fe83c0d
Commit
1fe83c0d
authored
Apr 26, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass wined3d_vec4 structures to wined3d_device_get_ps_consts_f().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
574e2941
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
device.c
dlls/d3d8/device.c
+1
-1
device.c
dlls/d3d9/device.c
+2
-1
device.c
dlls/wined3d/device.c
+6
-6
wined3d.spec
dlls/wined3d/wined3d.spec
+1
-1
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/d3d8/device.c
View file @
1fe83c0d
...
...
@@ -2746,7 +2746,7 @@ static HRESULT WINAPI d3d8_device_GetPixelShaderConstant(IDirect3DDevice8 *iface
iface
,
start_register
,
data
,
count
);
wined3d_mutex_lock
();
hr
=
wined3d_device_get_ps_consts_f
(
device
->
wined3d_device
,
start_register
,
data
,
count
);
hr
=
wined3d_device_get_ps_consts_f
(
device
->
wined3d_device
,
start_register
,
count
,
data
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/d3d9/device.c
View file @
1fe83c0d
...
...
@@ -3124,7 +3124,8 @@ static HRESULT WINAPI d3d9_device_GetPixelShaderConstantF(IDirect3DDevice9Ex *if
TRACE
(
"iface %p, reg_idx %u, data %p, count %u.
\n
"
,
iface
,
reg_idx
,
data
,
count
);
wined3d_mutex_lock
();
hr
=
wined3d_device_get_ps_consts_f
(
device
->
wined3d_device
,
reg_idx
,
data
,
count
);
hr
=
wined3d_device_get_ps_consts_f
(
device
->
wined3d_device
,
reg_idx
,
count
,
(
struct
wined3d_vec4
*
)
data
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/wined3d/device.c
View file @
1fe83c0d
...
...
@@ -2722,18 +2722,18 @@ HRESULT CDECL wined3d_device_set_ps_consts_f(struct wined3d_device *device,
}
HRESULT
CDECL
wined3d_device_get_ps_consts_f
(
const
struct
wined3d_device
*
device
,
UINT
start_register
,
float
*
constants
,
UINT
vector4f_count
)
unsigned
int
start_idx
,
unsigned
int
count
,
struct
wined3d_vec4
*
constants
)
{
const
struct
wined3d_d3d_info
*
d3d_info
=
&
device
->
adapter
->
d3d_info
;
int
count
=
min
(
vector4f_count
,
d3d_info
->
limits
.
ps_uniform_count
-
start_register
);
TRACE
(
"device %p, start_
register %u, constants %p, vector4f_count %u
.
\n
"
,
device
,
start_
register
,
constants
,
vector4f_count
);
TRACE
(
"device %p, start_
idx %u, count %u, constants %p
.
\n
"
,
device
,
start_
idx
,
count
,
constants
);
if
(
!
constants
||
count
<
0
)
if
(
!
constants
||
start_idx
>=
d3d_info
->
limits
.
ps_uniform_count
||
count
>
d3d_info
->
limits
.
ps_uniform_count
-
start_idx
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
constants
,
&
device
->
state
.
ps_consts_f
[
start_
register
],
count
*
sizeof
(
float
)
*
4
);
memcpy
(
constants
,
&
device
->
state
.
ps_consts_f
[
start_
idx
],
count
*
sizeof
(
*
constants
)
);
return
WINED3D_OK
;
}
...
...
dlls/wined3d/wined3d.spec
View file @
1fe83c0d
...
...
@@ -71,7 +71,7 @@
@ cdecl wined3d_device_get_primitive_type(ptr ptr)
@ cdecl wined3d_device_get_ps_cb(ptr long)
@ cdecl wined3d_device_get_ps_consts_b(ptr long ptr long)
@ cdecl wined3d_device_get_ps_consts_f(ptr long
ptr long
)
@ cdecl wined3d_device_get_ps_consts_f(ptr long
long ptr
)
@ cdecl wined3d_device_get_ps_consts_i(ptr long ptr long)
@ cdecl wined3d_device_get_ps_resource_view(ptr long)
@ cdecl wined3d_device_get_ps_sampler(ptr long)
...
...
include/wine/wined3d.h
View file @
1fe83c0d
...
...
@@ -2117,7 +2117,7 @@ struct wined3d_buffer * __cdecl wined3d_device_get_ps_cb(const struct wined3d_de
HRESULT
__cdecl
wined3d_device_get_ps_consts_b
(
const
struct
wined3d_device
*
device
,
UINT
start_register
,
BOOL
*
constants
,
UINT
bool_count
);
HRESULT
__cdecl
wined3d_device_get_ps_consts_f
(
const
struct
wined3d_device
*
device
,
UINT
start_register
,
float
*
constants
,
UINT
vector4f_count
);
unsigned
int
start_idx
,
unsigned
int
count
,
struct
wined3d_vec4
*
constants
);
HRESULT
__cdecl
wined3d_device_get_ps_consts_i
(
const
struct
wined3d_device
*
device
,
UINT
start_register
,
int
*
constants
,
UINT
vector4i_count
);
struct
wined3d_shader_resource_view
*
__cdecl
wined3d_device_get_ps_resource_view
(
const
struct
wined3d_device
*
device
,
...
...
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