aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2020-02-17 17:13:58 +1000
committerDave Airlie <[email protected]>2020-02-28 18:33:34 +1000
commita3257ae7bec68d57e79928eb202cd522d708e720 (patch)
tree9145186226d2572b3b2f4e5867b1e79d6206886a /src/gallium
parentdacf8f5f5c82c18e841050af37db54ca21c026ee (diff)
gallium/nir/tgsi: only scan fragment shader inputs for usage_mask
The scanner doesn't work with tess shaders, but we don't need it for those, in fact only frag shaders need it. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3841>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/nir/nir_to_tgsi_info.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi_info.c b/src/gallium/auxiliary/nir/nir_to_tgsi_info.c
index a761f4460c6..cc705e75804 100644
--- a/src/gallium/auxiliary/nir/nir_to_tgsi_info.c
+++ b/src/gallium/auxiliary/nir/nir_to_tgsi_info.c
@@ -135,10 +135,13 @@ static void gather_intrinsic_load_deref_info(const nir_shader *nir,
{
assert(var && var->data.mode == nir_var_shader_in);
- gather_usage(deref, nir_ssa_def_components_read(&instr->dest.ssa),
- info->input_usage_mask);
+ if (nir->info.stage == MESA_SHADER_FRAGMENT)
+ gather_usage(deref, nir_ssa_def_components_read(&instr->dest.ssa),
+ info->input_usage_mask);
+
switch (nir->info.stage) {
case MESA_SHADER_VERTEX: {
+
break;
}
default: {