mesa.git
16 years agoImproved pipe_region/surface_reference() functions
Brian [Wed, 22 Aug 2007 18:41:59 +0000 (12:41 -0600)]
Improved pipe_region/surface_reference() functions

Now dereferences the old object first.
Target object may be NULL to clear the pointer.

16 years agoRework of shader constant buffers.
Brian [Wed, 22 Aug 2007 18:24:51 +0000 (12:24 -0600)]
Rework of shader constant buffers.

They're now totally independent of the actual shaders.
Also, implemented in terms of pipe_buffer_handles/objects.

16 years agoImport some sampler state code.
Keith Whitwell [Wed, 22 Aug 2007 09:33:55 +0000 (10:33 +0100)]
Import some sampler state code.

Doesn't compile, isn't built.

16 years agocode movement, null ptr checks, etc
Brian [Wed, 22 Aug 2007 16:04:45 +0000 (10:04 -0600)]
code movement, null ptr checks, etc

16 years agoremove unneeded include
Brian [Wed, 22 Aug 2007 16:04:36 +0000 (10:04 -0600)]
remove unneeded include

16 years agoremove unneeded includes
Brian [Wed, 22 Aug 2007 16:04:16 +0000 (10:04 -0600)]
remove unneeded includes

16 years agoObsolete.
Brian [Wed, 22 Aug 2007 15:41:51 +0000 (09:41 -0600)]
Obsolete.

16 years agodon't need i915_fpc.c
Brian [Wed, 22 Aug 2007 15:41:32 +0000 (09:41 -0600)]
don't need i915_fpc.c

16 years agoimplement negation for src operands
Brian [Wed, 22 Aug 2007 15:41:20 +0000 (09:41 -0600)]
implement negation for src operands

16 years agoClear all the dirtyflag words
Keith Whitwell [Wed, 22 Aug 2007 08:00:51 +0000 (09:00 +0100)]
Clear all the dirtyflag words

16 years agoRemove duplicate i915 shader disassembler
Keith Whitwell [Wed, 22 Aug 2007 07:59:51 +0000 (08:59 +0100)]
Remove duplicate i915 shader disassembler

16 years agoHeaders.
michal [Tue, 21 Aug 2007 19:47:31 +0000 (20:47 +0100)]
Headers.
Fix alignment issues.
Silence compiler warnings.
More debugging code.

16 years agoSilence compiler warnings.
michal [Tue, 21 Aug 2007 19:45:09 +0000 (20:45 +0100)]
Silence compiler warnings.

16 years agoDefine __MSC__.
michal [Tue, 21 Aug 2007 19:42:33 +0000 (20:42 +0100)]
Define __MSC__.
Make ALIGN macros more error-proof.

16 years agotemporarily call _mesa_enable_sw_extensions() so we can run more test progs without...
Brian [Wed, 22 Aug 2007 02:15:00 +0000 (20:15 -0600)]
temporarily call _mesa_enable_sw_extensions() so we can run more test progs without failing the extension checks

16 years agocomments
Brian [Wed, 22 Aug 2007 02:13:53 +0000 (20:13 -0600)]
comments

16 years agoFragment shader translation seems to basically work now. More testing needed.
Brian [Wed, 22 Aug 2007 02:13:31 +0000 (20:13 -0600)]
Fragment shader translation seems to basically work now. More testing needed.

16 years agofix cut and paste
keithw [Tue, 21 Aug 2007 18:49:46 +0000 (19:49 +0100)]
fix cut and paste

16 years agoFirst pass at a fallback concept for pipe devices.
Keith Whitwell [Tue, 21 Aug 2007 18:46:48 +0000 (19:46 +0100)]
First pass at a fallback concept for pipe devices.

Creates a new pipe driver that feeds commands to either a hardware or
software pipe depending on fallback state.

Untested concept checkpoint.  At this point it compiles.

16 years agoAdd missing #include
Keith Whitwell [Thu, 16 Aug 2007 11:41:51 +0000 (12:41 +0100)]
Add missing #include

