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

« back to all changes in this revision

Viewing changes to src/gallium/drivers/nvfx/nvfx_screen.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 __NVFX_SCREEN_H__
 
2
#define __NVFX_SCREEN_H__
 
3
 
 
4
#include "pipe/p_compiler.h"
 
5
#include "util/u_double_list.h"
 
6
#include "nouveau/nouveau_screen.h"
 
7
 
 
8
struct pipe_screen;
 
9
 
 
10
struct nvfx_screen {
 
11
        struct nouveau_screen base;
 
12
 
 
13
        struct nouveau_winsys *nvws;
 
14
 
 
15
        struct nvfx_context *cur_ctx;
 
16
 
 
17
        unsigned is_nv4x; /* either 0 or ~0 */
 
18
        unsigned use_nv4x; /* either 0 or ~0 */
 
19
        boolean force_swtnl;
 
20
        boolean trace_draw;
 
21
        unsigned vertex_buffer_reloc_flags;
 
22
        unsigned index_buffer_reloc_flags;
 
23
        unsigned advertise_fp16;
 
24
        unsigned advertise_fp32;
 
25
        unsigned advertise_npot;
 
26
        unsigned advertise_blend_equation_separate;
 
27
 
 
28
        /* HW graphics objects */
 
29
        struct nouveau_grobj *eng3d;
 
30
        struct nouveau_notifier *sync;
 
31
 
 
32
        /* Query object resources */
 
33
        struct nouveau_notifier *query;
 
34
        struct nouveau_resource *query_heap;
 
35
        struct list_head query_list;
 
36
 
 
37
        /* Vtxprog resources */
 
38
        struct nouveau_resource *vp_exec_heap;
 
39
        struct nouveau_resource *vp_data_heap;
 
40
 
 
41
        struct nv04_2d_context* eng2d;
 
42
 
 
43
        /* Once the amount of bytes drawn from the buffer reaches the updated size times this value,
 
44
         * we will assume that the buffer will be drawn an huge number of times before the
 
45
         * next modification
 
46
         */
 
47
        float static_reuse_threshold;
 
48
 
 
49
        /* Cost of allocating a buffer in terms of the cost of copying a byte to an hardware buffer */
 
50
        unsigned buffer_allocation_cost;
 
51
 
 
52
        /* inline_cost/hardware_cost conversion ration */
 
53
        float inline_cost_per_hardware_cost;
 
54
};
 
55
 
 
56
static INLINE struct nvfx_screen *
 
57
nvfx_screen(struct pipe_screen *screen)
 
58
{
 
59
        return (struct nvfx_screen *)screen;
 
60
}
 
61
 
 
62
int nvfx_screen_surface_init(struct pipe_screen *pscreen);
 
63
void nvfx_screen_surface_takedown(struct pipe_screen *pscreen);
 
64
 
 
65
#endif