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
a8c78c0e
Commit
a8c78c0e
authored
Mar 23, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10/effect: Add support for 'imin' instruction.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
956541c9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
34 deletions
+87
-34
effect.c
dlls/d3d10/effect.c
+14
-0
effect.c
dlls/d3d10/tests/effect.c
+73
-34
No files found.
dlls/d3d10/effect.c
View file @
a8c78c0e
...
...
@@ -402,6 +402,19 @@ static void pres_udiv(float **args, unsigned int n, const struct preshader_instr
}
}
static
void
pres_imin
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
int
*
arg1
=
(
int
*
)
args
[
0
],
*
arg2
=
(
int
*
)
args
[
1
];
float
*
retval
=
args
[
2
];
unsigned
int
i
;
for
(
i
=
0
;
i
<
instr
->
comp_count
;
++
i
)
{
int
v
=
min
(
arg1
[
instr
->
scalar
?
0
:
i
],
arg2
[
i
]);
retval
[
i
]
=
*
(
float
*
)
&
v
;
}
}
static
void
pres_imax
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
int
*
arg1
=
(
int
*
)
args
[
0
],
*
arg2
=
(
int
*
)
args
[
1
];
...
...
@@ -480,6 +493,7 @@ static const struct preshader_op_info preshader_ops[] =
{
0x206
,
"atan2"
,
pres_atan2
},
{
0x208
,
"div"
,
pres_div
},
{
0x21a
,
"udiv"
,
pres_udiv
},
{
0x21d
,
"imin"
,
pres_imin
},
{
0x21e
,
"imax"
,
pres_imax
},
{
0x21f
,
"umin"
,
pres_umin
},
{
0x220
,
"umax"
,
pres_umax
},
...
...
dlls/d3d10/tests/effect.c
View file @
a8c78c0e
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