16 years agoadded fpc sources
Brian [Tue, 21 Aug 2007 22:24:48 +0000 (16:24 -0600)]
added fpc sources

16 years agoInitial check-in of i915 fragment program translation (from tgsi).
Brian [Tue, 21 Aug 2007 22:24:38 +0000 (16:24 -0600)]
Initial check-in of i915 fragment program translation (from tgsi).

16 years agoSet viewport state so viewport matches window dims.
Brian [Mon, 20 Aug 2007 20:45:14 +0000 (21:45 +0100)]
Set viewport state so viewport matches window dims.

trivial/readpixels.c works again.

16 years agoMove vertex transformation/shader code into draw_prim.c to avoid need for vs_flush...
Brian [Tue, 21 Aug 2007 00:53:41 +0000 (18:53 -0600)]
Move vertex transformation/shader code into draw_prim.c to avoid need for vs_flush() function pointer.

16 years agomove ALIGN16-related macros into p_compiler.h
Brian [Tue, 21 Aug 2007 00:45:14 +0000 (18:45 -0600)]
move ALIGN16-related macros into p_compiler.h

16 years agoinclude draw_context.h
Brian [Tue, 21 Aug 2007 00:44:53 +0000 (18:44 -0600)]
include draw_context.h

16 years agoUpdate glClear and glDrawPixels code.
Brian [Tue, 21 Aug 2007 00:24:02 +0000 (18:24 -0600)]
Update glClear and glDrawPixels code.

Since they're implemented by drawing quadrilaterals (and go through vertex
transformation and viewport mapping) we don't have to invert Y coords.

16 years agominor clean-ups
Brian [Mon, 20 Aug 2007 23:26:00 +0000 (17:26 -0600)]
minor clean-ups

16 years agoUse new draw_arrays() code.
Brian [Mon, 20 Aug 2007 23:25:38 +0000 (17:25 -0600)]
Use new draw_arrays() code.

The i915 driver now uses the software-based vertex shader interpreter
and draws everything through pipe->draw_arrays().

16 years agoremove the -DMESA flags
Brian [Mon, 20 Aug 2007 23:02:27 +0000 (17:02 -0600)]
remove the -DMESA flags

16 years agoremove some of the #ifndef MESA stuff
Brian [Mon, 20 Aug 2007 23:02:07 +0000 (17:02 -0600)]
remove some of the #ifndef MESA stuff

16 years agoObsolete
Brian [Mon, 20 Aug 2007 22:48:55 +0000 (16:48 -0600)]
Obsolete

16 years agoremove dead code related to vf module
Brian [Mon, 20 Aug 2007 22:43:58 +0000 (16:43 -0600)]
remove dead code related to vf module

16 years agoCheckpoint: remove more of the old draw_vb() code.
Brian [Mon, 20 Aug 2007 22:31:12 +0000 (16:31 -0600)]
Checkpoint: remove more of the old draw_vb() code.

16 years agoStart to remove the temporary draw_vb() and draw_vertices() code.
Brian [Mon, 20 Aug 2007 22:21:08 +0000 (16:21 -0600)]
Start to remove the temporary draw_vb() and draw_vertices() code.

new st_draw_vertices() utility used by glClear and glDrawPixels

16 years agoMove guts of vertex array drawing into the 'draw' module.
Brian [Mon, 20 Aug 2007 21:11:11 +0000 (15:11 -0600)]
Move guts of vertex array drawing into the 'draw' module.

16 years agoimplement DrawElements, still some rough spots
Brian [Mon, 20 Aug 2007 18:52:33 +0000 (12:52 -0600)]
implement DrawElements, still some rough spots

16 years agoimplement draw_elements()
Brian [Mon, 20 Aug 2007 18:52:00 +0000 (12:52 -0600)]
implement draw_elements()

16 years agodon't map element buffer in _mesa_validate_DrawElements() unless necessary
Brian [Mon, 20 Aug 2007 18:50:34 +0000 (12:50 -0600)]
don't map element buffer in _mesa_validate_DrawElements() unless necessary

