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

« back to all changes in this revision

Viewing changes to src/gallium/include/state_tracker/dri1_api.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 _DRI1_API_H_
2
 
#define _DRI1_API_H_
3
 
 
4
 
#include "pipe/p_compiler.h"
5
 
#include "pipe/p_screen.h"
6
 
#include "pipe/p_format.h"
7
 
 
8
 
#include "state_tracker/drm_api.h"
9
 
 
10
 
#include <drm.h>
11
 
 
12
 
struct pipe_screen;
13
 
struct pipe_winsys;
14
 
struct pipe_buffer;
15
 
struct pipe_context;
16
 
struct pipe_texture;
17
 
 
18
 
struct dri1_api_version
19
 
{
20
 
   int major;
21
 
   int minor;
22
 
   int patch_level;
23
 
};
24
 
 
25
 
/**
26
 
 * This callback struct is intended for drivers that need to take
27
 
 * the hardware lock on command submission.
28
 
 */
29
 
 
30
 
struct dri1_api_lock_funcs
31
 
{
32
 
   void (*lock) (struct pipe_context * pipe);
33
 
   void (*unlock) (struct pipe_context * locked_pipe);
34
 
      boolean(*is_locked) (struct pipe_context * locked_pipe);
35
 
      boolean(*is_lock_lost) (struct pipe_context * locked_pipe);
36
 
   void (*clear_lost_lock) (struct pipe_context * locked_pipe);
37
 
};
38
 
 
39
 
struct dri1_api
40
 
{
41
 
   /**
42
 
    * For flushing to the front buffer. A driver should implement one and only
43
 
    * one of the functions below. The present_locked functions allows a dri1
44
 
    * driver to pageflip.
45
 
    */
46
 
 
47
 
   /*@{ */
48
 
 
49
 
   struct pipe_surface *(*front_srf_locked) (struct pipe_context *
50
 
                                             locked_pipe);
51
 
 
52
 
   void (*present_locked) (struct pipe_context * locked_pipe,
53
 
                           struct pipe_surface * surf,
54
 
                           const struct drm_clip_rect * rect,
55
 
                           unsigned int num_clip,
56
 
                           int x_draw, int y_draw,
57
 
                           const struct drm_clip_rect * src_bbox,
58
 
                           struct pipe_fence_handle ** fence);
59
 
   /*@} */
60
 
};
61
 
 
62
 
struct dri1_create_screen_arg
63
 
{
64
 
   struct drm_create_screen_arg base;
65
 
 
66
 
   struct dri1_api_lock_funcs *lf;
67
 
   void *ddx_info;
68
 
   int ddx_info_size;
69
 
   void *sarea;
70
 
 
71
 
   struct dri1_api_version ddx_version;
72
 
   struct dri1_api_version dri_version;
73
 
   struct dri1_api_version drm_version;
74
 
 
75
 
   /*
76
 
    * out parameters;
77
 
    */
78
 
 
79
 
   struct dri1_api *api;
80
 
};
81
 
 
82
 
#endif