Commit Graph

11185 Commits

Author SHA1 Message Date
Patrice Mandin
24746d0e32 nouveau: nv10: initialize more of nv10 tcl engine 2007-08-22 10:28:13 +02:00
Patrice Mandin
3d508a5d7b nouveau: nv10: Move some initialization stuff 2007-08-21 16:55:42 +02:00
Patrice Mandin
a6d35694c4 nouveau: Use proper notifier object 2007-08-21 16:53:13 +02:00
Patrice Mandin
c6e729377c nouveau: nv10: Remove commented, unsupported by hw command 2007-08-21 16:52:10 +02:00
Patrice Mandin
07b7e97fb4 Use correct object for GART 2007-08-20 19:36:52 +02:00
Brian
d8c6719f95 refactor bounds checking code 2007-08-20 13:12:20 +01:00
Brian
a3c3bc9ece don't map buffer in _mesa_validate_DrawElements() unless needed 2007-08-20 12:56:34 +01:00
Patrice Mandin
ef71a0fd45 nouveau: nv10: only one color buffer atm 2007-08-19 20:12:26 +02:00
Brian
53cf87be1b some fixes for compressed cube maps (bug 11986) 2007-08-18 16:25:16 +01:00
Brian
95e84a09ce remove dead code left over after fixing GL_READ/DRAW_BUFFER state issues 2007-08-18 16:11:31 +01:00
Xiang, Haihao
dcfdb63b9f Brian's fix for bug9829 2007-08-17 13:36:13 -04:00
Xiang, Haihao
00b86ecf6f i965: align width/height for volume texture 2007-08-17 12:42:52 -04:00
Patrice Mandin
b902a223c4 nouveau: nv10: clear a buffer 2007-08-16 21:50:34 +02:00
Patrice Mandin
a60695ebaf nouveau: nv10: add function to clear a buffer 2007-08-16 21:31:30 +02:00
Patrice Mandin
fe78980580 nouveau: store render buffer pointers in context, to access them when clearing buffer 2007-08-16 21:28:40 +02:00
Patrice Mandin
f5ed049655 nouveau: nv10: create objects needed to clear buffer 2007-08-16 20:53:29 +02:00
Brian
32d86eb28a Rework the GL_READ_BUFFER, GL_DRAW_BUFFER state repairs that Roland previously did.
Basically, in update_framebuffer() (which should be called after an FBO is bound
with MakeCurrent or BindFramebuffer) we check if the FBO is a window-system FBO.
If it is, update the FBO's GL_READ/DRAW_BUFFER state according to the context state.
Old code still in place but disabled with #if 0 / #endif.
2007-08-16 18:52:48 +01:00
Brian
c033ccc36d update comments, etc related to Read/DrawBuffer state 2007-08-16 16:49:35 +01:00
Brian
c5a5d12743 remove reference to ctx->Color.DrawBuffer 2007-08-16 16:43:31 +01:00
Brian
09867b53a9 replace Proxy1D/2D/etc fields with ProxyTex[] array 2007-08-16 11:06:39 +01:00
Brian
fe46900703 Replace Proxy1D/2D/etc with ProxyTex[] indexed by TEXTURE_x_INDEX.
Simplification in colortab.c too.
2007-08-16 11:06:13 +01:00
Brian
0135ff512d replace separate 1D/2D/etc fields with an array indexed by texture target 2007-08-16 10:28:23 +01:00
Brian
b3e3e72e25 remove old Saved1D/2D/etc fields 2007-08-16 10:27:24 +01:00
Brian
145d762044 Bring over the texobj refcounting changes from mesa_7_0_branch 2007-08-16 10:05:00 +01:00
Michel Dänzer
2193c4de83 i915tex: Unreference texture buffers on context destruction.
Not doing this could cause the buffers to leak under some circumstances.
2007-08-16 08:46:55 +02:00
Roland Scheidegger
a6d4dddb38 suppress warning about ncon visuals (bug #6689) 2007-08-16 02:41:03 +02: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
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
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
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
Keith Whitwell
6ea55d3525 Make it easier to compare against the pipe driver debug code. 2007-08-11 13:48:19 +01:00
Keith Whitwell
c60113cd41 Improve debugging further.
Pull apart some key packets into individual fields and print sanely.
2007-08-11 13:40:22 +01:00
Keith Whitwell
4a789e408d Better debugging 2007-08-11 09:55:10 +01:00
Xiang, Haihao
db928291dc i965: roland's DXTn format texture patch(bug10347) 2007-08-10 16:37:30 +08:00
Xiang, Haihao
8ea66fa2ec i965/i915tex: applying right alignment to compressed texture,
which make small textures(4x4,2x2,1x1) work well.
2007-08-10 16:23:14 +08:00