16 years agoremove debug printf
Brian [Mon, 20 Aug 2007 17:53:36 +0000 (11:53 -0600)]
remove debug printf

16 years agocall draw_trim()
Brian [Mon, 20 Aug 2007 17:49:16 +0000 (11:49 -0600)]
call draw_trim()

16 years agofix cache overflow bug in get_vertex()
Brian [Mon, 20 Aug 2007 17:41:23 +0000 (11:41 -0600)]
fix cache overflow bug in get_vertex()

16 years agofix VBO clean-up in vbo_exec_vtx_destroy()
Brian [Mon, 20 Aug 2007 17:05:35 +0000 (11:05 -0600)]
fix VBO clean-up in vbo_exec_vtx_destroy()

16 years agoMerge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa...
Brian [Mon, 20 Aug 2007 16:23:28 +0000 (10:23 -0600)]
Merge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch

16 years agoFix some draw_arrays issues.
Brian [Sun, 19 Aug 2007 16:31:21 +0000 (17:31 +0100)]
Fix some draw_arrays issues.

We weren't mapping all the needed vertex array buffers.
Move array state that was temporarily in draw_context to softpipe_context.
Remove a bunch of dead code.

16 years agomore work on vertex shaders, now using vertex shaders instead of TnL module by default
Brian [Sat, 18 Aug 2007 15:06:49 +0000 (16:06 +0100)]
more work on vertex shaders, now using vertex shaders instead of TnL module by default

16 years agoCreate a default vertex attribute buffer which mirrors ctx->Current.Attrrib[]
Brian [Sat, 18 Aug 2007 15:05:49 +0000 (16:05 +0100)]
Create a default vertex attribute buffer which mirrors ctx->Current.Attrrib[]

Used when the vertex shader references attributes which aren't present in VBOs.

16 years agoadded tnl state atom
Brian [Sat, 18 Aug 2007 15:04:49 +0000 (16:04 +0100)]
added tnl state atom

16 years agofix xm_buffer_data
Brian [Sat, 18 Aug 2007 08:22:15 +0000 (09:22 +0100)]
fix xm_buffer_data

16 years agoreplace memcpy() with assignment, better type safety
Brian [Fri, 17 Aug 2007 18:40:35 +0000 (12:40 -0600)]
replace memcpy() with assignment, better type safety

16 years agoadded CLIP_x_SHIFT vals
Brian [Fri, 17 Aug 2007 18:34:40 +0000 (12:34 -0600)]
added CLIP_x_SHIFT vals

16 years agowrite outputs according to vs.outputs_written
Brian [Fri, 17 Aug 2007 18:31:13 +0000 (12:31 -0600)]
write outputs according to vs.outputs_written

16 years agoadded outputs_written field to pipe_shader_state
Brian [Fri, 17 Aug 2007 18:30:30 +0000 (12:30 -0600)]
added outputs_written field to pipe_shader_state

16 years agoload machine.Inputs based on vs.inputs_read
Brian [Fri, 17 Aug 2007 18:23:26 +0000 (12:23 -0600)]
load machine.Inputs based on vs.inputs_read

16 years agoadded pipe ptr to draw_context
Brian [Fri, 17 Aug 2007 18:19:40 +0000 (12:19 -0600)]
added pipe ptr to draw_context

16 years agocompute clipmask
Brian [Fri, 17 Aug 2007 18:09:50 +0000 (12:09 -0600)]
compute clipmask

16 years agodefine CLIP_LEFT/RIGHT etc
Brian [Fri, 17 Aug 2007 18:09:31 +0000 (12:09 -0600)]
define CLIP_LEFT/RIGHT etc

16 years agoshade four vertices at a time
Brian [Fri, 17 Aug 2007 17:40:53 +0000 (11:40 -0600)]
shade four vertices at a time

16 years agoadded align16() function
Brian [Fri, 17 Aug 2007 17:40:06 +0000 (11:40 -0600)]
added align16() function

