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
cbde1840
Commit
cbde1840
authored
Dec 09, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Reduce usage of long integral types in stateblock.c.
parent
e213d17d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
stateblock.c
dlls/wined3d/stateblock.c
+10
-10
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
wined3d.h
include/wine/wined3d.h
+3
-3
No files found.
dlls/wined3d/stateblock.c
View file @
cbde1840
...
...
@@ -189,7 +189,7 @@ static const DWORD vertex_states_sampler[] =
WINED3D_SAMP_DMAP_OFFSET
,
};
static
inline
void
stateblock_set_all_bits
(
DWORD
*
map
,
UINT
map_size
)
static
inline
void
stateblock_set_all_bits
(
uint32_t
*
map
,
UINT
map_size
)
{
DWORD
mask
=
(
1u
<<
(
map_size
&
0x1f
))
-
1
;
memset
(
map
,
0xff
,
(
map_size
>>
5
)
*
sizeof
(
*
map
));
...
...
@@ -734,7 +734,7 @@ void CDECL wined3d_stateblock_capture(struct wined3d_stateblock *stateblock,
const
struct
wined3d_stateblock_state
*
state
=
&
device_state
->
stateblock_state
;
struct
wined3d_range
range
;
unsigned
int
i
,
start
;
DWORD
map
;
uint32_t
map
;
TRACE
(
"stateblock %p, device_state %p.
\n
"
,
stateblock
,
device_state
);
...
...
@@ -935,8 +935,8 @@ void CDECL wined3d_stateblock_capture(struct wined3d_stateblock *stateblock,
/* Texture states */
for
(
i
=
0
;
i
<
stateblock
->
num_contained_tss_states
;
++
i
)
{
DWORD
stage
=
stateblock
->
contained_tss_states
[
i
].
stage
;
DWORD
texture_state
=
stateblock
->
contained_tss_states
[
i
].
state
;
unsigned
int
stage
=
stateblock
->
contained_tss_states
[
i
].
stage
;
unsigned
int
texture_state
=
stateblock
->
contained_tss_states
[
i
].
state
;
TRACE
(
"Updating texturestage state %u, %u to %#x (was %#x).
\n
"
,
stage
,
texture_state
,
state
->
texture_states
[
stage
][
texture_state
],
...
...
@@ -963,8 +963,8 @@ void CDECL wined3d_stateblock_capture(struct wined3d_stateblock *stateblock,
for
(
i
=
0
;
i
<
stateblock
->
num_contained_sampler_states
;
++
i
)
{
DWORD
stage
=
stateblock
->
contained_sampler_states
[
i
].
stage
;
DWORD
sampler_state
=
stateblock
->
contained_sampler_states
[
i
].
state
;
unsigned
int
stage
=
stateblock
->
contained_sampler_states
[
i
].
stage
;
unsigned
int
sampler_state
=
stateblock
->
contained_sampler_states
[
i
].
state
;
TRACE
(
"Updating sampler state %u, %u to %#x (was %#x).
\n
"
,
stage
,
sampler_state
,
state
->
sampler_states
[
stage
][
sampler_state
],
...
...
@@ -997,7 +997,7 @@ void CDECL wined3d_stateblock_apply(const struct wined3d_stateblock *stateblock,
const
struct
wined3d_stateblock_state
*
state
=
&
stateblock
->
stateblock_state
;
struct
wined3d_range
range
;
unsigned
int
i
,
start
;
DWORD
map
;
uint32_t
map
;
TRACE
(
"stateblock %p, device_state %p.
\n
"
,
stateblock
,
device_state
);
...
...
@@ -1335,7 +1335,7 @@ void CDECL wined3d_stateblock_set_vertex_declaration(struct wined3d_stateblock *
}
void
CDECL
wined3d_stateblock_set_render_state
(
struct
wined3d_stateblock
*
stateblock
,
enum
wined3d_render_state
state
,
DWORD
value
)
enum
wined3d_render_state
state
,
unsigned
int
value
)
{
TRACE
(
"stateblock %p, state %s (%#x), value %#x.
\n
"
,
stateblock
,
debug_d3drenderstate
(
state
),
state
,
value
);
...
...
@@ -1357,7 +1357,7 @@ void CDECL wined3d_stateblock_set_render_state(struct wined3d_stateblock *stateb
}
void
CDECL
wined3d_stateblock_set_sampler_state
(
struct
wined3d_stateblock
*
stateblock
,
UINT
sampler_idx
,
enum
wined3d_sampler_state
state
,
DWORD
value
)
UINT
sampler_idx
,
enum
wined3d_sampler_state
state
,
unsigned
int
value
)
{
TRACE
(
"stateblock %p, sampler_idx %u, state %s, value %#x.
\n
"
,
stateblock
,
sampler_idx
,
debug_d3dsamplerstate
(
state
),
value
);
...
...
@@ -1373,7 +1373,7 @@ void CDECL wined3d_stateblock_set_sampler_state(struct wined3d_stateblock *state
}
void
CDECL
wined3d_stateblock_set_texture_stage_state
(
struct
wined3d_stateblock
*
stateblock
,
UINT
stage
,
enum
wined3d_texture_stage_state
state
,
DWORD
value
)
UINT
stage
,
enum
wined3d_texture_stage_state
state
,
unsigned
int
value
)
{
TRACE
(
"stateblock %p, stage %u, state %s, value %#x.
\n
"
,
stateblock
,
stage
,
debug_d3dtexturestate
(
state
),
value
);
...
...
dlls/wined3d/wined3d_private.h
View file @
cbde1840
...
...
@@ -2955,7 +2955,7 @@ void context_state_fb(struct wined3d_context *context,
struct
wined3d_light_info
{
struct
wined3d_light
OriginalParms
;
/* Note D3D8LIGHT == D3D9LIGHT */
DWORD
OriginalIndex
;
unsigned
int
OriginalIndex
;
LONG
glIndex
;
BOOL
enabled
;
...
...
include/wine/wined3d.h
View file @
cbde1840
...
...
@@ -2767,16 +2767,16 @@ HRESULT __cdecl wined3d_stateblock_set_ps_consts_f(struct wined3d_stateblock *st
HRESULT
__cdecl
wined3d_stateblock_set_ps_consts_i
(
struct
wined3d_stateblock
*
stateblock
,
unsigned
int
start_idx
,
unsigned
int
count
,
const
struct
wined3d_ivec4
*
constants
);
void
__cdecl
wined3d_stateblock_set_render_state
(
struct
wined3d_stateblock
*
stateblock
,
enum
wined3d_render_state
state
,
DWORD
value
);
enum
wined3d_render_state
state
,
unsigned
int
value
);
void
__cdecl
wined3d_stateblock_set_sampler_state
(
struct
wined3d_stateblock
*
stateblock
,
UINT
sampler_idx
,
enum
wined3d_sampler_state
state
,
DWORD
value
);
UINT
sampler_idx
,
enum
wined3d_sampler_state
state
,
unsigned
int
value
);
void
__cdecl
wined3d_stateblock_set_scissor_rect
(
struct
wined3d_stateblock
*
stateblock
,
const
RECT
*
rect
);
HRESULT
__cdecl
wined3d_stateblock_set_stream_source
(
struct
wined3d_stateblock
*
stateblock
,
UINT
stream_idx
,
struct
wined3d_buffer
*
buffer
,
UINT
offset
,
UINT
stride
);
HRESULT
__cdecl
wined3d_stateblock_set_stream_source_freq
(
struct
wined3d_stateblock
*
stateblock
,
UINT
stream_idx
,
UINT
divider
);
void
__cdecl
wined3d_stateblock_set_texture
(
struct
wined3d_stateblock
*
stateblock
,
UINT
stage
,
struct
wined3d_texture
*
texture
);
void
__cdecl
wined3d_stateblock_set_texture_stage_state
(
struct
wined3d_stateblock
*
stateblock
,
UINT
stage
,
enum
wined3d_texture_stage_state
state
,
DWORD
value
);
UINT
stage
,
enum
wined3d_texture_stage_state
state
,
unsigned
int
value
);
void
__cdecl
wined3d_stateblock_set_transform
(
struct
wined3d_stateblock
*
stateblock
,
enum
wined3d_transform_state
state
,
const
struct
wined3d_matrix
*
matrix
);
void
__cdecl
wined3d_stateblock_set_vertex_declaration
(
struct
wined3d_stateblock
*
stateblock
,
...
...
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