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
de990db0
Commit
de990db0
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 shader_sm1.c.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
a9225779
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
shader_sm1.c
dlls/wined3d/shader_sm1.c
+6
-6
No files found.
dlls/wined3d/shader_sm1.c
View file @
de990db0
...
...
@@ -398,7 +398,7 @@ static const enum wined3d_shader_resource_type resource_type_table[] =
* and possibly a relative addressing token.
* Return the number of tokens read */
static
unsigned
int
shader_get_param
(
const
struct
wined3d_sm1_data
*
priv
,
const
DWORD
*
ptr
,
DWORD
*
token
,
DWORD
*
addr_token
)
unsigned
int
*
token
,
unsigned
int
*
addr_token
)
{
unsigned
int
count
=
1
;
...
...
@@ -427,7 +427,7 @@ static unsigned int shader_get_param(const struct wined3d_sm1_data *priv, const
return
count
;
}
static
const
struct
wined3d_sm1_opcode_info
*
shader_get_opcode
(
const
struct
wined3d_sm1_data
*
priv
,
DWORD
token
)
static
const
struct
wined3d_sm1_opcode_info
*
shader_get_opcode
(
const
struct
wined3d_sm1_data
*
priv
,
unsigned
int
token
)
{
unsigned
int
shader_version
=
WINED3D_SHADER_VERSION
(
priv
->
shader_version
.
major
,
priv
->
shader_version
.
minor
);
const
struct
wined3d_sm1_opcode_info
*
opcode_table
=
priv
->
opcode_table
;
...
...
@@ -503,7 +503,7 @@ static unsigned int shader_skip_unrecognized(const struct wined3d_sm1_data *priv
/* TODO: Think of a good name for 0x80000000 and replace it with a constant */
while
(
*
ptr
&
0x80000000
)
{
DWORD
token
,
addr_token
=
0
;
unsigned
int
token
,
addr_token
=
0
;
struct
wined3d_shader_src_param
rel_addr
;
tokens_read
+=
shader_get_param
(
priv
,
ptr
,
&
token
,
&
addr_token
);
...
...
@@ -594,7 +594,7 @@ static void shader_sm1_read_header(void *data, const DWORD **ptr, struct wined3d
static
void
shader_sm1_read_src_param
(
struct
wined3d_sm1_data
*
priv
,
const
DWORD
**
ptr
,
struct
wined3d_shader_src_param
*
src_param
,
struct
wined3d_shader_src_param
*
src_rel_addr
)
{
DWORD
token
,
addr_token
;
unsigned
int
token
,
addr_token
;
*
ptr
+=
shader_get_param
(
priv
,
*
ptr
,
&
token
,
&
addr_token
);
if
(
token
&
WINED3D_SM1_ADDRESS_MODE_RELATIVE
)
...
...
@@ -611,7 +611,7 @@ static void shader_sm1_read_src_param(struct wined3d_sm1_data *priv, const DWORD
static
void
shader_sm1_read_dst_param
(
struct
wined3d_sm1_data
*
priv
,
const
DWORD
**
ptr
,
struct
wined3d_shader_dst_param
*
dst_param
,
struct
wined3d_shader_src_param
*
dst_rel_addr
)
{
DWORD
token
,
addr_token
;
unsigned
int
token
,
addr_token
;
*
ptr
+=
shader_get_param
(
priv
,
*
ptr
,
&
token
,
&
addr_token
);
if
(
token
&
WINED3D_SM1_ADDRESS_MODE_RELATIVE
)
...
...
@@ -724,7 +724,7 @@ static void shader_sm1_read_instruction(void *data, const DWORD **ptr, struct wi
{
const
struct
wined3d_sm1_opcode_info
*
opcode_info
;
struct
wined3d_sm1_data
*
priv
=
data
;
DWORD
opcode_token
;
unsigned
int
opcode_token
;
unsigned
int
i
;
const
DWORD
*
p
;
...
...
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