16 years agoadded uint64 type
Brian [Fri, 17 Aug 2007 17:39:45 +0000 (11:39 -0600)]
added uint64 type

16 years agoadded null VB->AttribPtr[i] check
Brian [Fri, 17 Aug 2007 14:38:29 +0000 (15:38 +0100)]
added null VB->AttribPtr[i] check

16 years agofix edgeflag bug
Brian [Fri, 17 Aug 2007 14:37:22 +0000 (15:37 +0100)]
fix edgeflag bug

16 years agopack output vertex attributes in sequential slots
Brian [Fri, 17 Aug 2007 14:28:17 +0000 (15:28 +0100)]
pack output vertex attributes in sequential slots

16 years agotell vbo module to use bufferobjs
Brian [Fri, 17 Aug 2007 14:27:18 +0000 (15:27 +0100)]
tell vbo module to use bufferobjs

16 years agoadded call to _mesa_load_state_parameters()
Brian [Fri, 17 Aug 2007 14:27:00 +0000 (15:27 +0100)]
added call to _mesa_load_state_parameters()

16 years agoadded vbo_use_buffer_objects() to specify that immediate mode data should be put...
Brian [Fri, 17 Aug 2007 14:26:33 +0000 (15:26 +0100)]
added vbo_use_buffer_objects() to specify that immediate mode data should be put into bufferobjects

16 years agoreplace assertion w/ conditionals in xmesa_clear()
Brian [Fri, 17 Aug 2007 09:50:06 +0000 (10:50 +0100)]
replace assertion w/ conditionals in xmesa_clear()

16 years agoUse simple st->pipe->clear() in more cases for depth/stencil clears.
Brian [Fri, 17 Aug 2007 09:49:36 +0000 (10:49 +0100)]
Use simple st->pipe->clear() in more cases for depth/stencil clears.

16 years agofix buffer clearing problems
Brian [Fri, 17 Aug 2007 09:28:20 +0000 (10:28 +0100)]
fix buffer clearing problems

16 years agoassertions
Brian [Fri, 17 Aug 2007 09:27:53 +0000 (10:27 +0100)]
assertions

16 years agoadded assertions, disable debug output
Brian [Fri, 17 Aug 2007 09:27:37 +0000 (10:27 +0100)]
added assertions, disable debug output

16 years agoBreak mesa dependencies.
michal [Thu, 16 Aug 2007 18:50:08 +0000 (19:50 +0100)]
Break mesa dependencies.
Silence compiler warnings.

16 years agoSilence compiler warnings.
michal [Thu, 16 Aug 2007 18:49:04 +0000 (19:49 +0100)]
Silence compiler warnings.

16 years agoBreak mesa dependencies.
michal [Thu, 16 Aug 2007 18:47:18 +0000 (19:47 +0100)]
Break mesa dependencies.
Silence compiler warnings.

16 years agoSilence compiler warnings.
michal [Thu, 16 Aug 2007 18:45:55 +0000 (19:45 +0100)]
Silence compiler warnings.

16 years agoDefine ffs() for __WIN32__ & __MSC__.
michal [Thu, 16 Aug 2007 18:44:53 +0000 (19:44 +0100)]
Define ffs() for __WIN32__ & __MSC__.
Break mesa dependencies.

16 years agoDefine __WIN32__.
michal [Thu, 16 Aug 2007 18:42:28 +0000 (19:42 +0100)]
Define __WIN32__.

16 years agoMove VS code from st_atom_fs.c to st_atom_vs.c.
michal [Thu, 16 Aug 2007 17:29:45 +0000 (18:29 +0100)]
Move VS code from st_atom_fs.c to st_atom_vs.c.

16 years agoCosmetic changes.
michal [Thu, 16 Aug 2007 17:16:32 +0000 (18:16 +0100)]
Cosmetic changes.

16 years agoRemove many dependencies on mesa headers.
Brian [Fri, 17 Aug 2007 00:11:55 +0000 (18:11 -0600)]
Remove many dependencies on mesa headers.

