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
08e8f284
Commit
08e8f284
authored
Dec 01, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10/effect: Add 'ftob' instruction support for expressions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
7448ecae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
effect.c
dlls/d3d10/effect.c
+18
-2
effect.c
dlls/d3d10/tests/effect.c
+0
-0
No files found.
dlls/d3d10/effect.c
View file @
08e8f284
...
...
@@ -246,6 +246,18 @@ static void pres_ftou(float **args, unsigned int n, const struct preshader_instr
}
}
static
void
pres_ftob
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
float
*
retval
=
args
[
1
];
unsigned
int
i
;
for
(
i
=
0
;
i
<
instr
->
comp_count
;
++
i
)
{
unsigned
int
u
=
args
[
0
][
i
]
==
0
.
0
f
?
0
:
~
0u
;
retval
[
i
]
=
*
(
float
*
)
&
u
;
}
}
static
void
pres_min
(
float
**
args
,
unsigned
int
n
,
const
struct
preshader_instr
*
instr
)
{
float
*
retval
=
args
[
2
];
...
...
@@ -295,6 +307,7 @@ static const struct preshader_op_info preshader_ops[] =
{
0x108
,
"sin"
,
pres_sin
},
{
0x109
,
"cos"
,
pres_cos
},
{
0x133
,
"ftou"
,
pres_ftou
},
{
0x137
,
"ftob"
,
pres_ftob
},
{
0x200
,
"min"
,
pres_min
},
{
0x201
,
"max"
,
pres_max
},
{
0x204
,
"add"
,
pres_add
},
...
...
@@ -867,8 +880,9 @@ static void d3d10_effect_update_dependent_props(struct d3d10_effect_prop_depende
case
D3D10_EOO_VALUE_EXPRESSION
:
if
((
property_info
->
container_type
!=
D3D10_C_PASS
)
||
((
property_info
->
type
!=
D3D10_SVT_UINT
)
&&
(
property_info
->
type
!=
D3D10_SVT_FLOAT
)))
if
((
property_info
->
type
!=
D3D10_SVT_UINT
)
&&
(
property_info
->
type
!=
D3D10_SVT_FLOAT
)
&&
(
property_info
->
type
!=
D3D10_SVT_BOOL
))
{
FIXME
(
"Unimplemented for property %s.
\n
"
,
property_info
->
name
);
return
;
...
...
@@ -8864,6 +8878,8 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_depth_stencil_variable_GetBackingS
if
(
!
(
v
=
d3d10_get_state_variable
(
v
,
index
,
&
v
->
effect
->
ds_states
)))
return
E_FAIL
;
d3d10_effect_update_dependent_props
(
&
v
->
u
.
state
.
dependencies
,
&
v
->
u
.
state
.
desc
);
*
desc
=
v
->
u
.
state
.
desc
.
depth_stencil
;
return
S_OK
;
...
...
dlls/d3d10/tests/effect.c
View file @
08e8f284
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