Christoph Bumiller
7048ad62f8
nv50: increase size of shader code bo
512 KiB should be quite enough, but dynamic resize might be nicer.
před 14 roky
Ben Skeggs
6b4e3e8941
nouveau: allow pipe driver to define which buffers should start in sysmem
PIPE_BIND_CONSTANT_BUFFER alone was OK for nv50/nvc0, but nv30 will need
to be able to set others on certain chipsets.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Christoph Bumiller
0c0e996d59
nv50: fix IB index buffer path
Add missing VERTEX_END and treat unaligned offsets correctly.
před 14 roky
Christoph Bumiller
fa94f8b209
nv50: fix POINT_COORD_REPLACE_MAP method size
Introduced in 223d98bb8d
.
před 14 roky
Christoph Bumiller
47a62b1ca1
nv50: primitive restart trick for vertex data through FIFO mode
Also, on nv50 the VERTEX_BEGIN method doesn't follow VERTEX_END,
which was erroneously taken over from nvc0 and is fixed now.
před 14 roky
Christoph Bumiller
b8646bc2af
nv50: fix depth clamp for disabled primitive clipping
před 14 roky
Christoph Bumiller
ddcb90248f
nv50: implement independent blend functions for nva3+ and fix cap
před 14 roky
Christoph Bumiller
669de7016c
nv50: fix tile size calculations
před 14 roky
Christoph Bumiller
223d98bb8d
nv50: fix point sprite state validation
Wasn't updated if the FP didn't change, and coordinate replacement
wasn't disabled anymore.
před 14 roky
Christoph Bumiller
dbdbbce066
nv50: allow accidentally disabled IB index buffers again
Must have sneaked in from debugging.
před 14 roky
Christoph Bumiller
908013b737
nv50: apply relocations to shader code
On nv50, branches are absolute, so we need to adjust them according
to the shader's position in the code buffer.
před 14 roky
Christoph Bumiller
040ff18a21
nv50: fix wrong miptree tile flags taken over from nvc0
před 14 roky
Ben Skeggs
450aa241bf
nouveau: remove nouveau_stateobj.h
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
28eb7214db
nvc0: fix a crash on context destruction
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
1ba8e95108
nouveau: ensure vbo_dirty is set when buffer write transfer complete
This introduces a shared nouveau_context struct to track such things.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
96d57722fd
nouveau: fix leak of nouveau_mman structs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
4826cd0f61
nvc0: port to common fence/mm/buffer code
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
40d7a87a8e
nv50: multiply polygon offset units by 2
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
be68782d9a
nv50: sync textures with render targets ourselves
Port of the nvc0 commit doing the same.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
79079141fa
nv50: move onto common linear buffer manager
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
5c1c4f8593
nouveau: common linear buffer manager, ported from nv50/nvc0 drivers
nv50_resource is being called nv04_resource now temporarily, to avoid
a naming conflict with nouveau_resource from libdrm.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
cd24fcedec
nouveau: create linear gart/vram mman in common screen init
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
3a38a4b0a8
nouveau: fix fence_ref() where fence and *ref are the same fence
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
d6bdf1f6ae
nouveau: fix compiler complaint
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
2f30a5bdaa
nv50: make mm available as common code
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
7a8ee058a8
nv50: move onto shared fence code
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
5a0915870c
nouveau: move nv50/nvc0 fencing to common location, and modify slightly
Modified from original to remove chipset-specific code, and to be decoupled
from the mm present in said drivers.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Ben Skeggs
48e191f90c
nv50-nvc0: set cur_ctx during init if none currently bound
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
před 14 roky
Christoph Bumiller
f80c03e187
nv50: replace most of it with nvc0 driver ported to nv50
We'll have to do some unification now to reduce code duplication.
před 14 roky
Marek Olšák
d1dbbf7bf4
r300g: disable hyper-z on rs6xx+
It doesn't work.
před 14 roky
Vinson Lee
93893139a4
mesa: Add texcompress_rgtc.c to SConscript.
před 14 roky
Dave Airlie
e107a3aa08
rgtc: update docs
před 14 roky
Dave Airlie
83ebc01c1d
mesa/st: add RGTC format support.
this just adds a format check + format conversion.
před 14 roky
Dave Airlie
903726d285
swrast: add RGTC support
před 14 roky
Dave Airlie
8d47c91985
mesa: Add RGTC texture store/fetch support.
This adds support for the RGTC unsigned and signed
texture storage and fetch methods.
the code is a port of the DXT5 alpha compression code.
Signed-off-by: Dave Airlie <airlied@redhat.com>
před 14 roky
Dave Airlie
e792e79f5a
mesa: make_float_temp_image non-static
We need this to do signed stuff for RGTC.
před 14 roky
Dave Airlie
e3709c26a6
rgtc: llvmpipe/softpipe refuse RGTC until u_format has support.
So far I haven't implemented the u_format code for these.
Signed-off-by: Dave Airlie <airlied@redhat.com>
před 14 roky
Dave Airlie
0495425dc3
r300g: force swizzles for RGTC
still can't get signed to work
před 14 roky
Christian König
96bbc627f3
r600g: implement instanced drawing support
před 14 roky
Christian König
bce4f9ac39
st/mesa & v_bug_mgr: two small instanced drawing fixes
před 14 roky
Dave Airlie
0a17444133
Revert "r600g: Don't negate result of ABS instruction"
This reverts commit b6d4021393
.
This actually breaks gears here on my rv670.
před 14 roky
Fabian Bieler
0ab7dcddb3
r600g: Process TRUNC with tgis_op2
TRUNC is neither a scalar instruction nor exclusive to the Trans unit.
Signed-off-by: Dave Airlie <airlied@redhat.com>
před 14 roky
Fabian Bieler
b6d4021393
r600g: Don't negate result of ABS instruction
Signed-off-by: Dave Airlie <airlied@redhat.com>
před 14 roky
Daniel Vetter
d42c9433b0
i915g: implement cache flushing
With an extremely dumb strategy. But it's the same i915c employs.
Also improve the hw_atom code slightly by statically specifying the
required batch space. For extremely variably stuff (shaders, constants)
it would probably be better to add a new parameter to the hw_atom->validate
function.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
před 14 roky
Daniel Vetter
f90fa55347
i915g: buffer validation for blitter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
před 14 roky
Daniel Vetter
342016010a
i915g: buffer validation for render state
Also contains the first few bits for hw state atoms.
v2: Implement suggestion by Jakob Bornecrantz.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
před 14 roky
Daniel Vetter
3c59b3eb4b
i915g/winsys: buffer validation support
v2: Add the batch bo to the libdrm validation lost, for otherwise
libdrm won't take previously used buffers into account.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
před 14 roky
Daniel Vetter
e20c3255e2
i915g: add raw batchbuffer dumping in drm winsys
These files can be decoded with intel_dump_decode from the intel-gpu-tools
available at:
http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
před 14 roky
Daniel Vetter
f58c11af72
i915g: cleanup static state calculation, part 2
Now also for the DRAW_RECT command
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
před 14 roky
Daniel Vetter
beaf039f97
i915g: cleanup static state calculation, part 1
Move it to i915_state_static.c This way i915_emit_state.c only emits
state and doesn't (re)calculate it.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
před 14 roky