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
f69cf783
Commit
f69cf783
authored
May 17, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
May 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass wined3d_ivec4 structures to wined3d_device_get_ps_consts_i().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
596f7077
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
device.c
dlls/d3d9/device.c
+2
-1
device.c
dlls/wined3d/device.c
+7
-7
wined3d.spec
dlls/wined3d/wined3d.spec
+1
-1
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/d3d9/device.c
View file @
f69cf783
...
...
@@ -3158,7 +3158,8 @@ static HRESULT WINAPI d3d9_device_GetPixelShaderConstantI(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_i
(
device
->
wined3d_device
,
reg_idx
,
data
,
count
);
hr
=
wined3d_device_get_ps_consts_i
(
device
->
wined3d_device
,
reg_idx
,
count
,
(
struct
wined3d_ivec4
*
)
data
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/wined3d/device.c
View file @
f69cf783
...
...
@@ -2681,17 +2681,17 @@ HRESULT CDECL wined3d_device_set_ps_consts_i(struct wined3d_device *device,
}
HRESULT
CDECL
wined3d_device_get_ps_consts_i
(
const
struct
wined3d_device
*
device
,
UINT
start_register
,
int
*
constants
,
UINT
vector4i_count
)
unsigned
int
start_idx
,
unsigned
int
count
,
struct
wined3d_ivec4
*
constants
)
{
UINT
count
=
min
(
vector4i_count
,
WINED3D_MAX_CONSTS_I
-
start_register
);
TRACE
(
"device %p, start_register %u, constants %p, vector4i_count %u.
\n
"
,
device
,
start_register
,
constants
,
vector4i_count
);
TRACE
(
"device %p, start_idx %u, count %u, constants %p.
\n
"
,
device
,
start_idx
,
count
,
constants
);
if
(
!
constants
||
start_
register
>=
WINED3D_MAX_CONSTS_I
)
if
(
!
constants
||
start_
idx
>=
WINED3D_MAX_CONSTS_I
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
constants
,
&
device
->
state
.
ps_consts_i
[
start_register
],
count
*
sizeof
(
int
)
*
4
);
if
(
count
>
WINED3D_MAX_CONSTS_I
-
start_idx
)
count
=
WINED3D_MAX_CONSTS_I
-
start_idx
;
memcpy
(
constants
,
&
device
->
state
.
ps_consts_i
[
start_idx
],
count
*
sizeof
(
*
constants
));
return
WINED3D_OK
;
}
...
...
dlls/wined3d/wined3d.spec
View file @
f69cf783
...
...
@@ -72,7 +72,7 @@
@ 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 long ptr)
@ cdecl wined3d_device_get_ps_consts_i(ptr long
ptr long
)
@ cdecl wined3d_device_get_ps_consts_i(ptr long
long ptr
)
@ cdecl wined3d_device_get_ps_resource_view(ptr long)
@ cdecl wined3d_device_get_ps_sampler(ptr long)
@ cdecl wined3d_device_get_raster_status(ptr long ptr)
...
...
include/wine/wined3d.h
View file @
f69cf783
...
...
@@ -2127,7 +2127,7 @@ HRESULT __cdecl wined3d_device_get_ps_consts_b(const struct wined3d_device *devi
HRESULT
__cdecl
wined3d_device_get_ps_consts_f
(
const
struct
wined3d_device
*
device
,
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
);
unsigned
int
start_idx
,
unsigned
int
count
,
struct
wined3d_ivec4
*
constants
);
struct
wined3d_shader_resource_view
*
__cdecl
wined3d_device_get_ps_resource_view
(
const
struct
wined3d_device
*
device
,
UINT
idx
);
struct
wined3d_sampler
*
__cdecl
wined3d_device_get_ps_sampler
(
const
struct
wined3d_device
*
device
,
UINT
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