projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00b9c10
)
spirv2dxil: When removing unused inputs, make sure they're actually inputs
author
Jesse Natalie
<jenatali@microsoft.com>
Thu, 5 Jan 2023 17:38:17 +0000
(09:38 -0800)
committer
Marge Bot
<emma+marge@anholt.net>
Tue, 17 Jan 2023 12:47:16 +0000
(12:47 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20614>
src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
patch
|
blob
|
history
diff --git
a/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
b/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
index
bb8cd74
..
e0bd2bb
100644
(file)
--- a/
src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
+++ b/
src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
@@
-490,7
+490,7
@@
kill_undefined_varyings(struct nir_builder *b,
return false;
nir_variable *var = nir_intrinsic_get_var(intr, 0);
- if (!var)
+ if (!var
|| var->data.mode != nir_var_shader_in
)
return false;
/* Ignore builtins for now, some of them get default values