To build with mesa, need -DMESA in makefile/config file.

16 years agomisc changes to support vertex shaders (disabled by default)
Brian [Thu, 16 Aug 2007 23:33:49 +0000 (17:33 -0600)]
misc changes to support vertex shaders (disabled by default)

16 years agorun real vertex shaders, a total hack for now
Brian [Thu, 16 Aug 2007 23:33:05 +0000 (17:33 -0600)]
run real vertex shaders, a total hack for now

16 years agomake pass-through vertex shader
Brian [Thu, 16 Aug 2007 23:32:24 +0000 (17:32 -0600)]
make pass-through vertex shader

16 years agocheck for null swrast (pipe work-around)
Brian [Thu, 16 Aug 2007 23:30:38 +0000 (17:30 -0600)]
check for null swrast (pipe work-around)

16 years agoBegin added vertex shader state/support.
Brian [Thu, 16 Aug 2007 19:33:43 +0000 (13:33 -0600)]
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.

16 years agodisable Z value scaling - it's done in sp_quad_depth_test.c
Brian [Thu, 16 Aug 2007 19:12:24 +0000 (13:12 -0600)]
disable Z value scaling - it's done in sp_quad_depth_test.c

16 years agomove the draw_alloc/free_tmps() functions to draw_prim.c
Brian [Thu, 16 Aug 2007 18:55:47 +0000 (12:55 -0600)]
move the draw_alloc/free_tmps() functions to draw_prim.c

16 years agoRemove GL/mesa types, rearrange things into more logical groups
Brian [Thu, 16 Aug 2007 18:52:20 +0000 (12:52 -0600)]
Remove GL/mesa types, rearrange things into more logical groups

16 years agoAdd missing inlcude directory.
michal [Thu, 16 Aug 2007 11:50:51 +0000 (12:50 +0100)]
Add missing inlcude directory.

16 years agoCopy fragment z if the fragment shader does not write depth on its own.`
michal [Thu, 16 Aug 2007 11:40:46 +0000 (12:40 +0100)]
Copy fragment z if the fragment shader does not write depth on its own.`

16 years agoDrawing code refactoring.
Brian [Thu, 16 Aug 2007 18:36:17 +0000 (12:36 -0600)]
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.

16 years agopoint/line/polygon drawing (factored out of draw_vb.c)
Brian [Thu, 16 Aug 2007 18:35:13 +0000 (12:35 -0600)]
point/line/polygon drawing (factored out of draw_vb.c)

16 years agoSilence warnings.
michal [Thu, 16 Aug 2007 11:17:30 +0000 (12:17 +0100)]
Silence warnings.

16 years agoSilence warnings.
michal [Thu, 16 Aug 2007 11:16:57 +0000 (12:16 +0100)]
Silence warnings.

16 years agoSilence warnings.
michal [Thu, 16 Aug 2007 11:16:27 +0000 (12:16 +0100)]
Silence warnings.

16 years agoSilence warnings.
michal [Thu, 16 Aug 2007 11:13:37 +0000 (12:13 +0100)]
Silence warnings.

16 years agoUse 'f' for float suffix.
michal [Thu, 16 Aug 2007 11:12:14 +0000 (12:12 +0100)]
Use 'f' for float suffix.

16 years agoRemove mesa include directories, be stricter about include paths.
Keith Whitwell [Wed, 15 Aug 2007 14:12:03 +0000 (15:12 +0100)]
Remove mesa include directories, be stricter about include paths.

16 years agotranslate GL texture targets to PIPE_TEXTURE_x values
Brian [Thu, 16 Aug 2007 01:23:58 +0000 (19:23 -0600)]
translate GL texture targets to PIPE_TEXTURE_x values

16 years agoadded PIPE_PRIM_x tokens (matching GL), use in a few places
Brian [Thu, 16 Aug 2007 01:13:03 +0000 (19:13 -0600)]
added PIPE_PRIM_x tokens (matching GL), use in a few places