~ubuntu-branches/ubuntu/lucid/mesa/lucid

« back to all changes in this revision

Viewing changes to src/gallium/state_trackers/xorg/xorg_exa_tgsi.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen, Timo Aaltonen, Robert Hooker
  • Date: 2010-02-19 15:52:12 UTC
  • mfrom: (3.1.10 experimental)
  • Revision ID: james.westby@ubuntu.com-20100219155212-blqov938av7m6exj
Tags: 7.7-3ubuntu1
[ Timo Aaltonen ]
* Merge from Debian experimental.

[ Robert Hooker ]
* Add 100_no_abi_tag.patch: Removes the ABI tag in /usr/lib/libGL.so.1
  which prevented ldconfig from using a libGL from another directory
  at a higher priority than the one in /usr/lib.
* Install libGL alternatives with libgl1-mesa-swx11 as well. (LP: #522048)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#include "pipe/p_format.h"
7
7
#include "pipe/p_context.h"
8
8
#include "pipe/p_state.h"
9
 
#include "pipe/p_inlines.h"
10
9
#include "pipe/p_shader_tokens.h"
11
10
 
12
11
#include "util/u_memory.h"
13
 
#include "util/u_simple_shaders.h"
14
12
 
15
13
#include "tgsi/tgsi_ureg.h"
16
14
 
47
45
print_fs_traits(int fs_traits)
48
46
{
49
47
   const char *strings[] = {
50
 
      "FS_COMPOSITE",       // = 1 << 0,
51
 
      "FS_MASK",            // = 1 << 1,
52
 
      "FS_SOLID_FILL",      // = 1 << 2,
53
 
      "FS_LINGRAD_FILL",    // = 1 << 3,
54
 
      "FS_RADGRAD_FILL",    // = 1 << 4,
55
 
      "FS_CA_FULL",         // = 1 << 5, /* src.rgba * mask.rgba */
56
 
      "FS_CA_SRCALPHA",     // = 1 << 6, /* src.aaaa * mask.rgba */
57
 
      "FS_YUV",             // = 1 << 7,
58
 
      "FS_SRC_REPEAT_NONE", // = 1 << 8,
59
 
      "FS_MASK_REPEAT_NONE",// = 1 << 9,
60
 
      "FS_SRC_SWIZZLE_RGB", // = 1 << 10,
61
 
      "FS_MASK_SWIZZLE_RGB",// = 1 << 11,
62
 
      "FS_SRC_SET_ALPHA",   // = 1 << 12,
63
 
      "FS_MASK_SET_ALPHA",  // = 1 << 13,
64
 
      "FS_SRC_LUMINANCE",   // = 1 << 14,
65
 
      "FS_MASK_LUMINANCE",  // = 1 << 15,
 
48
      "FS_COMPOSITE",       /* = 1 << 0, */
 
49
      "FS_MASK",            /* = 1 << 1, */
 
50
      "FS_SOLID_FILL",      /* = 1 << 2, */
 
51
      "FS_LINGRAD_FILL",    /* = 1 << 3, */
 
52
      "FS_RADGRAD_FILL",    /* = 1 << 4, */
 
53
      "FS_CA_FULL",         /* = 1 << 5, */ /* src.rgba * mask.rgba */
 
54
      "FS_CA_SRCALPHA",     /* = 1 << 6, */ /* src.aaaa * mask.rgba */
 
55
      "FS_YUV",             /* = 1 << 7, */
 
56
      "FS_SRC_REPEAT_NONE", /* = 1 << 8, */
 
57
      "FS_MASK_REPEAT_NONE",/* = 1 << 9, */
 
58
      "FS_SRC_SWIZZLE_RGB", /* = 1 << 10, */
 
59
      "FS_MASK_SWIZZLE_RGB",/* = 1 << 11, */
 
60
      "FS_SRC_SET_ALPHA",   /* = 1 << 12, */
 
61
      "FS_MASK_SET_ALPHA",  /* = 1 << 13, */
 
62
      "FS_SRC_LUMINANCE",   /* = 1 << 14, */
 
63
      "FS_MASK_LUMINANCE",  /* = 1 << 15, */
66
64
   };
67
65
   int i, k;
68
66
   debug_printf("%s: ", __func__);
492
490
 
493
491
   /* it has to be either a fill, a composite op or a yuv conversion */
494
492
   debug_assert((is_fill ^ is_composite) ^ is_yuv);
 
493
   (void) is_yuv;
495
494
 
496
495
   out = ureg_DECL_output(ureg,
497
496
                          TGSI_SEMANTIC_COLOR,