mesa.git
16 years agoPlug in selection/feedback code.
Brian [Mon, 17 Sep 2007 20:24:11 +0000 (14:24 -0600)]
Plug in selection/feedback code.

Not quite finished yet.
Selection/feedback are done with a private instance of the 'draw' module
in the state tracker.  Not quite all the draw context's state is set yet,
namely vertex format info.  Hold off on that for a bit...

16 years agoselection/feedback support
Brian [Mon, 17 Sep 2007 20:22:49 +0000 (14:22 -0600)]
selection/feedback support

16 years agos/bugmgr/bufgr/
Brian [Mon, 17 Sep 2007 18:18:32 +0000 (12:18 -0600)]
s/bugmgr/bufgr/

16 years agoMerge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa...
Brian [Mon, 17 Sep 2007 18:07:29 +0000 (12:07 -0600)]
Merge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch

16 years agoRemove non-meaningful region_idle() interface
Keith Whitwell [Mon, 17 Sep 2007 17:02:46 +0000 (18:02 +0100)]
Remove non-meaningful region_idle() interface

This is already handled by the semanics of map(), etc.

16 years agosilence warning
Brian [Mon, 17 Sep 2007 16:05:34 +0000 (10:05 -0600)]
silence warning

16 years agoupdate begin/end_query() functions
Brian [Mon, 17 Sep 2007 16:05:21 +0000 (10:05 -0600)]
update begin/end_query() functions

16 years agoFix linux-dri-x86 build.
Michel Dänzer [Mon, 17 Sep 2007 12:22:51 +0000 (13:22 +0100)]
Fix linux-dri-x86 build.

16 years agointel_winsys: Fix intel_buffer_reference.
Michel Daenzer [Fri, 14 Sep 2007 14:51:00 +0000 (15:51 +0100)]
intel_winsys: Fix intel_buffer_reference.

Correctly clear the pointer to the old buffer (not sure how this could build at
all before...) and only reference the new one when its pointer is non-NULL.

16 years agointel_winsys: Adapt to recent drm changes (s/pipes/planes/).
Michel Daenzer [Fri, 14 Sep 2007 14:48:54 +0000 (15:48 +0100)]
intel_winsys: Adapt to recent drm changes (s/pipes/planes/).

16 years agoImplement query object interface.
Brian [Tue, 11 Sep 2007 22:01:17 +0000 (16:01 -0600)]
Implement query object interface.

This replaces the temporary occlusion counter functions we had before.
Added new ctx->Driver.WaitQuery() function which should block until the result is ready.
Sketch out some code for vertex transformation feedback counters.

16 years agovertex feedback functions
Brian [Mon, 10 Sep 2007 23:02:58 +0000 (17:02 -0600)]
vertex feedback functions

16 years agomerge buffer_unreference(), buffer_reference()
Brian [Mon, 10 Sep 2007 22:52:05 +0000 (16:52 -0600)]
merge buffer_unreference(), buffer_reference()

16 years agoclean-ups, comments
Brian [Mon, 10 Sep 2007 22:35:16 +0000 (16:35 -0600)]
clean-ups, comments

16 years agos/xm_softpipe.c/xm_winsys.c/
Brian [Mon, 10 Sep 2007 22:32:24 +0000 (16:32 -0600)]
s/xm_softpipe.c/xm_winsys.c/

16 years agoRename
Brian [Mon, 10 Sep 2007 22:31:24 +0000 (16:31 -0600)]
Rename

16 years agoMore work on vertex feedback / glRasterPos. Basic rasterpos works now.
Brian [Mon, 10 Sep 2007 22:29:23 +0000 (16:29 -0600)]
More work on vertex feedback / glRasterPos.  Basic rasterpos works now.

16 years agoadded st_cb_rasterpos.c
Brian [Mon, 10 Sep 2007 22:28:39 +0000 (16:28 -0600)]
added st_cb_rasterpos.c

16 years agoplug in rasterpos/feedback code
Brian [Mon, 10 Sep 2007 22:28:27 +0000 (16:28 -0600)]
plug in rasterpos/feedback code

16 years agoglRasterPos function
Brian [Mon, 10 Sep 2007 22:28:10 +0000 (16:28 -0600)]
glRasterPos function

