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

« back to all changes in this revision

Viewing changes to src/gallium/drivers/nv40/nv40_state.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 __NV40_STATE_H__
2
 
#define __NV40_STATE_H__
3
 
 
4
 
#include "pipe/p_state.h"
5
 
#include "tgsi/tgsi_scan.h"
6
 
 
7
 
struct nv40_sampler_state {
8
 
        uint32_t fmt;
9
 
        uint32_t wrap;
10
 
        uint32_t en;
11
 
        uint32_t filt;
12
 
        uint32_t bcol;
13
 
};
14
 
 
15
 
struct nv40_vertex_program_exec {
16
 
        uint32_t data[4];
17
 
        boolean has_branch_offset;
18
 
        int const_index;
19
 
};
20
 
 
21
 
struct nv40_vertex_program_data {
22
 
        int index; /* immediates == -1 */
23
 
        float value[4];
24
 
};
25
 
 
26
 
struct nv40_vertex_program {
27
 
        struct pipe_shader_state pipe;
28
 
 
29
 
        struct draw_vertex_shader *draw;
30
 
 
31
 
        boolean translated;
32
 
 
33
 
        struct pipe_clip_state ucp;
34
 
 
35
 
        struct nv40_vertex_program_exec *insns;
36
 
        unsigned nr_insns;
37
 
        struct nv40_vertex_program_data *consts;
38
 
        unsigned nr_consts;
39
 
 
40
 
        struct nouveau_resource *exec;
41
 
        unsigned exec_start;
42
 
        struct nouveau_resource *data;
43
 
        unsigned data_start;
44
 
        unsigned data_start_min;
45
 
 
46
 
        uint32_t ir;
47
 
        uint32_t or;
48
 
        uint32_t clip_ctrl;
49
 
        struct nouveau_stateobj *so;
50
 
};
51
 
 
52
 
struct nv40_fragment_program_data {
53
 
        unsigned offset;
54
 
        unsigned index;
55
 
};
56
 
 
57
 
struct nv40_fragment_program {
58
 
        struct pipe_shader_state pipe;
59
 
        struct tgsi_shader_info info;
60
 
 
61
 
        boolean translated;
62
 
        unsigned samplers;
63
 
 
64
 
        uint32_t *insn;
65
 
        int       insn_len;
66
 
 
67
 
        struct nv40_fragment_program_data *consts;
68
 
        unsigned nr_consts;
69
 
 
70
 
        struct pipe_buffer *buffer;
71
 
 
72
 
        uint32_t fp_control;
73
 
        struct nouveau_stateobj *so;
74
 
};
75
 
 
76
 
struct nv40_miptree {
77
 
        struct pipe_texture base;
78
 
        struct nouveau_bo *bo;
79
 
 
80
 
        struct pipe_buffer *buffer;
81
 
        uint total_size;
82
 
 
83
 
        struct {
84
 
                uint pitch;
85
 
                uint *image_offset;
86
 
        } level[PIPE_MAX_TEXTURE_LEVELS];
87
 
};
88
 
 
89
 
#endif