Lines Matching refs:decl
300 struct tgsi_full_declaration *decl )
303 boolean patch = decl->Semantic.Name == TGSI_SEMANTIC_PATCH ||
304 decl->Semantic.Name == TGSI_SEMANTIC_TESSINNER ||
305 decl->Semantic.Name == TGSI_SEMANTIC_TESSOUTER ||
306 decl->Semantic.Name == TGSI_SEMANTIC_PRIMID;
310 TXT(tgsi_file_name(decl->Declaration.File));
315 if (decl->Declaration.File == TGSI_FILE_INPUT &&
324 if (decl->Declaration.File == TGSI_FILE_OUTPUT &&
330 if (decl->Declaration.Dimension) {
332 SID(decl->Dim.Index2D);
337 SID(decl->Range.First);
338 if (decl->Range.First != decl->Range.Last) {
340 SID(decl->Range.Last);
346 decl->Declaration.UsageMask );
348 if (decl->Declaration.Array) {
350 SID(decl->Array.ArrayID);
354 if (decl->Declaration.Local)
357 if (decl->Declaration.Semantic) {
359 ENM( decl->Semantic.Name, tgsi_semantic_names );
360 if (decl->Semantic.Index != 0 ||
361 decl->Semantic.Name == TGSI_SEMANTIC_TEXCOORD ||
362 decl->Semantic.Name == TGSI_SEMANTIC_GENERIC) {
364 UID( decl->Semantic.Index );
368 if (decl->Semantic.StreamX != 0 || decl->Semantic.StreamY != 0 ||
369 decl->Semantic.StreamZ != 0 || decl->Semantic.StreamW != 0) {
371 UID(decl->Semantic.StreamX);
373 UID(decl->Semantic.StreamY);
375 UID(decl->Semantic.StreamZ);
377 UID(decl->Semantic.StreamW);
382 if (decl->Declaration.File == TGSI_FILE_IMAGE) {
384 ENM(decl->Image.Resource, tgsi_texture_names);
386 TXT(util_format_name(decl->Image.Format));
387 if (decl->Image.Writable)
389 if (decl->Image.Raw)
393 if (decl->Declaration.File == TGSI_FILE_BUFFER) {
394 if (decl->Declaration.Atomic)
398 if (decl->Declaration.File == TGSI_FILE_MEMORY) {
399 switch (decl->Declaration.MemType) {
408 if (decl->Declaration.File == TGSI_FILE_SAMPLER_VIEW) {
410 ENM(decl->SamplerView.Resource, tgsi_texture_names);
412 if ((decl->SamplerView.ReturnTypeX == decl->SamplerView.ReturnTypeY) &&
413 (decl->SamplerView.ReturnTypeX == decl->SamplerView.ReturnTypeZ) &&
414 (decl->SamplerView.ReturnTypeX == decl->SamplerView.ReturnTypeW)) {
415 ENM(decl->SamplerView.ReturnTypeX, tgsi_return_type_names);
417 ENM(decl->SamplerView.ReturnTypeX, tgsi_return_type_names);
419 ENM(decl->SamplerView.ReturnTypeY, tgsi_return_type_names);
421 ENM(decl->SamplerView.ReturnTypeZ, tgsi_return_type_names);
423 ENM(decl->SamplerView.ReturnTypeW, tgsi_return_type_names);
427 if (decl->Declaration.Interpolate) {
429 decl->Declaration.File == TGSI_FILE_INPUT)
432 ENM( decl->Interp.Interpolate, tgsi_interpolate_names );
435 if (decl->Interp.Location != TGSI_INTERPOLATE_LOC_CENTER) {
437 ENM( decl->Interp.Location, tgsi_interpolate_locations );
441 if (decl->Declaration.Invariant) {
452 const struct tgsi_full_declaration *decl )
459 iter_declaration( &ctx.iter, (struct tgsi_full_declaration *)decl );