16 years agomove FLUSH_CURRENT
Brian [Mon, 10 Sep 2007 22:27:07 +0000 (16:27 -0600)]
move FLUSH_CURRENT

16 years agoInitial work for post-transformed vertex feedback buffers.
Brian [Thu, 6 Sep 2007 23:07:09 +0000 (17:07 -0600)]
Initial work for post-transformed vertex feedback buffers.

This will be used for:
   GL_NV_transform_feedback, or similar GL3 functionality
   glRasterPos
   GL selection/feedback modes

16 years agoInitial work for post-transform vertex feedback buffers.
Brian [Thu, 6 Sep 2007 23:03:54 +0000 (17:03 -0600)]
Initial work for post-transform vertex feedback buffers.

This will be used for:
  GL_NV_transform_feedback, or GL3 equivalent.
  RasterPos
  GL select/feedback modes

16 years agoMove guts of glRasterPos down into T&L module.
Brian [Thu, 6 Sep 2007 23:02:07 +0000 (17:02 -0600)]
Move guts of glRasterPos down into T&L module.

16 years agoMove guts of glRasterPos into tnl module, called via new ctx->Driver.RasterPos()...
Brian [Thu, 6 Sep 2007 20:26:35 +0000 (14:26 -0600)]
Move guts of glRasterPos into tnl module, called via new ctx->Driver.RasterPos() function.

16 years agomove some protos from draw_vertex.h to draw_private.h
Brian [Fri, 31 Aug 2007 17:28:31 +0000 (11:28 -0600)]
move some protos from draw_vertex.h to draw_private.h

16 years agoDefine attrib_format and interp_mode enum typedefs and use where appropriate.
Brian [Fri, 31 Aug 2007 17:27:16 +0000 (11:27 -0600)]
Define attrib_format and interp_mode enum typedefs and use where appropriate.

16 years agoConsolidate vertex-related code in new draw_vertex.c
Brian [Thu, 30 Aug 2007 22:49:24 +0000 (16:49 -0600)]
Consolidate vertex-related code in new draw_vertex.c

A few functions which were basically duplicated between softpipe and the
i915 driver are now re-used:
  draw_emit_vertex_attr()
  draw_compute_vertex_size()

16 years agoRemove dependency on TGSI_ATTRIB_x tokens in draw_twoside.c
Brian [Thu, 30 Aug 2007 22:37:56 +0000 (16:37 -0600)]
Remove dependency on TGSI_ATTRIB_x tokens in draw_twoside.c

Added a new draw_set_twoside_attributes() function for specifying which
vertex attributes are to be copied/replaced when a polygon is back-facing.

16 years agofix breakage from prev commit
Brian [Thu, 30 Aug 2007 22:04:10 +0000 (16:04 -0600)]
fix breakage from prev commit

16 years agofix unhandled switch/case warning
Brian [Thu, 30 Aug 2007 22:01:23 +0000 (16:01 -0600)]
fix unhandled switch/case warning

16 years agomore usage info
Brian [Thu, 30 Aug 2007 20:44:40 +0000 (14:44 -0600)]
more usage info

16 years agotest flat shading w/ clipping
Brian [Thu, 30 Aug 2007 20:43:59 +0000 (14:43 -0600)]
test flat shading w/ clipping

16 years agoIn draw_flatshade.c use vertex_info->interp_mode[] to choose attribs/colors to cpy.
Brian [Thu, 30 Aug 2007 20:41:23 +0000 (14:41 -0600)]
In draw_flatshade.c use vertex_info->interp_mode[] to choose attribs/colors to cpy.

One less dependency on the TGSI_ATTRIB_x flags.
This requires setting the vertex_info->interp_mode[] values in the i915 driver and passing them to draw_set_vertex_attributes().

16 years agoFix lost edge flags problem when clipping.
Brian [Thu, 30 Aug 2007 20:31:42 +0000 (14:31 -0600)]
Fix lost edge flags problem when clipping.

In emit_poly() we need to compute header.edgeflags from the vertex
edge flags.  Also need to set header.det so later stages can determine
front/back orientation.

16 years agoSketch out per-vertex point size.
Brian [Thu, 30 Aug 2007 17:08:03 +0000 (11:08 -0600)]
Sketch out per-vertex point size.

The code is all in place, but mostly disabled for now:
In t_vp_build.c, write the VERT_RESULT_PSIZE register
In sp_state_derived.c, need to emit vertex point size if drawing points.
In setup_point() use the point size from the vertex.

16 years agoAdd p_compiler.h.
michal [Wed, 29 Aug 2007 21:30:20 +0000 (22:30 +0100)]
Add p_compiler.h.

16 years agoBreak GL dependencies.
michal [Wed, 29 Aug 2007 21:26:23 +0000 (22:26 +0100)]
Break GL dependencies.

16 years agoBreak GL dependencies.
michal [Wed, 29 Aug 2007 21:24:42 +0000 (22:24 +0100)]
Break GL dependencies.

16 years agoBreak GL dependencies.
michal [Wed, 29 Aug 2007 21:22:02 +0000 (22:22 +0100)]
Break GL dependencies.

16 years agoBreak GL dependencies.
michal [Wed, 29 Aug 2007 21:10:00 +0000 (22:10 +0100)]
Break GL dependencies.

16 years agoFix ffs().
michal [Wed, 29 Aug 2007 20:40:18 +0000 (21:40 +0100)]
Fix ffs().

16 years agoSplit out vertex shader/cache/fetch functionality from draw_prim.c
Keith Whitwell [Mon, 27 Aug 2007 18:30:11 +0000 (19:30 +0100)]
Split out vertex shader/cache/fetch functionality from draw_prim.c

16 years agoadd missing files
keithw [Sat, 25 Aug 2007 21:05:16 +0000 (22:05 +0100)]
add missing files

16 years agofix frag vs vertex typo
keithw [Sat, 25 Aug 2007 21:01:03 +0000 (22:01 +0100)]
fix frag vs vertex typo

16 years agoadd names to tracked state atoms to improve debug
keithw [Sat, 25 Aug 2007 21:00:36 +0000 (22:00 +0100)]
add names to tracked state atoms to improve debug

16 years agocheckpoint in constant tracking rework
Keith Whitwell [Fri, 24 Aug 2007 17:30:00 +0000 (18:30 +0100)]
checkpoint in constant tracking rework

16 years agoremove unneeded dirty flag
keithw [Fri, 24 Aug 2007 11:30:28 +0000 (12:30 +0100)]
remove unneeded dirty flag

16 years agocode re-org, minor improvements
Brian [Sat, 25 Aug 2007 01:36:23 +0000 (19:36 -0600)]
code re-org, minor improvements

16 years agos/==/=/
Brian [Sat, 25 Aug 2007 00:50:56 +0000 (18:50 -0600)]
s/==/=/

16 years agoFix fragment program color output mapping (0=depth, 1=color)
Brian [Sat, 25 Aug 2007 00:26:42 +0000 (18:26 -0600)]
Fix fragment program color output mapping (0=depth, 1=color)

16 years agocheck for USE_X86_ASM or SLANG_X86 in st_delete_program()
Brian [Sat, 25 Aug 2007 00:19:50 +0000 (18:19 -0600)]
check for USE_X86_ASM or SLANG_X86 in st_delete_program()

16 years agoset I915_NEW_VERTEX_FORMAT in calculate_vertex_layout(), fixes demos/texenv
Brian [Sat, 25 Aug 2007 00:06:11 +0000 (18:06 -0600)]
set I915_NEW_VERTEX_FORMAT in calculate_vertex_layout(), fixes demos/texenv

16 years agoAdd support for more surface types in sp_surface.c
Brian [Fri, 24 Aug 2007 19:17:08 +0000 (13:17 -0600)]
Add support for more surface types in sp_surface.c

replace PIPE_FORMAT_U_L8_A8 with PIPE_FORMAT_U_A8_L8

16 years agoHook-up SSE2 to VS.
michal [Fri, 24 Aug 2007 16:51:12 +0000 (17:51 +0100)]
Hook-up SSE2 to VS.

16 years agoIndent. Remove GL dependencies. Simplify. Add rtasm instructions.
michal [Fri, 24 Aug 2007 15:23:02 +0000 (16:23 +0100)]
Indent. Remove GL dependencies. Simplify. Add rtasm instructions.

16 years agoAdd tgsi_sse2.
michal [Fri, 24 Aug 2007 11:52:47 +0000 (12:52 +0100)]
Add tgsi_sse2.

16 years agoremove deleted i915_state_fragprog.c
Brian [Fri, 24 Aug 2007 18:38:31 +0000 (12:38 -0600)]
remove deleted i915_state_fragprog.c

16 years agofix a tracking of changed lighting state
Brian [Fri, 24 Aug 2007 18:08:38 +0000 (12:08 -0600)]
fix a tracking of changed lighting state

16 years agoadd some warnings about bitmaps/copypixels
Brian [Fri, 24 Aug 2007 18:08:11 +0000 (12:08 -0600)]
add some warnings about bitmaps/copypixels

16 years agodisable debug
keithw [Fri, 24 Aug 2007 10:23:55 +0000 (11:23 +0100)]
disable debug

16 years agoremove dead file
keithw [Fri, 24 Aug 2007 09:22:37 +0000 (10:22 +0100)]
remove dead file

16 years agohave to check I915_HW_SAMPLER when emitting MAP state, because of sampler_enable_flags.
keithw [Fri, 24 Aug 2007 09:15:06 +0000 (10:15 +0100)]
have to check I915_HW_SAMPLER when emitting MAP state, because of sampler_enable_flags.

16 years agosampler state tweaks
keithw [Fri, 24 Aug 2007 09:09:34 +0000 (10:09 +0100)]
sampler state tweaks

16 years agoFix user-defined clip planes. They seem to work properly now.
Brian [Fri, 24 Aug 2007 17:05:31 +0000 (11:05 -0600)]
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.

16 years agore-enable compute_clipmask() call
Brian [Fri, 24 Aug 2007 15:56:47 +0000 (09:56 -0600)]
re-enable compute_clipmask() call

16 years agoemit S4_VFMT_XYZ vs. S4_VFMT_XYZW as needed
Brian [Fri, 24 Aug 2007 15:52:25 +0000 (09:52 -0600)]
emit S4_VFMT_XYZ vs. S4_VFMT_XYZW as needed

16 years agoFixup include paths after rename
Keith Whitwell [Fri, 24 Aug 2007 09:01:20 +0000 (10:01 +0100)]
Fixup include paths after rename

16 years agoRename tgsi "core" directory
Keith Whitwell [Fri, 24 Aug 2007 09:01:03 +0000 (10:01 +0100)]
Rename tgsi "core" directory

16 years agotrack more vertex-related state changes
Brian [Thu, 23 Aug 2007 20:59:48 +0000 (21:59 +0100)]
track more vertex-related state changes

16 years agoadded GL_STENCIL_INDEX8_EXT
Brian [Thu, 23 Aug 2007 20:59:27 +0000 (21:59 +0100)]
added GL_STENCIL_INDEX8_EXT

16 years agofix-up stencil buffers
Brian [Thu, 23 Aug 2007 20:59:06 +0000 (21:59 +0100)]
fix-up stencil buffers

16 years agocheck for null ptr in xm_buffer_unreference()
Brian [Thu, 23 Aug 2007 20:39:51 +0000 (21:39 +0100)]
check for null ptr in xm_buffer_unreference()

16 years agoUse vertex_info struct for softpipe - lots of clean-up.
Brian [Fri, 24 Aug 2007 01:28:59 +0000 (19:28 -0600)]
Use vertex_info struct for softpipe - lots of clean-up.

16 years agoremove dead code
Brian [Fri, 24 Aug 2007 01:05:38 +0000 (19:05 -0600)]
remove dead code

16 years agoVertex shader outputs are now tightly packed into the output slots.
Brian [Fri, 24 Aug 2007 01:03:42 +0000 (19:03 -0600)]
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)

16 years agoNeed to copy header->edgeflags to tmp when creating new prim_header.
Brian [Fri, 24 Aug 2007 00:54:51 +0000 (18:54 -0600)]
Need to copy header->edgeflags to tmp when creating new prim_header.

Edge flags were random/undefined otherwise.

