Commit Graph

13470 Commits

Author SHA1 Message Date
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
Brian f554db1893 checkpoint- remove dependencies on gl_texture_format to make code re-usable by state tracker 2008-02-15 13:51:10 +11:00
Zack Rusin a8637fb991 remove seperate llvm vs entry points
they're not necessary anymore. we use the same paths
as sse and tgsi code
2008-02-15 13:51:10 +11:00
Zack Rusin 7429555849 start genering soa type code in llvm paths 2008-02-15 13:51:09 +11:00
Zack Rusin 6f04f0f8aa disable llvm for fragment shaders for now 2008-02-15 13:51:09 +11:00
Zack Rusin 8f15140943 rewrite the way cpu engine is handled 2008-02-15 13:51:09 +11:00
Zack Rusin 716206c190 rewrite the way we handle ir in llvm code
introduce intermediate step gallivm_ir before compiling it
down to the final llvm ir.
2008-02-15 13:51:09 +11:00
Zack Rusin 474f1a1d56 add a stub of a lowering pass 2008-02-15 13:51:09 +11:00
Ben Skeggs ce358b879c nouveau: memory leak 2008-02-15 13:51:09 +11:00
Ben Skeggs ae78e6b549 nv40: prep for multiple pipe contexts on a single hw channel 2008-02-15 13:51:08 +11:00
Ben Skeggs fc38b21d2a nouveau: interface updates 2008-02-15 13:50:33 +11:00
Ben Skeggs 6aad1d9bbc nv40: delay all state emit until before draw 2008-02-15 13:50:33 +11:00
Brian fc65fb54ee gallium: include st_cb_drawpixels.h 2008-02-15 13:50:33 +11:00
Brian fa0a651a3e fix comment typos 2008-02-15 13:50:33 +11:00
Brian 44bb16c4d4 gallium: initial implemenation of auto mipmap generation in state tracker
Use hardware rendering to compute/render mipmap levels.
The fallback path (which will be used for non-renderable texture formats)
isn't working yet.
2008-02-15 13:50:33 +11:00
Brian d68ea8114a gallium: added inClipCoords param to st_draw_vertices() to indicate coord system of vertices
Also, export st_make_passthrough_vertex_shader() from st_cb_drawpixels.c
2008-02-15 13:50:33 +11:00
Brian 184054fea1 gallium: added draw_flush() call in softpipe_bind_sampler_state() 2008-02-15 13:50:33 +11:00
Brian 76dc41765f Remove unused texunit parameter to ctx->Driver.GenerateMipmap() 2008-02-15 13:50:33 +11:00
Jerome Glisse e770d6adeb intel_winsys: remove leftover code 2008-02-15 13:50:33 +11:00
Jerome Glisse 1e2f5fb05a failover: several fixes to failover pipe module 2008-02-15 13:50:33 +11:00
Michel Dänzer 99c3c2d038 tgsi: Fall back to interpreter instead of assert(0) on unimplemented SSE code. 2008-02-15 13:50:32 +11:00
Michel Dänzer f41a4ee11a pipebuffer: Fix reversed assertion. 2008-02-15 13:50:32 +11:00
José Fonseca 87c8a1ba36 gallium: Conditionally use posix libraries/includes. 2008-02-15 13:50:32 +11:00
Brian 1d05c41c5b Cell: silence unused var warnings 2008-02-15 13:50:32 +11:00
Brian 0af89a60b4 gallium: #include p_debug.h since we use assert 2008-02-15 13:50:32 +11:00
Brian 8ce9d29df9 Cell: use mem_dup() 2008-02-15 13:50:32 +11:00