~ubuntu-branches/ubuntu/natty/mesa/natty-proposed

« back to all changes in this revision

Viewing changes to src/gallium/auxiliary/tgsi/tgsi_ureg.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Hooker, Robert Hooker, Christopher James Halse Rogers
  • Date: 2010-09-14 08:55:40 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100914085540-m4fpl0hdjlfd4jgz
Tags: 7.9~git20100909-0ubuntu1
[ Robert Hooker ]
* New upstream git snapshot up to commit 94118fe2d4b1e5 (LP: #631413)
* New features include ATI HD5xxx series support in r600, and a vastly
  improved glsl compiler.
* Remove pre-generated .pc's, use the ones generated at build time
  instead.
* Remove all references to mesa-utils now that its no longer shipped
  with the mesa source.
* Disable the experimental ARB_fragment_shader option by default on
  i915, it exposes incomplete functionality that breaks KDE compositing
  among other things. It can be enabled via driconf still. (LP: #628930).

[ Christopher James Halse Rogers ]
* debian/patches/04_osmesa_version.diff:
  - Refresh for new upstream
* Bugs fixed in this release:
  - Fixes severe rendering corruption in Unity on radeon (LP: #628727,
    LP: #596292, LP: #599741, LP: #630315, LP: #613694, LP: #599741).
  - Also fixes rendering in gnome-shell (LP: #578619).
  - Flickering in OpenGL apps on radeon (LP: #626943, LP: #610541).
  - Provides preliminary support for new intel chips (LP: #601052).
* debian/rules:
  - Update configure flags to match upstream reshuffling.
  - Explicitly remove gallium DRI drivers that we don't want to ship.
* Update debian/gbp.conf for this Maverick-specific packaging
* libegl1-mesa-dri-x11,kms: There are no longer separate kms or x11 drivers
  for EGL, libegl1-mesa-drivers now contains a single driver that provides
  both backends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
   unsigned SwizzleZ    : 2;  /* TGSI_SWIZZLE_ */
50
50
   unsigned SwizzleW    : 2;  /* TGSI_SWIZZLE_ */
51
51
   unsigned Indirect    : 1;  /* BOOL */
 
52
   unsigned DimIndirect : 1;  /* BOOL */
52
53
   unsigned Dimension   : 1;  /* BOOL */
53
54
   unsigned Absolute    : 1;  /* BOOL */
54
55
   unsigned Negate      : 1;  /* BOOL */
55
56
   int      Index       : 16; /* SINT */
56
 
   unsigned IndirectFile    : 4;  /* TGSI_FILE_ */
57
 
   int      IndirectIndex   : 16; /* SINT */
58
 
   unsigned IndirectSwizzle : 2;  /* TGSI_SWIZZLE_ */
59
 
   int      DimensionIndex  : 16; /* SINT */
 
57
   unsigned IndirectFile     : 4;  /* TGSI_FILE_ */
 
58
   int      IndirectIndex    : 16; /* SINT */
 
59
   unsigned IndirectSwizzle  : 2;  /* TGSI_SWIZZLE_ */
 
60
   int      DimensionIndex   : 16; /* SINT */
 
61
   unsigned DimIndFile       : 4;  /* TGSI_FILE_ */
 
62
   int      DimIndIndex      : 16; /* SINT */
 
63
   unsigned DimIndSwizzle    : 2;  /* TGSI_SWIZZLE_ */
60
64
};
61
65
 
62
66
/* Very similar to a tgsi_dst_register, removing unsupported fields
104
108
                 unsigned *nr_tokens );
105
109
 
106
110
 
 
111
/* Free the tokens created by ureg_get_tokens() */
 
112
void ureg_free_tokens( const struct tgsi_token *tokens );
 
113
 
 
114
 
107
115
void 
108
116
ureg_destroy( struct ureg_program * );
109
117
 
231
239
ureg_DECL_address( struct ureg_program * );
232
240
 
233
241
struct ureg_dst
234
 
ureg_DECL_loop( struct ureg_program * );
235
 
 
236
 
struct ureg_dst
237
242
ureg_DECL_predicate(struct ureg_program *);
238
243
 
239
244
/* Supply an index to the sampler declaration as this is the hook to
820
825
   return reg;
821
826
}
822
827
 
823
 
static INLINE struct ureg_src 
 
828
static INLINE struct ureg_src
824
829
ureg_src_dimension( struct ureg_src reg, int index )
825
830
{
826
831
   assert(reg.File != TGSI_FILE_NULL);
827
832
   reg.Dimension = 1;
828
 
   reg.DimensionIndex = index;
 
833
   reg.DimIndirect = 0;
 
834
   reg.DimensionIndex = index;
 
835
   return reg;
 
836
}
 
837
 
 
838
 
 
839
static INLINE struct ureg_src
 
840
ureg_src_dimension_indirect( struct ureg_src reg, struct ureg_src addr,
 
841
                             int index )
 
842
{
 
843
   assert(reg.File != TGSI_FILE_NULL);
 
844
   reg.Dimension = 1;
 
845
   reg.DimIndirect = 1;
 
846
   reg.DimensionIndex = index;
 
847
   reg.DimIndFile = addr.File;
 
848
   reg.DimIndIndex = addr.Index;
 
849
   reg.DimIndSwizzle = addr.SwizzleX;
829
850
   return reg;
830
851
}
831
852
 
873
894
   src.Negate = 0;
874
895
   src.Dimension = 0;
875
896
   src.DimensionIndex = 0;
 
897
   src.DimIndirect = 0;
 
898
   src.DimIndFile = TGSI_FILE_NULL;
 
899
   src.DimIndIndex = 0;
 
900
   src.DimIndSwizzle = 0;
876
901
 
877
902
   return src;
878
903
}
896
921
   src.Negate    = 0;
897
922
   src.Dimension = 0;
898
923
   src.DimensionIndex = 0;
 
924
   src.DimIndirect = 0;
 
925
   src.DimIndFile = TGSI_FILE_NULL;
 
926
   src.DimIndIndex = 0;
 
927
   src.DimIndSwizzle = 0;
899
928
 
900
929
   return src;
901
930
}
943
972
   src.Negate    = 0;
944
973
   src.Dimension = 0;
945
974
   src.DimensionIndex = 0;
946
 
   
 
975
   src.DimIndirect = 0;
 
976
   src.DimIndFile = TGSI_FILE_NULL;
 
977
   src.DimIndIndex = 0;
 
978
   src.DimIndSwizzle = 0;
 
979
 
947
980
   return src;
948
981
}
949
982