Christoph Bumiller
df189c9efc
nv50: TIC/TSC fixes and additions
...
Red and blue were interchanged in TIC.
Add border color and some formats.
2009-07-29 09:40:34 +10:00
Christoph Bumiller
f498ccd654
nv50: fix sx/dx typo in transfer_rect_m2mf
2009-07-29 09:40:34 +10:00
Christoph Bumiller
d1b9183e64
nv50: fix viewport transform
...
The translation also needs to be inverted, and in bypass mode
the state tracker incorrectly assumes that Y = 0 = TOP, so we
need inversion there to; NDC clipping has to be deactivated
explicitly.
2009-07-29 09:40:34 +10:00
Christoph Bumiller
b0341f994f
nv50: use correct scissor reg
2009-07-29 09:40:33 +10:00
Alex Deucher
8c56029b1e
r600: fix tex clamp modes
...
This makes texwrap look better.
2009-07-28 18:09:38 -04:00
Alex Deucher
e629c50e2b
r600: implement texture border color
2009-07-28 17:59:54 -04: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
dbdb3952c1
r600: don't call r700UpdateShaders twice for each render
2009-07-28 15:58:01 -04:00
Alex Deucher
b1f7c844a3
r600: move r700TranslateFragmentShader into r700UpdateShaders
2009-07-28 15:53:45 -04:00
Alex Deucher
4d648523aa
r600: disable flat shade fix in 506bacb8e4
...
This breaks textures. We need to only set this bit for
attributes that that need flat shading.
2009-07-28 11:12:36 -04:00
Brian Paul
d2f6d6ce49
Merge branch 'mesa_7_5_branch'
...
Conflicts:
Makefile
configs/default
docs/relnotes.html
src/mesa/main/version.h
2009-07-28 08:58:25 -06:00
Brian Paul
94726bc69e
gallium: minor code/comments clean-up
2009-07-28 08:55:43 -06:00
Chia-I Wu
a744a496d5
egl: Comment out unused tables in_eglFillInConfigs
...
This silences a compiler warning.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-07-28 08:55:43 -06:00
Cooper Yuan
506bacb8e4
R6xx/r7xx: enable flat shading, this can fix quadric/accanti/accpersp
2009-07-28 13:57:07 +08:00
Alex Deucher
fcf317ac16
r600: fix _REV texture format component swizzles
2009-07-27 18:14:45 -04:00
Brian Paul
6c03563af7
mesa: regenerated file
2009-07-27 15:42:29 -06:00
RALOVICH, Kristóf
8363dff251
glx: remove XTHREADS support
2009-07-27 15:38:04 -06:00
RALOVICH, Kristóf
bdb8ee5186
glapi: regenerated GL API assembly files
2009-07-27 15:38:04 -06:00
RALOVICH, Kristóf
8f397bffa8
glapi: remove XTHREADS support
2009-07-27 15:38:04 -06:00
Brian Paul
3dbaf68bdc
intel: Fix leak of DRI option info due to using the wrong free routine.
...
(cherry picked from commit 6d66f23c50 )
2009-07-27 15:33:07 -06:00
Brian Paul
722d136f7b
intel: Clean up leak of driver context structure on context destroy.
...
(cherry picked from commit ddef7dc87b )
2009-07-27 15:33:07 -06:00
Brian Paul
a7427b0f7b
st/mesa: silence warning
2009-07-27 15:10:28 -06:00
Brian Paul
0ad9eba333
mesa: separate some finite/pragma Watcom stuff
2009-07-27 15:10:00 -06:00
Brian Paul
7e2f26cbbf
softpipe: include sp_winsys.h to silence function prototype warning
2009-07-27 15:08:44 -06:00
Nicolai Hähnle
3ccf89d584
r300/compiler: Make calculate_inputs_outputs available to external users
...
In the long run, it's probably better to just get rid of InputsRead and
OutputsWritten.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:40 +02:00
Nicolai Hähnle
59fff53492
r300/compiler: Add vertex program code dumper from Gallium driver
2009-07-27 22:51:39 +02:00
Nicolai Hähnle
6bc0e1054a
r300/compiler: Prepare for hookup to Gallium
2009-07-27 22:51:39 +02:00
Nicolai Hähnle
e82a50a6a1
r300/fragprog: Move wpos_attr and fog_attr where they belong
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:39 +02:00
Nicolai Hähnle
790334883a
r300/fragprog: Remove hardcoded FRAG_ATTRIB_xxx constants
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:38 +02:00
Nicolai Hähnle
e034683eda
r300/fragprog: No longer rely on hardcoded FRAG_RESULT_xxx constants
...
Also, this makes radeon_program_pair depend on the r300 fragment program
compiler. Since we now know that r600+ no longer use the same pairing
style in their ALU, we can stop pretending that program_pair is useful
for anything but r300-r500 fragment programs.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:38 +02:00
Nicolai Hähnle
836050ba5e
r300/fragprog: Move some of the attribute handling out of the compiler
...
Attribute indices will probably be different in Gallium, so make the compiler
independent of magic values.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:38 +02:00
Nicolai Hähnle
1348a7ebc0
r300/fragprog: Finally get rid of the duplicate program copy
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:38 +02:00
Nicolai Hähnle
3f78381687
r300/vertprog: Move Mesa-dependent input/output handling out of compiler
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:37 +02:00
Nicolai Hähnle
d6a304800b
r300: Remove ugly PSIZ hack
...
Instead of setting Sourced, we simply force writemasks to begin with.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:37 +02:00
Nicolai Hähnle
05a51f4b3d
r300/vertprog: Refactor wpos rewrite using rc_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:37 +02:00
Nicolai Hähnle
ce0c32e3d2
r300/vertprog: Refactor fog_as_texcoord to use rc_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:36 +02:00
Nicolai Hähnle
a1e8992ffa
r300/vertprog: Refactor addArtificialOutputs to use rc_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:36 +02:00
Nicolai Hähnle
273af68570
r300/fragprog: Refactor wpos rewrite to use rc_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:36 +02:00
Nicolai Hähnle
9dc1be4158
r300/compiler: Refactor fragment program fog rewrite to use rc_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:36 +02:00
Nicolai Hähnle
aab949cb9d
r300/compiler: Refactor rewrite_depth_out to use rc_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:35 +02:00
Nicolai Hähnle
6f4608f53c
r300/compiler: Refactor local transforms to use rc_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 22:51:14 +02:00
Brian Paul
d2f56fe687
intel: Use _mesa_warning() to report GEM warnings
2009-07-27 14:35:18 -06:00
Karl Schultz
09ef339b69
windows: updated VC8 project files
...
See bug 22882.
2009-07-27 13:38:35 -06:00
Nicolai Hähnle
800f482586
r300: Allow compiler to add constants in a cleaner way
...
Adding constants is used in a number of non-native instruction
rewrites, and it required us to keep copies of modified gl_programs
around. This is a first step towards ending this.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 20:32:07 +02:00
Nicolai Hähnle
92f7a599c7
r300/compiler: Refactor nqssadce to use rc_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 20:32:07 +02:00
Nicolai Hähnle
a898e7d66c
r300/compiler: Refactor for rc_program usage
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 20:32:07 +02:00
Nicolai Hähnle
2237d136cd
r300/compiler: Add rc_print_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 20:32:07 +02:00
Nicolai Hähnle
8bcb6ef786
r300/compiler: Lay groundwork for better error handling
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 20:32:06 +02:00
Nicolai Hähnle
c5cb9a3378
r300: Remove dependency on GLcontext from compiler
...
Unfortunately, this does cause some code duplication (which we can hopefully
eliminate eventually).
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 20:32:06 +02:00
Nicolai Hähnle
d65404225d
r300/vertprog: Cleanup source conflict handling
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27 20:32:06 +02:00