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
5ae37d47
Commit
5ae37d47
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 writemask in make_assignment().
parent
10fcb937
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
utils.c
dlls/d3dcompiler_43/utils.c
+25
-2
No files found.
dlls/d3dcompiler_43/utils.c
View file @
5ae37d47
...
...
@@ -1584,8 +1584,31 @@ struct hlsl_ir_node *make_assignment(struct hlsl_ir_node *left, enum parse_assig
type
=
left
->
data_type
;
else
{
FIXME
(
"Assignments with writemasks not supported yet.
\n
"
);
type
=
NULL
;
unsigned
int
dimx
=
0
;
DWORD
bitmask
;
enum
hlsl_type_class
type_class
;
if
(
left
->
data_type
->
type
>
HLSL_CLASS_LAST_NUMERIC
)
{
hlsl_report_message
(
left
->
loc
.
file
,
left
->
loc
.
line
,
left
->
loc
.
col
,
HLSL_LEVEL_ERROR
,
"writemask on a non scalar/vector/matrix type"
);
d3dcompiler_free
(
assign
);
return
NULL
;
}
bitmask
=
writemask
&
((
1
<<
left
->
data_type
->
dimx
)
-
1
);
while
(
bitmask
)
{
if
(
bitmask
&
1
)
dimx
++
;
bitmask
>>=
1
;
}
if
(
left
->
data_type
->
type
==
HLSL_CLASS_MATRIX
)
FIXME
(
"Assignments with writemasks and matrices on lhs are not supported yet.
\n
"
);
if
(
dimx
==
1
)
type_class
=
HLSL_CLASS_SCALAR
;
else
type_class
=
left
->
data_type
->
type
;
type
=
new_hlsl_type
(
NULL
,
type_class
,
left
->
data_type
->
base_type
,
dimx
,
1
);
}
assign
->
node
.
type
=
HLSL_IR_ASSIGNMENT
;
assign
->
node
.
loc
=
left
->
loc
;
...
...
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