Marek Olšák
23f92c20d7
gallium/util: add LATC support
...
Again, a lot of code is shared with RGTC.
The layout is UTIL_FORMAT_LAYOUT_RGTC, because LATC is just swizzled RGTC.
2011-03-08 23:52:37 +01:00
Christian König
719f07e45a
r600g: set start instance correctly
2011-03-08 16:57:47 +01:00
Marek Olšák
5650a719f0
r300g: decide whether a flush should be asynchronous when calling it
...
Thread offloading is not sometimes desirable, e.g. when mapping a buffer.
2011-03-08 08:23:29 +01:00
Marek Olšák
6051f26b78
r300g: use pipelined transfers for RGTC textures
2011-03-08 08:17:12 +01:00
Brian Paul
2c1ef65a04
llvmpipe: clamp texcoords in lp_build_sample_compare()
...
See previous commit for more info.
NOTE: This is a candidate for the 7.10 branch.
2011-03-07 18:59:42 -07:00
Philip Taylor
0eef561a5b
softpipe: clamp texcoords in sample_compare()
...
This fixes http://bugs.freedesktop.org/show_bug.cgi?id=31159 for softpipe
and fixes the piglit depth-tex-compare test.
NOTE: This is a candidate for the 7.10 branch.
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-03-07 18:56:54 -07:00
Brian Paul
8329f4db61
st/glx: whitespace, 80-column fixes
2011-03-07 14:58:39 -07:00
Henri Verbeet
0e4750a84d
r600g: Simplify some swizzle lookups.
2011-03-07 21:48:21 +01:00
Henri Verbeet
eac50295fc
r600g: Constant buffers can contain up to 4096 constants.
2011-03-07 21:48:21 +01:00
Christian König
e0cf8471a1
r600g: use long long integers for instance addr calculation
...
Using a long for instance addr calculation isn't
big enough on 32bit systems, use a long long int instead.
Thanks to Rafael Monica for fixing this.
2011-03-06 23:37:47 +01:00
José Fonseca
7cb17862c6
pb: Add is_buffer_busy for malloc buffers.
2011-03-06 09:12:58 +00:00
José Fonseca
e1510d4816
st/wgl: No need to initialize OneTimeLock anymore.
2011-03-06 09:12:30 +00:00
José Fonseca
e640eec9ba
trace: Use pipe_static_mutex.
2011-03-06 09:11:13 +00:00
José Fonseca
db6d0d9ebf
os: Fix pipe_static_mutex on Windows.
2011-03-06 09:10:38 +00:00
José Fonseca
5e1b31066b
graw-gdi: Silence gcc missing initialization warning.
2011-03-06 09:10:03 +00:00
Daniel Vetter
f95892b46a
i915g: update TODO
...
Comments about the deleted stuff:
- openaren hang: likely caused by the vertex corruptions, fixed by Jakob.
- tiling: Y-tiling works with my hw-clear branch. X-tiling works as
merged to master a while ago (execbuf2 version).
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-06 00:39:18 +01:00
Marek Olšák
b6a9675b2f
r300g/swtcl: advertise draw_instanced and primitive_restart
2011-03-05 17:41:12 +01:00
Marek Olšák
65482f2c2b
r300g: implement instanced arrays
2011-03-05 17:41:11 +01:00
Marek Olšák
95c7881ac8
gallium: split CAP_INSTANCE_DRAWING into INSTANCEID and INSTANCE_DIVISOR
...
ARB_instanced_arrays is a subset of D3D9.
ARB_draw_instanced is a subset of D3D10.
The point of this change is to allow D3D9-level drivers to enable
ARB_instanced_arrays without ARB_draw_instanced.
2011-03-05 17:40:19 +01:00
Marek Olšák
307408a4f8
r300g: cleanup parameters of draw functions
2011-03-05 16:13:43 +01:00
Christoph Bumiller
533bf171d4
nv50: support the InstanceID system value
2011-03-05 14:53:23 +01:00
Christian König
17b9b757b7
r600g: simplify instance addr calculation
...
Use MULHI_UINT instead of the more complex
INT_TO_FLT->MUL->TRUNC->FLT_TO_INT
2011-03-05 13:42:51 +01:00
Vinson Lee
19355a461a
nvc0: Update SConscript.
2011-03-04 17:15:21 -08:00
Vinson Lee
dbf4970b69
nv50: Update SConscript.
2011-03-04 17:11:35 -08:00
Christian König
fd2409ca27
r600g: fix fragment shader size calculation
...
bc.ndw is altered in r600_bc_build, respect that
in fragment shader size calculation.
2011-03-05 01:52:44 +01:00
Christoph Bumiller
b0698396dc
nv50,nvc0: get format desc for TIC entry from sampler view format
...
Fixes piglit/tex-srgb.
2011-03-05 00:51:07 +01:00
Christoph Bumiller
1f5d6fc59b
nv50,nvc0: share sampler state creation
2011-03-05 00:51:07 +01:00
Christoph Bumiller
e4c968cdbb
nv50,nvc0: update the format tables
...
Removed sampler view support for USCALED/SSCALED, the texture unit
refuses to convert to non-normalized float. The enums are treated
like UNORM.
Removed duplicate format related headers.
2011-03-05 00:51:07 +01:00
Christoph Bumiller
f556b897eb
nvc0: use m2mf for resource_copy_region if formats are equal
...
Which is always the case, but we'll keep the 2D engine blitter
nonetheless.
2011-03-05 00:51:07 +01:00
Christoph Bumiller
4fae7da9a3
nv50,nvc0: fix texture layer issues
2011-03-05 00:51:07 +01:00
Jakob Bornecrantz
9f0acfe138
i915g: Use tgsi_info from fragment shader instead
2011-03-05 00:23:27 +01:00
Daniel Vetter
98b418e56e
i915g: use passthough shader for empty fragment programs
...
The hw doesn't like it - demos/shadowtex is broken. The emitted shader
isn't totally empty though, the depth write fixup gets emitted instead.
Maybe that one is somewhat fishy, too?
Idea for this patch from Jakob Bornecrantz.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-04 23:46:20 +01:00
Benjamin Franzke
e71920929e
egl/wayland: Move wayland-egl into a subdir
...
This hopefully fixes wayland-egl's dependency
resolution for autogenerated wayland-drm headers.
2011-03-04 16:36:37 -05:00
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