Andre Maasikas
a88c9296cb
r600: need to export something from PS
...
Also avoids empty shader for "END" - seems to be somewhat valid fp
Maybe this can be done differently in the future (fake FRAG_RESULT_COLOR
already in Map_Fragment_Program() or is there a way to program the chip
to not hang in case of no exports.
2009-10-22 09:44:03 +03:00
Andre Maasikas
f7285bdffc
r600: clear position enable bit when when wpos is not used by FP
...
Makes doom3 alot nicer..
2009-10-15 11:16:41 -04:00
Alex Deucher
f33853e56d
r600: fix memory leak
2009-08-26 11:09:59 -04:00
Alex Deucher
8dd151b947
r600: code cleanup
2009-08-24 17:51:00 -04:00
Alex Deucher
180c304943
r600: move full state to radeon state atoms
2009-08-22 15:03:41 -04: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
Cooper Yuan
1e52b8b4e0
r600: A shader is bound that exports Z as a float into Red channel
2009-08-12 17:39:18 +08:00
Cooper Yuan
2ccd66d8a0
r600: update num of interp if posizition is used
2009-08-11 14:36:01 +08:00
Dave Airlie
728da99737
r600: looks like a typo
2009-08-09 20:46:12 +10:00
Cooper Yuan
b2927a6204
r600: load per-pixel position into PS in order to use fragment.position.
...
This patch can fix /progs/fp/tri-depth, tri-depth2, tri-depthwrite,
tri-depthwrite2 and point-position.
2009-08-09 12:18:40 +08:00
Alex Deucher
5e51903606
r600: fix regression in texenv
...
Emit shader consts with the shader program itself
2009-08-02 13:29:18 -04:00
Alex Deucher
19ce428c8a
r600: ensure we have enough room for full state emit
...
full state is roughly 4000 dwords, but will vary depending
on the rendering.
Also fix some warnings.
2009-07-31 14:52:56 -04:00
Alex Deucher
be1687a892
r600: re-arrange state setup and emit so they are not mixed
2009-07-31 14:52:55 -04:00
Cooper Yuan
03607708b0
r600: emit fog color in PS input map, fix fog related applications
2009-07-29 15:31:41 +08:00
Cooper Yuan
0f6d3aece7
R6xx/r7xx: VS export fog color as parameter
2009-07-29 15:23:56 +08:00
Alex Deucher
719abd7fc0
r600: fix flat shading
...
Set the flat shading bit on the appropriate PS input
depending on the type of attribute it is. The VS output
and PS input routing should probably be made more dynamic
at some point. We may want to use semantic ids to make
it easier.
2009-07-28 16:58:41 -04:00
Alex Deucher
7d3190a85b
r600: fix textures
...
We weren't allocating enough gprs for the fragment shader
in some cases. There are likely other issues that still need
to be sorted out for textures, but at least they now work.
2009-07-27 03:52:37 -04:00
Richard Li
bb429803e0
r6xx/r7xx: Better fix for fragment temps
...
This doesn't waste as many in generic cases.
2009-07-02 12:08:57 -04:00
Alex Deucher
65cdf9c561
R6xx/R7xx: Fix number of temps used in fragment program
...
Spotted by Cooper. This gets hello, aargb, smooth, etc.
working.
2009-07-01 11:10:10 -04:00
Alex Deucher
8c27d99eb8
re-arrange state structure
...
- split out renderbuffers
- split out shaders
- split our viewports
Only send the state needed.
2009-06-04 20:22:14 -04:00
Alex Deucher
d8694cd3f6
get rid of chip_object struct
2009-05-29 15:37:04 -04:00
Alex Deucher
949c489f59
more cleanup
2009-05-29 14:23:04 -04:00
Richard Li
2a7a2c6b77
Fix r6 code bugs.
2009-05-15 19:49:17 -04:00
Richard Li
e2dcebd2e6
R6xx/R7xx: WIP r6xx-rewrite code
2009-05-08 19:23:45 -04:00
Richard Li
27c07b6b28
Initial pull of code from r6xx-r7xx-support branch
...
Not functional yet.
2009-04-21 12:54:20 -04:00
Alex Deucher
c0419f190c
Remove r500 stuff
2009-04-10 16:36:18 -04:00
Alex Deucher
e24e4ae2e8
R6xx/R7xx: r300 -> r600 symbols
2009-04-09 10:55:41 -04:00
Alex Deucher
4138bdb3b1
R600: initial copy of r300 code
2009-04-08 15:16:35 -04:00