WIP: port to new libdrm

calim: nv50,nvc0/xv: fix src_w/h width/height confusion
nvc0: replace direct inline m2mf with inline helper to do the same

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nvc0: do tic/tsc binding only once, at startup

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nvc0: punt shaders out to a header file

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nvc0: tidy and cull a heap of fermi init (stuff in default grctx)

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nvc0: switch to kepler's subchannel assignments (see note)

This will bust for kernels with nouveau ABI version < 1.0.0... It should
be possible to add compat for 0.0.16 however...

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nvc0: create scratch buffer before initialising m2mf

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nve0: initial exa/xv acceleration for kepler chipsets

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Keep a single buffer for random accel data, rather than 3 different ones

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv30/nv40: upload shaders directly from rankine/curie init

Also removes A8 surface shader hack, and implements proper shaders for
the specific purpose.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv50: implement and use PUSH_DATAu

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv50/exa: perform texcoord transformations in vertex program

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv50/exa: support solid pictures

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nvc0/exa: port recent nv50 changes (vp transform, solid pictures, etc)

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv40/exa: do transforms in vertex program

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv30/exa: use fixed-function texture matrix for src/mask transforms

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv10/exa: use fixed-function texture matrix for transforms

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv10/exa: implement support for solid pictures

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv30/exa: implement support for solid pictures using register combiners

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nv40/exa: support for solid pictures

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>