Maciej Cencora
e1801d861a
r300: fix a typo
2009-08-23 21:30:43 +02:00
Maciej Cencora
bcbe27d0ca
radeon: use proper macro
2009-08-23 21:11:13 +02:00
Maciej Cencora
7e7f0f61bf
radeon: use bo_is_idle interface for checking if OQ result is available
2009-08-23 21:09:55 +02:00
Maciej Cencora
4aadda5f66
r300: minor optimization
...
use properly implemented OUT_BATCH_TABLE where possible
2009-08-23 20:21:48 +02:00
Ian Romanick
9b70c33e73
ARB prog lexer: Fix lexer to eat both DOS and Unix line endings
2009-08-23 11:15:32 -07:00
Alex Deucher
7a05a4c65c
r600: use persistent bos for shaders
2009-08-23 13:41:43 -04:00
Alex Deucher
41934be254
r600: always emit CB base
...
Not doing so seems to cause lock-ups or rendering problems
on some chips. I think there is an logic issue related to
CB and VGT on some chips. We ran into similar issues in
r600_demo IIRC.
2009-08-23 13:05:52 -04:00
Keith Whitwell
153e474d22
softpipe: lift tex_address construction up to img_filter
...
For fastpaths at least, can avoid recalculating this sometimes.
2009-08-23 13:38:10 +01:00
Pauli Nieminen
b34695375e
radeon: Fix compilation with legacy memory manager.
2009-08-23 14:02:46 +03:00
Pauli Nieminen
66bbafb6f9
radeon: Check from kernel if dma buffer is idle.
...
This makes sure that objects are leaving wait list only when they are processed by gpu.
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-23 13:39:32 +03:00
Keith Whitwell
4fe0fc3eba
softpipe: remove old prim_setup draw stage
...
Everything now goes through the draw_vbuf handler, the same as
regular drivers.
2009-08-23 11:22:41 +01:00
Keith Whitwell
47800c572f
softpipe: add missing header
2009-08-23 11:13:20 +01:00
Keith Whitwell
7670102468
Merge branch 'tex-tilecache' into softpipe-opt
...
Conflicts:
src/gallium/drivers/softpipe/sp_state_derived.c
src/gallium/drivers/softpipe/sp_state_sampler.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_tex_sample.h
src/gallium/drivers/softpipe/sp_tile_cache.c
2009-08-23 10:23:46 +01:00
Alex Deucher
bf6d0ae598
r600: make state emit more fine grained
...
Gives a nice speed boost in most apps since
we only emit what state we need.
2009-08-22 18:03:26 -04:00
Renato Caldas
08e91e0315
shader: fix compilation warnings
...
This patch fixes some "implicit declaration of function" compilation
errors/warnings on the new shader code.
Signed-off-by: Renato Caldas <seventhguardian@gmail.com>
2009-08-22 14:00:23 -07:00
Luo Jinghua
523cb80d0f
ARB prog parser: include imports.h to kill some compiler warnings
2009-08-22 13:59:48 -07:00
Alex Deucher
180c304943
r600: move full state to radeon state atoms
2009-08-22 15:03:41 -04:00
Alex Deucher
17813931db
r600: add support for RS880
2009-08-22 11:45:40 -04:00
Ian Romanick
c87ef0870a
i965: Implement frag prog DPH like DP4
...
DPH can output to any component, not just to X. This allows fpalu.c
to run without hitting the assertion in emit_dph.
2009-08-22 01:35:12 -07:00
Pauli Nieminen
effda2e2a7
r300: Fix debug output.
2009-08-22 04:37:24 +03:00
Jakob Bornecrantz
54fb71b863
st/dri: Remove some debug prints
2009-08-22 02:16:02 +01:00
Jakob Bornecrantz
a3e59b9d06
st/dri: Find out if the drawable is a pixmap
...
Part of this code is disabled since no performance gains
where detected with it enabled.
This code only detects if it is a pixmap that it is
rendering to on the st/xorg DDX since it sets the fake
front to the same handle as front.
2009-08-22 02:16:02 +01:00
Jakob Bornecrantz
6237ac2412
st/dri: Fix frontbuffer rendering with DRI2
2009-08-22 02:16:01 +01:00
Jakob Bornecrantz
29165a2fcc
st/xorg: Handle fake fronts correctly for pixmaps
2009-08-22 02:10:18 +01:00
Jakob Bornecrantz
a469b4c459
i915g: Remove bad assert on fence
2009-08-22 02:09:59 +01:00
Pauli Nieminen
6c5c46f842
r300: Fix dri1 not to emit state that is not supported in old drm.
2009-08-22 02:54:34 +03:00
Pauli Nieminen
c0f4063703
radeon/r300: Code clean up and logic fix.
2009-08-22 02:43:00 +03:00
Michel Dänzer
029e643b24
glx/dri2: Always use X drawable ID for DRI2 protocol.
...
Fixes protocol errors in cases where the GLX ID is different.
2009-08-22 01:33:37 +02:00
Michel Dänzer
6b1f144d9b
Fix r300 VBO support build on big endian.
2009-08-22 01:24:39 +02:00
Alex Deucher
bf5d6cf455
r600: better default state size.
...
Hopefully suokko's emit size impovements will
land soon.
2009-08-21 17:46:32 -04:00
Pauli Nieminen
bb43c5d1cb
r300: Remove calls to rcommonEnsureCmdBufSpace.
...
All rendering is checked in r300PredictTryDrawPrimsSize which mamde these calls useless.
2009-08-21 23:48:39 +03:00
Brian Paul
0f24886f92
softpipe: remove duplicate #include, move another
2009-08-21 14:07:37 -06:00
Brian Paul
d204659c8c
softpipe: remove tex sample dependencies on softpipe
...
The texture sampling code doesn't really have any dependencies on the
rest of softpipe, just the tile cache.
2009-08-21 14:04:51 -06:00
Brian Paul
3adc8c3779
softpipe: minor code refactoring to remove softpipe/tile cache dependencies
...
The tile cache code now has no hard dependencies on softpipe.
2009-08-21 14:01:58 -06:00
Brian Paul
4256c5829f
softpipe: remove unused #includes, white-space clean-up
2009-08-21 13:47:50 -06:00
Brian Paul
46fbc87288
softpipe: remove unneeded const qualifier
2009-08-21 13:45:16 -06:00
Pauli Nieminen
90647ff558
radeon: protect against buffer overflow in state atom debug code.
2009-08-21 22:37:13 +03:00
Brian Paul
a29447c33d
softpipe: per-unit sampler varients
...
Can't share sampler varients across multiple tex units because the texture
pointer is in the sampler varient. That prevents different textures per unit.
Fixes progs/demos/multiarb, progs/glsl/samplers, etc.
2009-08-21 12:44:04 -06:00
Ian Romanick
4cfb1b880b
Merge branch 'asm-shader-rework-1'
2009-08-21 11:34:30 -07:00
Pauli Nieminen
b7ec2ebe33
radeon: Improve state emit code.
...
Trying to make understanding code easier with small refactoring and renaming.
2009-08-21 20:47:35 +03:00
Brian Paul
87ec83afd5
softpipe: add missing PIPE_TEXTURE_CUBE case in get_lambda_func()
...
Fixes progs/demos/cubemap
2009-08-21 11:47:31 -06:00
Keith Whitwell
ecfa8be150
softpipe: add missing sp_sampler_varient_destroy
2009-08-21 18:44:56 +01:00
Brian Paul
cf102b031e
softpipe: remove redundant comparison, make test easier to understand
2009-08-21 11:43:48 -06:00
Brian Paul
41483627f0
softpipe: fix min/mag filter typo
2009-08-21 11:41:29 -06:00
Brian Paul
4e5c385d21
softpipe: fix s/t/p typos
2009-08-21 11:40:33 -06:00
Pauli Nieminen
0bf4308580
r300: Add debug output to show how much was emited in TryDrawPrims.
2009-08-21 20:26:41 +03:00
Keith Whitwell
4fc7d0345a
softpipe: rework texture sampling code
...
Split into component pieces, stitch together at runtime using function
pointers. Make it possible to utilize the existing fastpaths as image-level
filters for generic mip-filtering routines.
Remove special case for rectangle filtering, as it can now be handled by
the 2d path.
As most of the mesa demo texturing was already covered by fast paths, its
harder to find examples of speedups, but tunnel gets a boost as mip-nearest
filtering is now able to access the img_2d_linear_wrap_POT functions
for sampling within a mipmap level.
2009-08-21 18:14:19 +01:00
Keith Whitwell
b1cc196e6d
util: add util_is_power_of_two function
2009-08-21 18:07:35 +01:00
Brian Paul
ef98eed0a9
radeon: fix incorrect loop limit (warned by -O3)
2009-08-21 11:04:37 -06:00
Brian Paul
49c0825655
glx: initialize some local vars to silence warnings with -O3
2009-08-21 11:04:37 -06:00