mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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 <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3841>
This commit is contained in:
parent
dacf8f5f5c
commit
a3257ae7be
1 changed files with 5 additions and 2 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue