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

« back to all changes in this revision

Viewing changes to src/gallium/drivers/cell/ppu/cell_texture.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:
28
28
#ifndef CELL_TEXTURE_H
29
29
#define CELL_TEXTURE_H
30
30
 
 
31
#include "cell/common.h"
31
32
 
32
33
struct cell_context;
33
 
struct pipe_texture;
 
34
struct pipe_resource;
34
35
 
35
36
 
36
37
/**
37
 
 * Subclass of pipe_texture
 
38
 * Subclass of pipe_resource
38
39
 */
39
 
struct cell_texture
 
40
struct cell_resource
40
41
{
41
 
   struct pipe_texture base;
 
42
   struct pipe_resource base;
42
43
 
43
44
   unsigned long level_offset[CELL_MAX_TEXTURE_LEVELS];
44
45
   unsigned long stride[CELL_MAX_TEXTURE_LEVELS];
45
46
 
46
 
   /** The tiled texture data is held in this buffer */
47
 
   struct pipe_buffer *buffer;
 
47
   /**
 
48
    * Display target, for textures with the PIPE_BIND_DISPLAY_TARGET
 
49
    * usage.
 
50
    */
 
51
   struct sw_displaytarget *dt;
 
52
   unsigned dt_stride;
 
53
 
 
54
   /**
 
55
    * Malloc'ed data for regular textures, or a mapping to dt above.
 
56
    */
 
57
   void *data;
 
58
   boolean userBuffer;
 
59
 
 
60
   /* Size of the linear buffer??
 
61
    */
48
62
   unsigned long buffer_size;
49
63
 
50
64
   /** The buffer above, mapped.  This is the memory from which the
64
78
 
65
79
 
66
80
/** cast wrapper */
67
 
static INLINE struct cell_texture *
68
 
cell_texture(struct pipe_texture *pt)
 
81
static INLINE struct cell_resource *
 
82
cell_resource(struct pipe_resource *pt)
69
83
{
70
 
   return (struct cell_texture *) pt;
 
84
   return (struct cell_resource *) pt;
71
85
}
72
86
 
73
87
 
82
96
extern void
83
97
cell_init_screen_texture_funcs(struct pipe_screen *screen);
84
98
 
 
99
extern void
 
100
cell_init_texture_transfer_funcs(struct cell_context *cell);
85
101
 
86
102
#endif /* CELL_TEXTURE_H */