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

« back to all changes in this revision

Viewing changes to src/gallium/drivers/i915/i915_resource.c

  • 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
#include "util/u_debug.h"
 
2
 
 
3
#include "i915_resource.h"
 
4
#include "i915_context.h"
 
5
#include "i915_screen.h"
 
6
 
 
7
 
 
8
static struct pipe_resource *
 
9
i915_resource_create(struct pipe_screen *screen,
 
10
                    const struct pipe_resource *template)
 
11
{
 
12
   if (template->target == PIPE_BUFFER)
 
13
      return i915_buffer_create(screen, template);
 
14
   else
 
15
      return i915_texture_create(screen, template);
 
16
 
 
17
}
 
18
 
 
19
static struct pipe_resource *
 
20
i915_resource_from_handle(struct pipe_screen * screen,
 
21
                         const struct pipe_resource *template,
 
22
                         struct winsys_handle *whandle)
 
23
{
 
24
   if (template->target == PIPE_BUFFER)
 
25
      return NULL;
 
26
   else
 
27
      return i915_texture_from_handle(screen, template, whandle);
 
28
}
 
29
 
 
30
 
 
31
void
 
32
i915_init_resource_functions(struct i915_context *i915 )
 
33
{
 
34
   i915->base.is_resource_referenced = u_default_is_resource_referenced;
 
35
   i915->base.get_transfer = u_get_transfer_vtbl;
 
36
   i915->base.transfer_map = u_transfer_map_vtbl;
 
37
   i915->base.transfer_flush_region = u_transfer_flush_region_vtbl;
 
38
   i915->base.transfer_unmap = u_transfer_unmap_vtbl;
 
39
   i915->base.transfer_destroy = u_transfer_destroy_vtbl;
 
40
   i915->base.transfer_inline_write = u_transfer_inline_write_vtbl;
 
41
}
 
42
 
 
43
void
 
44
i915_init_screen_resource_functions(struct i915_screen *is)
 
45
{
 
46
   is->base.resource_create = i915_resource_create;
 
47
   is->base.resource_from_handle = i915_resource_from_handle;
 
48
   is->base.resource_get_handle = u_resource_get_handle_vtbl;
 
49
   is->base.resource_destroy = u_resource_destroy_vtbl;
 
50
   is->base.user_buffer_create = i915_user_buffer_create;
 
51
}