• Home
  • Raw
  • Download

Lines Matching refs:system_values

193    struct vrend_shader_io system_values[32];  member
1543 if (ctx->num_system_values > ARRAY_SIZE(ctx->system_values)) { in iter_declaration()
1544 … vrend_printf( "Number of system values exceeded, max is %lu\n", ARRAY_SIZE(ctx->system_values)); in iter_declaration()
1548 ctx->system_values[i].name = decl->Semantic.Name; in iter_declaration()
1549 ctx->system_values[i].sid = decl->Semantic.Index; in iter_declaration()
1550 ctx->system_values[i].glsl_predefined_no_emit = true; in iter_declaration()
1551 ctx->system_values[i].glsl_no_index = true; in iter_declaration()
1552 ctx->system_values[i].override_no_wm = true; in iter_declaration()
1553 ctx->system_values[i].first = decl->Range.First; in iter_declaration()
1580 ctx->system_values[i].override_no_wm = false; in iter_declaration()
1590 ctx->system_values[i].override_no_wm = false; in iter_declaration()
1593 ctx->system_values[i].override_no_wm = false; in iter_declaration()
1596 ctx->system_values[i].override_no_wm = false; in iter_declaration()
1601 snprintf(ctx->system_values[i].glsl_name, 64, "%s", name_prefix); in iter_declaration()
4239 if (ctx->system_values[j].first == src->Register.Index) { in get_source_info()
4240 if (ctx->system_values[j].name == TGSI_SEMANTIC_VERTEXID || in get_source_info()
4241 ctx->system_values[j].name == TGSI_SEMANTIC_INSTANCEID || in get_source_info()
4242 ctx->system_values[j].name == TGSI_SEMANTIC_PRIMID || in get_source_info()
4243 ctx->system_values[j].name == TGSI_SEMANTIC_VERTICESIN || in get_source_info()
4244 ctx->system_values[j].name == TGSI_SEMANTIC_INVOCATIONID || in get_source_info()
4245 ctx->system_values[j].name == TGSI_SEMANTIC_SAMPLEID) { in get_source_info()
4247 strbuf_fmt(src_buf, "ivec4(%s)", ctx->system_values[j].glsl_name); in get_source_info()
4249 …src_buf, "%s(vec4(intBitsToFloat(%s)))", get_string(stypeprefix), ctx->system_values[j].glsl_name); in get_source_info()
4250 } else if (ctx->system_values[j].name == TGSI_SEMANTIC_HELPER_INVOCATION) { in get_source_info()
4251 strbuf_fmt(src_buf, "uvec4(%s)", ctx->system_values[j].glsl_name); in get_source_info()
4252 } else if (ctx->system_values[j].name == TGSI_SEMANTIC_TESSINNER || in get_source_info()
4253 ctx->system_values[j].name == TGSI_SEMANTIC_TESSOUTER) { in get_source_info()
4256 ctx->system_values[j].glsl_name, src->Register.SwizzleX, in get_source_info()
4257 ctx->system_values[j].glsl_name, src->Register.SwizzleY, in get_source_info()
4258 ctx->system_values[j].glsl_name, src->Register.SwizzleZ, in get_source_info()
4259 ctx->system_values[j].glsl_name, src->Register.SwizzleW); in get_source_info()
4260 } else if (ctx->system_values[j].name == TGSI_SEMANTIC_SAMPLEPOS) { in get_source_info()
4273 } else if (ctx->system_values[j].name == TGSI_SEMANTIC_TESSCOORD) { in get_source_info()
4276 ctx->system_values[j].glsl_name, get_swiz_char(src->Register.SwizzleX), in get_source_info()
4277 ctx->system_values[j].glsl_name, get_swiz_char(src->Register.SwizzleY), in get_source_info()
4278 ctx->system_values[j].glsl_name, get_swiz_char(src->Register.SwizzleZ), in get_source_info()
4279 … ctx->system_values[j].glsl_name, get_swiz_char(src->Register.SwizzleW)); in get_source_info()
4280 } else if (ctx->system_values[j].name == TGSI_SEMANTIC_GRID_SIZE || in get_source_info()
4281 ctx->system_values[j].name == TGSI_SEMANTIC_THREAD_ID || in get_source_info()
4282 ctx->system_values[j].name == TGSI_SEMANTIC_BLOCK_ID) { in get_source_info()
4288 ctx->system_values[j].glsl_name, get_swiz_char(src->Register.SwizzleX), in get_source_info()
4289 ctx->system_values[j].glsl_name, get_swiz_char(src->Register.SwizzleY), in get_source_info()
4290 ctx->system_values[j].glsl_name, get_swiz_char(src->Register.SwizzleZ), in get_source_info()
4291 … ctx->system_values[j].glsl_name, get_swiz_char(src->Register.SwizzleW)); in get_source_info()
4293 } else if (ctx->system_values[j].name == TGSI_SEMANTIC_SAMPLEMASK) { in get_source_info()
4302 … src->Register.SwizzleX == TGSI_SWIZZLE_X ? ctx->system_values[j].glsl_name : "0", in get_source_info()
4303 … src->Register.SwizzleY == TGSI_SWIZZLE_X ? ctx->system_values[j].glsl_name : "0", in get_source_info()
4304 … src->Register.SwizzleZ == TGSI_SWIZZLE_X ? ctx->system_values[j].glsl_name : "0", in get_source_info()
4305 … src->Register.SwizzleW == TGSI_SWIZZLE_X ? ctx->system_values[j].glsl_name : "0"); in get_source_info()
4307 strbuf_fmt(src_buf, "%s%s", prefix, ctx->system_values[j].glsl_name); in get_source_info()
4308 sinfo->override_no_wm[i] = ctx->system_values[j].override_no_wm; in get_source_info()