Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24100>
struct tgsi_shader_info *info,
const nir_instr *instr)
{
- info->num_tokens = 2; /* indicate that the shader is non-empty */
info->num_instructions = 2;
if (instr->type == nir_instr_type_alu) {
unsigned i;
info->processor = pipe_shader_type_from_mesa(nir->info.stage);
- info->num_tokens = 1; /* Presume empty */
info->num_instructions = 1;
info->properties[TGSI_PROPERTY_NEXT_SHADER] =
procType == PIPE_SHADER_TESS_EVAL ||
procType == PIPE_SHADER_COMPUTE);
info->processor = procType;
- info->num_tokens = tgsi_num_tokens(parse.Tokens);
if (procType == PIPE_SHADER_GEOMETRY)
info->properties[TGSI_PROPERTY_GS_INVOCATIONS] = 1;
*/
struct tgsi_shader_info
{
- unsigned num_tokens;
-
uint8_t num_inputs;
uint8_t num_outputs;
uint8_t input_semantic_name[PIPE_MAX_SHADER_INPUTS]; /**< TGSI_SEMANTIC_x */