Commit Graph

74545 Commits

Author SHA1 Message Date
Eric Anholt b6ad5e7de8 Move i915_disasm to later so we can use the hardware offset. 2007-08-16 14:37:26 -07:00
Eric Anholt 64297acf9e Fix bad printf on TTM fence_wait failure. 2007-08-16 14:35:06 -07:00
Eric Anholt 2b77a8696b Don't forget to update buffer offset after validation. 2007-08-16 14:34:24 -07:00
Eric Anholt 327e655119 Add decode for XY_COLOR_BLT and XY_SRC_COPY_BLT. 2007-08-16 14:28:12 -07: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
michal 24b2f30410 Break mesa dependencies.
Silence compiler warnings.
2007-08-16 19:50:08 +01:00
michal f692cdb544 Silence compiler warnings. 2007-08-16 19:49:04 +01:00
michal 1b19aa522a Break mesa dependencies.
Silence compiler warnings.
2007-08-16 19:47:18 +01:00
michal 2f559606dc Silence compiler warnings. 2007-08-16 19:45:55 +01:00
michal 546f1fa019 Define ffs() for __WIN32__ & __MSC__.
Break mesa dependencies.
2007-08-16 19:44:53 +01:00
michal bef9b40c39 Define __WIN32__. 2007-08-16 19:42:28 +01: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
michal 00b7a91508 Move VS code from st_atom_fs.c to st_atom_vs.c. 2007-08-16 18:29:45 +01:00
michal a279b221bf Cosmetic changes. 2007-08-16 18:17:07 +01:00
Brian 3fc926f374 Remove many dependencies on mesa headers.
To build with mesa, need -DMESA in makefile/config file.
2007-08-16 18:11:55 -06:00
Brian e3bdd66bf6 misc changes to support vertex shaders (disabled by default) 2007-08-16 17:33:49 -06:00
Brian bf55f32c6f run real vertex shaders, a total hack for now 2007-08-16 17:33:05 -06:00
Brian 78d6d5e8fe make pass-through vertex shader 2007-08-16 17:32:24 -06:00
Brian 9ba4311e71 check for null swrast (pipe work-around) 2007-08-16 17:30:38 -06:00
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
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
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
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
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