mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 03:50:13 +01:00
tgsi/scan: add info about declared samplers (v2)
v2: get it from declarations, not instructions
This commit is contained in:
parent
417927ebde
commit
c80c19a9d5
2 changed files with 3 additions and 0 deletions
|
|
@ -409,6 +409,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
|
|||
info->writes_edgeflag = TRUE;
|
||||
}
|
||||
}
|
||||
} else if (file == TGSI_FILE_SAMPLER) {
|
||||
info->samplers_declared |= 1 << reg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ struct tgsi_shader_info
|
|||
uint file_count[TGSI_FILE_COUNT]; /**< number of declared registers */
|
||||
int file_max[TGSI_FILE_COUNT]; /**< highest index of declared registers */
|
||||
int const_file_max[PIPE_MAX_CONSTANT_BUFFERS];
|
||||
unsigned samplers_declared; /**< bitmask of declared samplers */
|
||||
|
||||
ubyte input_array_first[PIPE_MAX_SHADER_INPUTS];
|
||||
ubyte input_array_last[PIPE_MAX_SHADER_INPUTS];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue