Commit Graph

92185 Commits

Author SHA1 Message Date
Brian 6ef1bdbdaa add some warnings about bitmaps/copypixels 2007-08-24 12:10:31 -06:00
keithw e648a86601 disable debug 2007-08-24 11:25:42 +01:00
keithw d36e01aa94 remove dead file 2007-08-24 11:25:07 +01:00
keithw 7a1027cd40 have to check I915_HW_SAMPLER when emitting MAP state, because of sampler_enable_flags. 2007-08-24 11:25:07 +01:00
keithw b4d8be235b sampler state tweaks 2007-08-24 11:25:06 +01:00
Brian f9a77a3080 Fix user-defined clip planes. They seem to work properly now.
The bits for the N user-defined planes are now set in the vertex_header->clipmask.
See some detailed comments about this in the clip_line() function.
CLIP_USER_BIT no longer exists.
2007-08-24 11:06:13 -06:00
Brian 6a13caec09 re-enable compute_clipmask() call 2007-08-24 11:06:13 -06:00
Brian 6998402016 emit S4_VFMT_XYZ vs. S4_VFMT_XYZW as needed 2007-08-24 11:06:13 -06:00
Keith Whitwell c89502bb4e Fixup include paths after rename 2007-08-24 10:01:20 +01:00
Keith Whitwell f93a360319 Rename tgsi "core" directory 2007-08-24 10:01:03 +01:00
Brian f8e4cf716a remove CallDepth++/-- accidentally removed in prev commit 2007-08-24 08:45:37 +01:00
Adam Jackson 1f8616e622 Unbreak Linux builds with -fvisibility=hidden. 2007-08-23 18:38:02 -04:00
Brian c50e054bd4 track more vertex-related state changes 2007-08-23 21:59:48 +01:00
Brian 7fe0934148 added GL_STENCIL_INDEX8_EXT 2007-08-23 21:59:27 +01:00
Brian 17598ad591 fix-up stencil buffers 2007-08-23 21:59:06 +01:00
Brian ac8249d0ed check for null ptr in xm_buffer_unreference() 2007-08-23 21:39:51 +01:00
Brian 440e794b05 Use vertex_info struct for softpipe - lots of clean-up. 2007-08-23 19:28:59 -06:00
Brian d4883ee24c remove dead code 2007-08-23 19:05:38 -06:00
Brian e967b246ec Vertex shader outputs are now tightly packed into the output slots.
Fix softpipe vertex attribute setup.
Also, update vs constants when the projection matrix changes (fixes samples/prim.c)
2007-08-23 19:03:42 -06:00
Brian 30236573da Need to copy header->edgeflags to tmp when creating new prim_header.
Edge flags were random/undefined otherwise.
2007-08-23 18:54:51 -06:00
Brian c998ce1df0 minor improvement to get_vertex() in-use flag setting 2007-08-23 17:59:17 -06:00
Brian 38091ef42a fix an edgeflag logic error, see comments 2007-08-23 17:57:08 -06:00
Brian eef2e35981 fix incorrect vertex index for POLYGON drawing 2007-08-23 17:41:03 -06:00
Brian d6d995d20c get rid of VERT_RESULT_ usage 2007-08-23 17:40:19 -06:00
Brian 7d5e7f0319 map Mesa vertex attribs/arrays to TGSI attribs 2007-08-23 17:39:52 -06:00
Brian d8b16d416d Checkpoint: new vertex/fragment attribute naming
Replace VF_ATTRIB_x with TGSI_ATTRIB_x
When converting mesa programs to TGSI programs, also convert the InputsRead
and OutputsWritten to a mask of TGSI_ATTRIB_ bits.
Still need to do conversion for vertex programs...
2007-08-23 17:00:47 -06:00
Brian 83547d1dca TGSI_ATTRIB_ tokens 2007-08-23 16:59:08 -06:00
Brian 074f07176a define new TGSI_ATTRIB_ tokens for program inputs/outputs, plus translation functions 2007-08-23 14:58:26 -06:00
Brian ba50b6958a comment about code duplication 2007-08-23 14:56:00 -06:00
Brian 399077d760 clean-up comments 2007-08-23 14:55:43 -06:00
Brian 6d88515190 remove dead/debug code, misc clean-up 2007-08-23 13:41:23 -06:00
Brian d3eb25c575 Checkpoint commit: i915 texture works, use new vertex_info struct
Basic i915 2D texturing seems to work now.
The vertex format is determined from the current fragment shader.
2007-08-23 13:27:18 -06:00
Brian 690a9de40b Define a re-usable vertex_info structure to describe vertex layouts.
This also includes legacy #defines for VF_ATTRIB_*, FRAG_ATTRIB_*, etc tokens.
Those will go away eventually, but at least we no longer need vf/vf.h
2007-08-23 13:25:46 -06:00
Brian ef7c250900 For the time being, interpolate Z in shade_quad() rather in the shader.
This was causing trouble for the i915 driver.
2007-08-23 13:24:06 -06:00
Brian 4b654d41da For _mesa_share_state(), update the context's references to the new share group's objects (Shane Blackett) 2007-08-23 08:53:43 +01:00
Brian dbef6158c6 remove unneeded CallStack array 2007-08-23 08:19:31 +01:00
Brian c990d0fd57 Checkpoint: texture image and sampler state handling, plus better vertex format code.
Texture image/sampler state code should be working, but is disabled for now.
Need to fix outstanding issues with vertex formats and texcoords first...
2007-08-22 18:52:40 -06:00
Brian ace2b98dd3 fix assertions in swizzle() 2007-08-22 18:52:40 -06:00
Brian 69ab4b23f5 more debug output 2007-08-22 18:52:40 -06:00
Brian fa8cbc45e8 Need to store vendor and renderer strings in the context.
As it was, we always returned the same pointer.  So glxinfo, which calls
glGetString() before printing anything, was printing the same string for
both vendor and renderer.
2007-08-22 18:52:40 -06:00
Brian e9190ec534 remove old draw_vertices() 2007-08-22 18:52:39 -06:00
michal e94ea99254 Add deco_caps.c. 2007-08-22 17:37:32 +01:00
michal 89c0d32b45 First pass on tgsi deco. 2007-08-22 17:21:02 +01:00
michal 6b6cc4c0fe Include headers. 2007-08-22 16:38:00 +01:00
michal fa8c74fcc9 New file. 2007-08-22 16:24:35 +01:00
michal d866e648ae New file. 2007-08-22 16:17:41 +01:00
Brian be673e9719 Sampler state code now compiles and is built. Not tested yet. 2007-08-22 13:33:19 -06:00
Brian d45dd5672a added border_color to sampler state 2007-08-22 13:30:26 -06:00
Brian 8a868919b5 Improved pipe_region/surface_reference() functions
Now dereferences the old object first.
Target object may be NULL to clear the pointer.
2007-08-22 12:41:59 -06:00
Brian c0bb4ba9e6 Rework of shader constant buffers.
They're now totally independent of the actual shaders.
Also, implemented in terms of pipe_buffer_handles/objects.
2007-08-22 12:26:46 -06:00