Преглед на файлове

tgsi: add tgsi_declaration fields for centroid sampling, invariant optimization

(cherry picked from commit 434e255eae)
tags/mesa_20090313
Brian Paul преди 16 години
родител
ревизия
dc48ae97dc
променени са 3 файла, в които са добавени 13 реда и са изтрити 1 реда
  1. 2
    0
      src/gallium/auxiliary/tgsi/tgsi_build.c
  2. 8
    0
      src/gallium/auxiliary/tgsi/tgsi_dump.c
  3. 3
    1
      src/gallium/include/pipe/p_shader_tokens.h

+ 2
- 0
src/gallium/auxiliary/tgsi/tgsi_build.c Целия файл

@@ -119,6 +119,8 @@ tgsi_default_declaration( void )
declaration.UsageMask = TGSI_WRITEMASK_XYZW;
declaration.Interpolate = TGSI_INTERPOLATE_CONSTANT;
declaration.Semantic = 0;
declaration.Centroid = 0;
declaration.Invariant = 0;
declaration.Padding = 0;
declaration.Extended = 0;


+ 8
- 0
src/gallium/auxiliary/tgsi/tgsi_dump.c Целия файл

@@ -248,6 +248,14 @@ iter_declaration(
TXT( ", " );
ENM( decl->Declaration.Interpolate, interpolate_names );

if (decl->Declaration.Centroid) {
TXT( ", CENTROID" );
}

if (decl->Declaration.Invariant) {
TXT( ", INVARIANT" );
}

EOL();

return TRUE;

+ 3
- 1
src/gallium/include/pipe/p_shader_tokens.h Целия файл

@@ -85,7 +85,9 @@ struct tgsi_declaration
unsigned UsageMask : 4; /* bitmask of TGSI_WRITEMASK_x flags */
unsigned Interpolate : 4; /* TGSI_INTERPOLATE_ */
unsigned Semantic : 1; /* BOOL, any semantic info? */
unsigned Padding : 6;
unsigned Centroid : 1; /* centroid sampling */
unsigned Invariant : 1; /* invariant optimization */
unsigned Padding : 4;
unsigned Extended : 1; /* BOOL */
};


Loading…
Отказ
Запис