16 years agominor improvement to get_vertex() in-use flag setting
Brian [Thu, 23 Aug 2007 23:59:17 +0000 (17:59 -0600)]
minor improvement to get_vertex() in-use flag setting

16 years agofix an edgeflag logic error, see comments
Brian [Thu, 23 Aug 2007 23:57:08 +0000 (17:57 -0600)]
fix an edgeflag logic error, see comments

16 years agofix incorrect vertex index for POLYGON drawing
Brian [Thu, 23 Aug 2007 23:41:03 +0000 (17:41 -0600)]
fix incorrect vertex index for POLYGON drawing

16 years agoget rid of VERT_RESULT_ usage
Brian [Thu, 23 Aug 2007 23:40:19 +0000 (17:40 -0600)]
get rid of VERT_RESULT_ usage

16 years agomap Mesa vertex attribs/arrays to TGSI attribs
Brian [Thu, 23 Aug 2007 23:39:52 +0000 (17:39 -0600)]
map Mesa vertex attribs/arrays to TGSI attribs

16 years agoCheckpoint: new vertex/fragment attribute naming
Brian [Thu, 23 Aug 2007 23:00:47 +0000 (17:00 -0600)]
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...

16 years agoTGSI_ATTRIB_ tokens
Brian [Thu, 23 Aug 2007 22:59:08 +0000 (16:59 -0600)]
TGSI_ATTRIB_ tokens

16 years agodefine new TGSI_ATTRIB_ tokens for program inputs/outputs, plus translation functions
Brian [Thu, 23 Aug 2007 20:58:26 +0000 (14:58 -0600)]
define new TGSI_ATTRIB_ tokens for program inputs/outputs, plus translation functions

16 years agocomment about code duplication
Brian [Thu, 23 Aug 2007 20:56:00 +0000 (14:56 -0600)]
comment about code duplication

16 years agoclean-up comments
Brian [Thu, 23 Aug 2007 20:55:43 +0000 (14:55 -0600)]
clean-up comments

16 years agoremove dead/debug code, misc clean-up
Brian [Thu, 23 Aug 2007 19:41:23 +0000 (13:41 -0600)]
remove dead/debug code, misc clean-up

16 years agoCheckpoint commit: i915 texture works, use new vertex_info struct
Brian [Thu, 23 Aug 2007 19:27:18 +0000 (13:27 -0600)]
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.

16 years agoDefine a re-usable vertex_info structure to describe vertex layouts.
Brian [Thu, 23 Aug 2007 19:25:46 +0000 (13:25 -0600)]
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

16 years agoFor the time being, interpolate Z in shade_quad() rather in the shader.
Brian [Thu, 23 Aug 2007 19:24:06 +0000 (13:24 -0600)]
For the time being, interpolate Z in shade_quad() rather in the shader.

This was causing trouble for the i915 driver.

16 years agoCheckpoint: texture image and sampler state handling, plus better vertex format code.
Brian [Thu, 23 Aug 2007 00:51:39 +0000 (18:51 -0600)]
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...

16 years agofix assertions in swizzle()
Brian [Thu, 23 Aug 2007 00:48:28 +0000 (18:48 -0600)]
fix assertions in swizzle()

16 years agomore debug output
Brian [Thu, 23 Aug 2007 00:47:19 +0000 (18:47 -0600)]
more debug output

16 years agoNeed to store vendor and renderer strings in the context.
Brian [Thu, 23 Aug 2007 00:35:50 +0000 (18:35 -0600)]
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.

16 years agoremove old draw_vertices()
Brian [Thu, 23 Aug 2007 00:17:49 +0000 (18:17 -0600)]
remove old draw_vertices()

16 years agoAdd deco_caps.c.
michal [Wed, 22 Aug 2007 16:37:32 +0000 (17:37 +0100)]
Add deco_caps.c.

16 years agoFirst pass on tgsi deco.
michal [Wed, 22 Aug 2007 16:21:02 +0000 (17:21 +0100)]
First pass on tgsi deco.

16 years agoInclude headers.
michal [Wed, 22 Aug 2007 15:38:00 +0000 (16:38 +0100)]
Include headers.

16 years agoNew file.
michal [Wed, 22 Aug 2007 15:24:35 +0000 (16:24 +0100)]
New file.