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

« back to all changes in this revision

Viewing changes to src/gallium/auxiliary/util/u_box.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:
 
1
#ifndef UTIL_BOX_INLINES_H
 
2
#define UTIL_BOX_INLINES_H
 
3
 
 
4
#include "pipe/p_state.h"
 
5
 
 
6
static INLINE
 
7
void u_box_1d( unsigned x,
 
8
               unsigned w,
 
9
               struct pipe_box *box )
 
10
{
 
11
   box->x = x;
 
12
   box->y = 0;
 
13
   box->z = 0;
 
14
   box->width = w;
 
15
   box->height = 1;
 
16
   box->depth = 1;
 
17
}
 
18
 
 
19
static INLINE
 
20
void u_box_2d( unsigned x,
 
21
               unsigned y,
 
22
               unsigned w,
 
23
               unsigned h,
 
24
               struct pipe_box *box )
 
25
{
 
26
   box->x = x;
 
27
   box->y = y;
 
28
   box->z = 0;
 
29
   box->width = w;
 
30
   box->height = h;
 
31
   box->depth = 1;
 
32
}
 
33
 
 
34
static INLINE
 
35
void u_box_origin_2d( unsigned w,
 
36
                      unsigned h,
 
37
                      struct pipe_box *box )
 
38
{
 
39
   box->x = 0;
 
40
   box->y = 0;
 
41
   box->z = 0;
 
42
   box->width = w;
 
43
   box->height = h;
 
44
   box->depth = 1;
 
45
}
 
46
 
 
47
static INLINE
 
48
void u_box_2d_zslice( unsigned x,
 
49
                      unsigned y,
 
50
                      unsigned z,
 
51
                      unsigned w,
 
52
                      unsigned h,
 
53
                      struct pipe_box *box )
 
54
{
 
55
   box->x = x;
 
56
   box->y = y;
 
57
   box->z = z;
 
58
   box->width = w;
 
59
   box->height = h;
 
60
   box->depth = 1;
 
61
}
 
62
 
 
63
 
 
64
static INLINE
 
65
void u_box_3d( unsigned x,
 
66
               unsigned y,
 
67
               unsigned z,
 
68
               unsigned w,
 
69
               unsigned h,
 
70
               unsigned d,
 
71
               struct pipe_box *box )
 
72
{
 
73
   box->x = x;
 
74
   box->y = y;
 
75
   box->z = z;
 
76
   box->width = w;
 
77
   box->height = h;
 
78
   box->depth = d;
 
79
}
 
80
 
 
81
 
 
82
static INLINE
 
83
struct pipe_subresource u_subresource( unsigned face,
 
84
                                       unsigned level )
 
85
{
 
86
   struct pipe_subresource subresource;
 
87
   subresource.face = face;
 
88
   subresource.level = level;
 
89
   return subresource;
 
90
}
 
91
 
 
92
#endif