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
d49a6ab0
Commit
d49a6ab0
authored
Sep 17, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10/effect: Implement instructions used for signed integer division.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
27ab6967
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
effect.c
dlls/d3d10/effect.c
+30
-0
effect.c
dlls/d3d10/tests/effect.c
+0
-0
No files found.
dlls/d3d10/effect.c
View file @
d49a6ab0
...
...
@@ -477,6 +477,34 @@ static void pres_umax(float **args, unsigned int n, const struct preshader_instr
}
}
static
void
pres_and
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
unsigned
int
*
arg1
=
(
unsigned
int
*
)
args
[
0
];
unsigned
int
*
arg2
=
(
unsigned
int
*
)
args
[
1
];
float
*
retval
=
args
[
2
];
unsigned
int
i
;
for
(
i
=
0
;
i
<
instr
->
comp_count
;
++
i
)
{
unsigned
int
v
=
arg1
[
instr
->
scalar
?
0
:
i
]
&
arg2
[
i
];
retval
[
i
]
=
*
(
float
*
)
&
v
;
}
}
static
void
pres_xor
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
unsigned
int
*
arg1
=
(
unsigned
int
*
)
args
[
0
];
unsigned
int
*
arg2
=
(
unsigned
int
*
)
args
[
1
];
float
*
retval
=
args
[
2
];
unsigned
int
i
;
for
(
i
=
0
;
i
<
instr
->
comp_count
;
++
i
)
{
unsigned
int
v
=
arg1
[
instr
->
scalar
?
0
:
i
]
^
arg2
[
i
];
retval
[
i
]
=
*
(
float
*
)
&
v
;
}
}
static
void
pres_movc
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
float
*
arg1
=
args
[
0
],
*
arg2
=
args
[
1
],
*
arg3
=
args
[
2
];
...
...
@@ -522,6 +550,8 @@ static const struct preshader_op_info preshader_ops[] =
{
0x21e
,
"imax"
,
pres_imax
},
{
0x21f
,
"umin"
,
pres_umin
},
{
0x220
,
"umax"
,
pres_umax
},
{
0x230
,
"and"
,
pres_and
},
{
0x233
,
"xor"
,
pres_xor
},
{
0x301
,
"movc"
,
pres_movc
},
};
...
...
dlls/d3d10/tests/effect.c
View file @
d49a6ab0
This diff is collapsed.
Click to expand it.
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