Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Erik Faye-Lund
mesa
Commits
a026aae7
Commit
a026aae7
authored
Nov 05, 2020
by
Erik Faye-Lund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
microsoft/compiler: properly handle failure in add_sysvalue
parent
141dd8f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/microsoft/compiler/nir_to_dxil.c
src/microsoft/compiler/nir_to_dxil.c
+5
-1
No files found.
src/microsoft/compiler/nir_to_dxil.c
View file @
a026aae7
...
...
@@ -4258,9 +4258,13 @@ append_input_or_sysvalue(struct ntd_context *ctx, nir_shader *s,
}
}
}
ctx
->
system_value
[
sv_slot
]
=
add_sysvalue
(
ctx
,
s
,
sv_slot
,
name
,
driver_location
);
if
(
!
ctx
->
system_value
[
sv_slot
])
return
false
;
exec_list_push_tail
(
&
s
->
system_values
,
&
ctx
->
system_value
[
sv_slot
]
->
node
);
return
(
ctx
->
system_value
[
sv_slot
]
!=
NULL
)
;
return
true
;
}
struct
sysvalue_name
{
...
...
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