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
10fcb937
Commit
10fcb937
authored
Jun 16, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Jun 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Handle redefining an intrinsic function as a user-defined function.
parent
08247714
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
utils.c
dlls/d3dcompiler_43/utils.c
+16
-0
No files found.
dlls/d3dcompiler_43/utils.c
View file @
10fcb937
...
...
@@ -2479,6 +2479,22 @@ void add_function_decl(struct wine_rb_tree *funcs, char *name, struct hlsl_ir_fu
if
(
func_entry
)
{
func
=
WINE_RB_ENTRY_VALUE
(
func_entry
,
struct
hlsl_ir_function
,
entry
);
if
(
intrinsic
!=
func
->
intrinsic
)
{
if
(
intrinsic
)
{
ERR
(
"Redeclaring a user defined function as an intrinsic.
\n
"
);
return
;
}
TRACE
(
"Function %s redeclared as a user defined function.
\n
"
,
debugstr_a
(
name
));
func
->
intrinsic
=
intrinsic
;
wine_rb_destroy
(
&
func
->
overloads
,
free_function_decl_rb
,
NULL
);
if
(
wine_rb_init
(
&
func
->
overloads
,
&
hlsl_ir_function_decl_rb_funcs
)
==
-
1
)
{
ERR
(
"Failed to initialize function rbtree.
\n
"
);
return
;
}
}
decl
->
func
=
func
;
if
((
old_entry
=
wine_rb_get
(
&
func
->
overloads
,
decl
->
parameters
)))
{
...
...
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