Commit graph

115447 commits

Author SHA1 Message Date
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
Xiang, Haihao
ab99960858 i965: use BRW_TEXCOORDMODE_CLAMP instead of BRW_TEXCOORDMODE_CLAMP_BORDER
to implement GL_CLAMP
2007-08-15 13:28:00 +08:00
Ben Skeggs
c2ac825e67 nouveau: Use half the notifier block for query objects. 2007-08-15 14:31:26 +10:00
Ben Skeggs
ecfa3e4d0a nouveau: Keep drm channel alloc struct around. 2007-08-15 14:31:26 +10:00
Ben Skeggs
3cc4e9815d nouveau: reindent nouveau_span.c 2007-08-15 14:31:26 +10:00
Ben Skeggs
fcbd06d201 nouveau: Remove ALLOW_MULTI_SUBCHANNEL hack
Irrelevant, since we depend on working context switching now.
2007-08-15 14:31:25 +10:00
Ben Skeggs
fef3dcbee6 nouveau: Always render offscreen, emulate front buffer rendering. 2007-08-15 14:31:25 +10:00
Ben Skeggs
b7c93de6d7 nouveau: Split nouveau_buffers into nouveau_mem and nouveau_fbo 2007-08-15 14:31:25 +10:00
Ben Skeggs
40e8ce700b nouveau: reindent nouveau_buffers.h 2007-08-15 14:31:25 +10:00
Ben Skeggs
386a70eeb5 nouveau: reindent nouveau_buffers.c 2007-08-15 14:31:25 +10:00
Ben Skeggs
553f5759a6 nouveau: Lets only do private buffers. 2007-08-15 14:31:25 +10: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
dc73217294 Fix a few more problems with freeing FBOs/textures during context destruction.
Free FBOs before textures since the later may be referenced by the former.
Need to bind the context we're destroying if there isn't a current context
so that ctx->DeleteTexture() etc can be used.
2007-08-14 11:58:37 +01:00
Xiang, Haihao
5dab3bf4bc xdemo case: Wei Wang's patch for bug#9759 2007-08-14 11:39:23 +08: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
Brian
4698483f84 Added st_fb_orientation() function to determine the up/down orientation of the framebuffer. 2007-08-13 18:20:04 -06:00
Brian
cd308dfa79 map stencil buffer too 2007-08-13 18:20:04 -06:00
Brian
612cfb749c added assertion to check that texture width is non-zero 2007-08-13 18:20:04 -06:00
Brian
5e1bfe426f fix up some render-to-texture code ... almost there 2007-08-13 18:20:04 -06:00
Brian
8571c4babf added an assertion 2007-08-13 18:20:03 -06:00
Brian
393a625538 free any render/framebuffers left in hash tables when freeing shared state 2007-08-13 17:39:29 +01:00
Michel Dänzer
b7a9222dc7 i915tex: Make sure pitch is aligned properly for render-to-texture.
Just always align texture pitch to multiples of 64 bytes for now, pending a
more sophisticated scheme to do it only when really necessary.
2007-08-13 17:58:45 +02:00
Keith Whitwell
76818b6709 Missing files 2007-08-13 16:24:24 +01:00
Keith Whitwell
40a86b2047 Start breaking the #include dependencies between pipe drivers and mesa.
Pipe drivers shouldn't really know much about mesa and certainly shouldn't
be #including files from src/mesa/main and the like.

I've also (in i915simple especially) moved over from GL types to
more conventional int/unsigned usage.  This probably isn't really the
ultimate desired set of types to use - possibly C99 would be better.  It
may even be that a subset of the GL types is preferable.
2007-08-13 16:23:44 +01:00
Brian
d46779103b check if we have a zbuf before enabling depth_test stage 2007-08-13 15:21:01 -06:00
Brian
8cc668a4a8 fix some issues with texture/mipmap_tree state tracking 2007-08-13 15:20:08 -06:00
Brian
c271078048 with Y=0=top, front/back determination is negated 2007-08-13 15:02:50 -06:00