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:
74a24f4
)
microsoft/compiler: Emit a flat interpolation method for SV_SampleIndex
author
Michael Tang
<tangm@microsoft.com>
Tue, 24 Aug 2021 23:53:33 +0000
(16:53 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Wed, 25 Aug 2021 20:19:05 +0000
(20:19 +0000)
We do not want to set an interpolation method for vertex shader inputs.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12513>
src/microsoft/compiler/dxil_signature.c
patch
|
blob
|
history
diff --git
a/src/microsoft/compiler/dxil_signature.c
b/src/microsoft/compiler/dxil_signature.c
index 61f16ba4f7aaed02c251154a5dcc3911e43a9302..ef28efc5174a7e55b5e0123e34461036623b9c85 100644
(file)
--- a/
src/microsoft/compiler/dxil_signature.c
+++ b/
src/microsoft/compiler/dxil_signature.c
@@
-191,6
+191,7
@@
get_semantic_sv_name(nir_variable *var, struct semantic_info *info, bool _vulkan
break;
case SYSTEM_VALUE_SAMPLE_ID:
info->kind = DXIL_SEM_SAMPLE_INDEX;
+ info->interpolation = get_interpolation(var);
break;
default:
unreachable("unsupported system value");