Commit graph

11633 commits

Author SHA1 Message Date
Brian
de653b4c9b Begin added vertex shader state/support.
Renamed pipe_fs_state to pipe_shader_state since it can be used for both
vertex and fragment shader info.
2007-08-16 13:33:43 -06:00
Brian
ebe5107669 disable Z value scaling - it's done in sp_quad_depth_test.c 2007-08-16 13:12:24 -06:00
Brian
717cc0f214 move the draw_alloc/free_tmps() functions to draw_prim.c 2007-08-16 12:57:05 -06:00
Brian
fd0a6d6b47 Remove GL/mesa types, rearrange things into more logical groups 2007-08-16 12:57:05 -06:00
michal
4fb2f09fdd Add missing inlcude directory. 2007-08-16 12:50:51 +01:00
michal
cbef86a6ea Copy fragment z if the fragment shader does not write depth on its own.` 2007-08-16 12:44:04 +01:00
Brian
59bd1e260b Drawing code refactoring.
Move code duplicated between draw_vb.c and sp_draw_arrays.c into draw_prim.c
draw_vb.c will eventually go away, but this seems like a good step anyway.
2007-08-16 12:37:26 -06:00
Brian
926323df86 point/line/polygon drawing (factored out of draw_vb.c) 2007-08-16 12:37:25 -06:00
michal
76f9f3ee83 Silence warnings. 2007-08-16 12:17:30 +01:00
michal
4fcfab3347 Silence warnings. 2007-08-16 12:16:57 +01:00
michal
e36b27cf86 Silence warnings. 2007-08-16 12:16:27 +01:00
michal
830169414e Silence warnings. 2007-08-16 12:13:37 +01:00
michal
9982044a8d Use 'f' for float suffix. 2007-08-16 12:12:14 +01:00
Keith Whitwell
b0b871429d Remove mesa include directories, be stricter about include paths. 2007-08-15 23:48:48 +01:00
Brian
5390a43ce0 translate GL texture targets to PIPE_TEXTURE_x values 2007-08-15 19:23:58 -06:00
Brian
94a4910c9a added PIPE_PRIM_x tokens (matching GL), use in a few places 2007-08-15 19:13:03 -06:00
Brian
d9a230f30a Hook in new draw_arrays() code, disabled for now. 2007-08-15 19:04:45 -06:00
Brian
2de9958624 softpipe_draw_arrays() function
Also includes:
  Temporary stand-in for vertex program execution.
  draw_prim() code
  post-transform vertex cache
2007-08-15 19:04:45 -06:00
Brian
ab0b040b60 added new draw_arrays() 2007-08-15 19:04:45 -06:00
Brian
181cf1d52a convert vbo->draw_prims() to pipe->draw_arrays(): works in very limited cases, disabled for now 2007-08-15 19:04:44 -06:00
Brian
3e2be1ce4a added vertex array info fields 2007-08-15 19:04:44 -06:00
Brian
293cc25261 added draw_set_vertex_array_info() 2007-08-15 19:04:44 -06:00
Brian
24083f4e47 comment 2007-08-15 19:04:44 -06:00
michal
058b978a5a Add UsageMask to DECLARATION in TGSI.
Interpolate FS attributes in the shader.
Do not copy WPOS in FS.
2007-08-15 18:16:11 +01:00
michal
b9eeb8dccf Add declaration_semantic token to TGSI.
Cosmetic changes, GLuint -> unsigned.
Preserve mesa gl_fragment_program DEPTH and COLOR semantics.
2007-08-15 13:55:22 +01:00
michal
6504dc3178 Declare fragment shader output registers. 2007-08-15 13:10:25 +01:00
michal
477ab9c196 Cleanup, do not use fp_attr_to_slot[] mapping array. 2007-08-15 13:10:25 +01:00
Brian
bff0411c5a sketch out vbo drawing function 2007-08-15 11:45:54 -06:00
Brian
f300934189 added state funcs for vertex buffer/element info 2007-08-15 11:45:12 -06:00
Brian
3f70b50438 softpipe vertex element/buffer state funcs 2007-08-15 11:44:33 -06:00
Brian
6e02b4c7c3 comments 2007-08-15 11:43:14 -06:00
Brian
c431a22f52 added some const qualifiers 2007-08-15 11:42:53 -06:00
Brian
8038d5b68c comments, minor clean-ups 2007-08-15 11:42:37 -06:00
Brian
681b1ebd5e use regular malloc/free instead of macros 2007-08-14 17:20:40 -06:00
Brian
9623683dfc Merge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch 2007-08-14 15:58:56 -06:00
Brian
267052c735 added glCopyPixels stub 2007-08-14 15:42:40 -06:00
Brian
b7316e4732 fix typo 2007-08-14 15:37:45 -06:00
Brian
d16b4bc32a minor hack to allow 1D textures to work 2007-08-14 15:20:00 -06:00
Brian
bfcc337e38 vars to test 1D/2D textures with linear/nearest filtering 2007-08-14 15:19:37 -06:00
Brian
a34b8594b7 refactor some code - cube map textures work now 2007-08-14 15:12:04 -06:00
Brian
a13de2464d Implement texture cache with multiple, direct-mapped entries. 2007-08-14 14:52:38 -06:00
Brian
c7722edcfd Consolidate filter and mipmap level selection in choose_mipmap_levels(). 2007-08-14 13:32:19 -06:00
Brian
f9e331a574 Implement remaining mipmap modes for 2D textures.
Also, add lodbias param to get_samples()
2007-08-14 13:04:07 -06:00
Brian
b4480285ed tgsi_sampler->get_samples() now operates on a quad (returns 4 colors).
Lambda/level-of-detail is also computed in get_samples() now.
2007-08-14 11:00:35 -06:00
Keith Whitwell
4bb2134239 Beginnings of a demand-filled post-tnl vertex cache.
Probably breaks a bit of stuff, eg unfilled clipping, edgeflags, etc.
2007-08-14 15:57:30 +01:00
Keith Whitwell
8269bc48d8 Add structs and set-functions for vertex buffer, element state.
Not currently used.
2007-08-14 15:57:30 +01:00
Keith Whitwell
2691b18747 Add surface formats to be used for specifying vertex element layouts. 2007-08-14 15:57:30 +01:00
Keith Whitwell
70af238b49 Continue reducing dependencies on core mesa include files.
Mainly down to the support for legacy TNL processing now.
2007-08-14 15:57:30 +01:00
Brian
9f51e181b1 added pixelzoom cmd line opt 2007-08-13 18:20:04 -06:00
Brian
2f605fd457 set renderbuffer Width/Height = texture size 2007-08-13 18:20:04 -06:00