Commit graph

115447 commits

Author SHA1 Message Date
Keith Whitwell
c04a7f8929 gallium: reorganize fragment shader execution, unbreak sse
This is probably going to get further reworked in the near future.

Right now there's a new interface wrapped around each shader execution
mode - exec, sse2, llvm.  The llvm code was disabled already and has
just been moved as-is to a new file, whereas the sse2 and exec code is
actually enabled.

The way the interfaces has turned out suggests to me that the correct
approach is to actually have each shader include a pointer to a quad stage
which will do a better job of encapsulating the execution environment than
what I have here -- that's a second step however.
2008-02-15 09:31:22 +00:00
Keith Whitwell
fa9c160389 tgsi: disable dummy sse2 texture code 2008-02-15 08:56:04 +00:00
José Fonseca
6d3831b11d Code reorganization: placeholder for state-trackers.
This is meant for temporarily holding state-trackers,
until they eventually find their way out of gallium tree.
2008-02-15 17:52:14 +09:00
José Fonseca
6acd63a498 Code reorganization: update build.
Update the Makefiles and includes for the new paths.

Note that there hasn't been no separation of the Makefiles yet, and make is
jumping all over the place. That will be taken care shortly. But for now, make
should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm
might require some minor tweaks.
2008-02-15 17:50:12 +09:00
José Fonseca
b642730be9 Code reorganization: move files into their places.
This is in a separate commit to ensure renames are properly preserved.
2008-02-15 17:45:40 +09:00
Xiang, Haihao
83068115e2 i965: don't swizzle fogcoord if FogOption is FOG_NONE.
fix #10788 issue on 965.
2008-02-15 16:13:11 +08:00
Xiang, Haihao
7eef52e975 i915: set fogcoord to (f,0,0,1). fix #10788 issue on 915. 2008-02-15 15:20:45 +08:00
Zack Rusin
4593be34b2 vastly simplify indexing 2008-02-15 01:17:17 -05:00
Zack Rusin
cf51d5c421 redo indirection
make all load's respect indirection
2008-02-15 01:17:17 -05:00
Zack Rusin
f70cc89dbc redo the way immediates are handled
implement madd
start implementing arl
2008-02-15 01:17:17 -05:00
Zack Rusin
ae3375987f rename 'argument' to 'load' because that's what it does 2008-02-15 01:17:17 -05:00
Zack Rusin
d0364584be implement swizzling on writes 2008-02-15 01:17:16 -05:00
Zack Rusin
13d9e616f6 a call was missed during the last rename 2008-02-15 01:14:59 -05:00
Stephane Marchesin
0a653bef05 nouveau: more nv30 fixes, still doesn't work as well as before. 2008-02-15 04:23:46 +01:00
Kristian Høgsberg
6d48779c7e Add TTM buffer object based texture from pixmap implementation.
Currently only implemented for intel hw.
2008-02-14 22:12:51 -05:00
Kristian Høgsberg
5961ed5fbc Add GLXPixmap version of glxgears to show case new GLX Pixmap functionality. 2008-02-14 22:05:55 -05:00
Stephane Marchesin
01fccea190 nouveau: nv30 fixes. 2008-02-15 03:48:47 +01:00
Ben Skeggs
86bba42023 nv30: more interface updates 2008-02-15 13:55:55 +11:00
Ben Skeggs
8d13f55d2c nv30: fix build 2008-02-15 13:54:07 +11:00
Ben Skeggs
4c239ec2d7 nv40: always copy 4 float immediates for now. 2008-02-15 13:51:12 +11:00
Ben Skeggs
f33fa253c6 nv40: attempt at obeying sampler min_lod/max_lod/lod_bias 2008-02-15 13:51:12 +11:00
Ben Skeggs
7bd15fd271 nv40: remove use of pt->first_level 2008-02-15 13:51:12 +11:00
Brian
67a483909f gallium: initial code for wide/AA line drawing 2008-02-15 13:51:12 +11:00
Brian
4ac85794b1 gallium: fix/finish glReadPixels(GL_DEPTH_COMPONENT).
This fixes demos/reflect ('d' key) and tests/zreaddraw.c
2008-02-15 13:51:12 +11:00
Brian
b487e4b4fb gallium: clamp min_lod so it's never negative 2008-02-15 13:51:12 +11:00
Brian
2ef9df660c Fix broken test.
As-is, if the texture was too large for the target, an assertion would fail.
Now check proxy texture first and if it works, then test non-proxy target.
2008-02-15 13:51:12 +11:00
Brian
dee8e268f7 gallium: remove dead code 2008-02-15 13:51:11 +11:00
Brian
c0a22da157 gallium: added null ptr check 2008-02-15 13:51:11 +11:00
Brian
bbdbdaddb0 gallium: rename st_fragment_program's fs field to cso to match st_vertex_program 2008-02-15 13:51:11 +11:00
Brian
aa31fe3b54 gallium: move gen-mipmap global/static vars into st_context
This fixes potential problems with multi-context programs.
2008-02-15 13:51:11 +11:00
Brian
7057a031f1 Set Min/MaxLod with glTexParameterf, not glTexParameteri 2008-02-15 13:51:11 +11:00
Brian
5b80529b60 press 0,1,2,etc keys for specific bias values 2008-02-15 13:51:11 +11:00
Brian
7eb2cd3427 tweak incr/decrements amounts for keyboard options 2008-02-15 13:51:11 +11:00
Brian
7d99bac7d6 gallium: remove unused first_level param from st_texture_create() 2008-02-15 13:51:11 +11:00
Brian
09e23e077b gallium: clean-up, simplification of mipmapped textures
Remove pipe_texture->first_level (always implicitly zero).  This means there's
never any unused mipmap levels at the top.
In the state tracker, we no longer re-layout mipmapped textures if the
MinLod/MaxLod texture parameters change.  It's up to the driver to obey the
pipe_sampler->min/max_lod clamps.
2008-02-15 13:51:11 +11:00
Ben Skeggs
5d1af60edb nv40: fix inline u08/u16 indices 2008-02-15 13:51:11 +11:00
Brian
3812bba839 gallium: take pitch/stride into account in mipmap generation 2008-02-15 13:51:11 +11:00
Brian
48c4a1ed12 gallium: comments about mipmap gen 2008-02-15 13:51:11 +11:00
Brian
a705e157f2 code refactoring, new next_mipmap_level_size() function 2008-02-15 13:51:11 +11:00
Brian
995924d566 gallium: implement software fallback for mipmap generation
This is used when we can't render to the surface type of the texture (such
as luminance/alpha).
2008-02-15 13:51:11 +11:00
Brian
59f0ce86b8 gallium: strip borders from textures passed to st_TexImage.
Manipulate the unpack params to skip the border.  Gallium drivers won't support
texture borders.
2008-02-15 13:51:11 +11:00
Brian
ba499584d6 gallium: use _mesa_tex_target_to_face() 2008-02-15 13:51:10 +11:00
Brian
939aa5d3bd added _mesa_tex_target_to_face() 2008-02-15 13:51:10 +11:00
Brian
23e6d1aebc gallium: update comment about buffer map flags 2008-02-15 13:51:10 +11:00
Brian
1c7d7da30c gallium: fix fragment/vertex typo 2008-02-15 13:51:10 +11:00
Brian
b81ef1c429 refactor code, export _mesa_generate_mipmap_level() 2008-02-15 13:51:10 +11:00
Brian
a217d0c7d0 move _mesa_format_to_type_and_comps() to texformat.c 2008-02-15 13:51:10 +11:00
Brian
708a022959 reorder cases in do_row() 2008-02-15 13:51:10 +11:00
Brian
4bf4f6e029 re-indent do_row() 2008-02-15 13:51:10 +11:00
Brian
9b3b230bf6 checkpoint- consolidation in do_row() 2008-02-15 13:51:10 +11:00