Commit Graph

92185 Commits

Author SHA1 Message Date
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
Brian faa14a9ded check for ctx==NULL in st_renderbuffer_delete() 2007-08-13 14:53:27 -06:00
Brian b7693ee559 Draw white square in lower-left corner to test orientation 2007-08-13 14:00:03 -06:00
Brian 21b9b8b74e fill in the get_tile() function so ReadPixels can work 2007-08-13 13:56:54 -06:00
Brian eb450bbb40 flush pipe before reading image 2007-08-13 13:56:30 -06:00
Brian 9e01b915f1 Implement mutex/locking around texture object reference counting.
Use new _mesa_reference_texobj() function for referencing/unreferencing
textures.  Add new assertions/tests to try to detect invalid usage of
deleted textures.
2007-08-13 11:29:46 +01:00
Brian 6f47250888 added some missing Default1D/2DArray texture code 2007-08-13 11:10:32 +01:00
Xiang, Haihao 88451b04e9 i965: fix projtex_mask
projtex_mask is only an 8bit field, and wm.input_size_masks includes
other attributes' information, therefore right shift is needed.
2007-08-13 17:16:27 +08:00
Xiang, Haihao c9e4aa2b30 i915: satisfy certain alignment restrictions for small
compressed texture
2007-08-13 11:43:37 +08:00
Dan Torop 21b37b9687 fix spantmp2 READ_RGBA inline asm (#11931) 2007-08-12 13:41:13 +02:00
Brian 0095be534d Change/fix surface allocation functions.
Use xmesa_new_color_surface() for front/back renderbuffer surfaces.
Use xmesa_surface_alloc() for everything else (textures, other renderbuffers)
2007-08-11 21:21:12 +01:00
Brian 5d42fdb9b7 mt->pitch must be at least 16 because of 64-byte alignment in sp_region.c (fix that someday) 2007-08-11 21:19:04 +01:00
Brian e209ca866d do clipping in get_tile() 2007-08-11 21:18:33 +01:00