Marek Olšák
bdb811772f
r300g: preliminary implementation of clamping controls
2011-03-04 17:47:56 +01:00
Marek Olšák
10a893106b
r300g: implement FP16 alpha test
2011-03-04 17:47:56 +01:00
Marek Olšák
910bac63df
r300g: implement blending for some of non-RGBA8 formats
...
Blending is now fully supported with:
- R8_UNORM
- R8G8_UNORM
- B8G8R8A8_UNORM
- R16G16B16A16_FLOAT (r500-only)
Blending is partially supported (DST_ALPHA not working) with:
- L8A8_UNORM
- I8_UNORM
- B5G5R5A1_UNORM
- B10G10R10A2_UNORM
The other formats can't do blending.
2011-03-04 17:47:56 +01:00
José Fonseca
4a4f6a3901
draw: Silence tgsi_emit_sse2 failed messages.
2011-03-04 16:29:13 +00:00
José Fonseca
6838c9ce74
tgsi: Disable SSE2 code generation.
...
It's broken now that tgsi_exec_machine::Inputs/Ouputs are pointers.
Temporary if anybody still cares about tgsi_sse2.c. Permanent otherwise.
2011-03-04 14:54:24 +00:00
José Fonseca
d40b868db5
gallium: Define __func__ on MSVC.
2011-03-04 11:55:36 +00:00
Christoph Bumiller
cf143c1f4d
Merge remote branch 'origin/nvc0'
2011-03-04 11:02:10 +01:00
Dave Airlie
137d44e0f2
r600g: disable tiling by default again.
...
we still have a lot of corner cases that aren't working.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-04 08:47:10 +10:00
José Fonseca
9f3c59a350
tgsi: Update assert.
...
Elements(mach->Inputs) is wrong now that mach->Inputs is dynamically
allocated.
2011-03-03 19:23:04 +00:00
Jakob Bornecrantz
4bd27cfecc
rbug: Fix depth stencil surface not being sent to the client
2011-03-03 18:29:17 +00:00
Christoph Bumiller
3bf92a281b
nv50: check grclass instead of chipset for 3D caps
2011-03-03 12:32:40 +01:00
Christoph Bumiller
7048ad62f8
nv50: increase size of shader code bo
...
512 KiB should be quite enough, but dynamic resize might be nicer.
2011-03-03 12:32:40 +01:00
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>
2011-03-03 15:56:20 +10:00
Christian König
8d9ea4c4e7
r600g: correct mega_fetch_count in fetch shader
2011-03-03 00:23:15 +01:00
Zack Rusin
ff2a0faba0
tgsi: defer allocation of huge inputs/outputs until we have a gs
2011-03-02 17:45:22 -05:00
Christoph Bumiller
0c0e996d59
nv50: fix IB index buffer path
...
Add missing VERTEX_END and treat unaligned offsets correctly.
2011-03-02 22:37:56 +01:00
Christoph Bumiller
fa94f8b209
nv50: fix POINT_COORD_REPLACE_MAP method size
...
Introduced in 223d98bb8d .
2011-03-02 21:07:33 +01:00
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.
2011-03-02 20:59:54 +01:00
Christoph Bumiller
b8646bc2af
nv50: fix depth clamp for disabled primitive clipping
2011-03-02 20:59:53 +01:00
Christoph Bumiller
ddcb90248f
nv50: implement independent blend functions for nva3+ and fix cap
2011-03-02 20:59:53 +01:00
Christoph Bumiller
669de7016c
nv50: fix tile size calculations
2011-03-02 20:59:53 +01:00
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.
2011-03-02 20:59:53 +01:00
Christoph Bumiller
dbdbbce066
nv50: allow accidentally disabled IB index buffers again
...
Must have sneaked in from debugging.
2011-03-02 20:59:53 +01:00
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.
2011-03-02 20:59:53 +01:00
Christoph Bumiller
040ff18a21
nv50: fix wrong miptree tile flags taken over from nvc0
2011-03-02 20:59:53 +01:00
Marek Olšák
a6314eb47f
r300g: require DRM 2.3.0 (kernel 2.6.34)
...
Running any older kernel is not recommended anyway.
2011-03-02 17:54:36 +01:00
Marek Olšák
f6dbcb92bf
r300g: do not use ioctl thread offloading on single-core machines
2011-03-02 17:54:36 +01:00
Vinson Lee
bbd9616838
r300g: Silence 'control reaches end of non-void function' warning.
...
Fixes this GCC warning.
r300_hyperz.c: In function 'r300_get_hiz_func':
r300_hyperz.c:65: warning: control reaches end of non-void function
2011-03-02 00:43:09 -08:00
Vinson Lee
0f29d394a4
gallium: Add u_format_rgtc.c to SConscript.
2011-03-01 23:02:50 -08:00
Dave Airlie
e80bfc8515
softpipe: enable RGTC now that we have u_format support.
2011-03-02 15:30:17 +10:00
Dave Airlie
8d62b2aca9
gallium: add RGTC UNORM support to u_format.
...
SNORM needs a bit of work in the state tracker in order for mipmap
generation to work I believe.
I'm also not sure that having unorm fetches for an snorm format is
sane.
2011-03-02 15:30:16 +10:00
Brian Paul
e118fdc9e2
svga: reduce MAX_DMA_SIZE to 4MB
2011-03-01 17:40:27 -07:00
Brian Paul
1c9ca21adb
i915g: remove extra semicolon
2011-03-01 17:09:15 -07:00
Marek Olšák
30600e3dab
r300g: accelerate resoure_copy_region for rgtc
2011-03-02 00:54:06 +01:00
Dave Airlie
c7d239c43b
r600g: change the cross over point for 2d->1d
...
this fixes some rendering in the fbo-generatemipmap-formats test on
my rv610.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02 09:30:24 +10:00
Benjamin Franzke
6b369c4c7c
egl: Add EGL_WL_bind_wayland_display
2011-03-01 17:23:50 -05:00
Daniel Vetter
8f9e546fde
i915g: kill relocs accouting
...
No one ever cared. libdrm does dynamic resizing of its reloc-table,
anyway.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-01 22:18:11 +01:00
Daniel Vetter
ee7acf6493
i915g: switch to the exact batch space reservation code
...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-01 22:18:10 +01:00
Daniel Vetter
179cb58795
i915g: split up hw state emission into small atoms
...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-01 22:18:09 +01:00
Daniel Vetter
583eb13948
i915g: fix i915_winsys_batchbuffer_write
...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-01 20:57:57 +01:00
Marek Olšák
952222e4bf
r300g: initialize some r500 PS3 regs
2011-03-01 19:10:30 +01:00
Marek Olšák
a5ee80a264
r300g: document some more DRM 2.8.0 features
2011-03-01 19:10:30 +01:00
Thomas Hellstrom
8b145e2302
st/egl: Implement swapbuffer throttling
...
When doing copy swapbuffers using drm, throttle on outstanding copy operations.
Introduces a new environment variable, EGL_THROTTLE_FENCES that the
user can use to indicate the desired number of outstanding swapbuffers, or
disable throttling using EGL_THROTTLE_FENCES=0.
This can and perhaps should be extended to the pageflip case as well, since
with some hardware pageflips can be pipelined. In case the pageflip syncs, the
throttle operation will be a no-op anyway.
Update copyright notices.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-03-01 10:36:19 +01:00
Thomas Hellstrom
c9febff31f
st/egl/drm: Rework swapbuffers
...
Use the pageflip ioctl when available.
Otherwise, or when the backbuffer contents need to be preserved,
fall back to a copy operation.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-03-01 10:36:19 +01:00
Thomas Hellstrom
2b079485f6
st/egl: Add a helper to perform a copy swap on a resource surface
...
The copy swap can be used when we need to preserve the contents of
the back buffer or when there is no way to do native page-flipping.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-03-01 10:36:19 +01:00
Thomas Hellstrom
d1e4117355
st/egl: Move the copy context to the native display structure
...
This makes it usable also for native helpers.
Also add inline functions to access the context and to
uninit the native display structure.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-03-01 10:36:18 +01:00
Dave Airlie
b1ceda5cbd
st/dri: one more missing array size
...
whats one more between friends.
again bnf on irc.
2011-03-01 18:32:33 +10:00
Dave Airlie
02448f2241
st/dri: fix missing array size init.
...
Init array size to 1,
reported by bnf on irc.
2011-03-01 18:29:24 +10:00
Dave Airlie
2d62e39c62
egl/st: add array size initialisor
...
reported by bnf on irc.
2011-03-01 18:24:15 +10:00
Ben Skeggs
450aa241bf
nouveau: remove nouveau_stateobj.h
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01 17:43:13 +10:00