mesa.git
16 years agoremove FX/glide stuff
Brian [Wed, 31 Oct 2007 20:33:49 +0000 (14:33 -0600)]
remove FX/glide stuff

16 years agoremove tnl/swrast code
Brian [Wed, 31 Oct 2007 20:32:16 +0000 (14:32 -0600)]
remove tnl/swrast code

16 years agoObsolete
Brian [Wed, 31 Oct 2007 20:30:20 +0000 (14:30 -0600)]
Obsolete

16 years agoremove dead swrast/tnl code
Brian [Wed, 31 Oct 2007 20:29:36 +0000 (14:29 -0600)]
remove dead swrast/tnl code

16 years agodisable swrast/tnl stuff
Brian [Wed, 31 Oct 2007 20:28:05 +0000 (14:28 -0600)]
disable swrast/tnl stuff

16 years agoremove Draw/CopyPixels functions
Brian [Wed, 31 Oct 2007 20:27:38 +0000 (14:27 -0600)]
remove Draw/CopyPixels functions

16 years agoomit X point/line/triangle routines
Brian [Wed, 31 Oct 2007 20:22:49 +0000 (14:22 -0600)]
omit X point/line/triangle routines

16 years agoswitch to Xlib driver in pipe/xlib/
Brian [Wed, 31 Oct 2007 20:19:31 +0000 (14:19 -0600)]
switch to Xlib driver in pipe/xlib/

16 years agoCopy of xlib driver. This will get trimmed down a lot for Gallium.
Brian [Wed, 31 Oct 2007 20:19:09 +0000 (14:19 -0600)]
Copy of xlib driver.  This will get trimmed down a lot for Gallium.

16 years agoUpdate texenvprogram.c code to use prog_cache.c routines.
Brian [Wed, 31 Oct 2007 18:45:32 +0000 (12:45 -0600)]
Update texenvprogram.c code to use prog_cache.c routines.

16 years agoremove dead program cache code
Brian [Wed, 31 Oct 2007 18:34:09 +0000 (12:34 -0600)]
remove dead program cache code

16 years agoNo longer need st_update_tnl atom
Brian [Wed, 31 Oct 2007 18:31:25 +0000 (12:31 -0600)]
No longer need st_update_tnl atom

16 years agoNo longer need st_update_tnl atom.
Brian [Wed, 31 Oct 2007 18:30:56 +0000 (12:30 -0600)]
No longer need st_update_tnl atom.

16 years agomore flags for MaintainTnlProgram case, update #includes
Brian [Wed, 31 Oct 2007 18:27:47 +0000 (12:27 -0600)]
more flags for MaintainTnlProgram case, update #includes

16 years agoUse ffvertex_prog.c code instead of t_vp_build.c code.
Brian [Wed, 31 Oct 2007 18:17:32 +0000 (12:17 -0600)]
Use ffvertex_prog.c code instead of t_vp_build.c code.

16 years agofix some breakage from lifting vbo/tnl code
Brian [Wed, 31 Oct 2007 18:12:37 +0000 (12:12 -0600)]
fix some breakage from lifting vbo/tnl code

16 years agoLift fixed function vertex program generation up from tnl module.
Brian [Wed, 31 Oct 2007 18:03:55 +0000 (12:03 -0600)]
Lift fixed function vertex program generation up from tnl module.

16 years agofix type for Samplers field
Brian [Wed, 31 Oct 2007 18:01:08 +0000 (12:01 -0600)]
fix type for Samplers field

16 years agoalloc caches for fixed-func vertex/fragment progs
Brian [Wed, 31 Oct 2007 18:00:38 +0000 (12:00 -0600)]
alloc caches for fixed-func vertex/fragment progs

16 years agomove a few lines of code
Brian [Wed, 31 Oct 2007 18:07:03 +0000 (12:07 -0600)]
move a few lines of code

16 years agoLift VBO/tnl stuff up out of drivers
Brian [Wed, 31 Oct 2007 17:35:50 +0000 (11:35 -0600)]
Lift VBO/tnl stuff up out of drivers

16 years agoremove intelInvalidateState
Brian [Wed, 31 Oct 2007 17:08:31 +0000 (11:08 -0600)]
remove intelInvalidateState

16 years agoplug st_invalidate_state() into ctx->Driver.UpdateState
Brian [Wed, 31 Oct 2007 17:08:07 +0000 (11:08 -0600)]
plug st_invalidate_state() into ctx->Driver.UpdateState

Start lifting Mesa stuff up out of winsys/driver code.

16 years agore-enable fb size assertions which were previously disabled
Brian [Wed, 31 Oct 2007 16:52:44 +0000 (10:52 -0600)]
re-enable fb size assertions which were previously disabled

16 years agoHold the vertex buffer handle.
José Fonseca [Wed, 31 Oct 2007 15:11:18 +0000 (15:11 +0000)]
Hold the vertex buffer handle.

16 years agoHandle TGSI_OPCODE_RET.
José Fonseca [Wed, 31 Oct 2007 14:58:43 +0000 (14:58 +0000)]
Handle TGSI_OPCODE_RET.

16 years agoAllow more verbose error output.
José Fonseca [Wed, 31 Oct 2007 14:16:00 +0000 (14:16 +0000)]
Allow more verbose error output.

16 years agoChain vertex buffers into the batch buffer.
José Fonseca [Wed, 31 Oct 2007 13:20:01 +0000 (13:20 +0000)]
Chain vertex buffers into the batch buffer.

16 years agoImplement shader concatenation for glBitmap.
Brian [Wed, 31 Oct 2007 00:38:32 +0000 (18:38 -0600)]
Implement shader concatenation for glBitmap.

16 years agofix InputsRead bug in _mesa_combine_programs()
Brian [Wed, 31 Oct 2007 00:26:34 +0000 (18:26 -0600)]
fix InputsRead bug in _mesa_combine_programs()

16 years agospecial-case KIL/KIL_NV
Brian [Wed, 31 Oct 2007 00:24:54 +0000 (18:24 -0600)]
special-case KIL/KIL_NV

16 years agocombine shaders for glCopyPixels
Brian [Tue, 30 Oct 2007 23:46:40 +0000 (17:46 -0600)]
combine shaders for glCopyPixels

16 years agoUse program serial numbers to avoid re-generating fragment programs for glDrawPixels.
Brian [Tue, 30 Oct 2007 22:13:37 +0000 (16:13 -0600)]
Use program serial numbers to avoid re-generating fragment programs for glDrawPixels.

16 years agoBefore calling texformat->StoreImage() set _ImageTransferState=0 since we'll do pixel...
Brian [Tue, 30 Oct 2007 19:55:56 +0000 (13:55 -0600)]
Before calling texformat->StoreImage() set _ImageTransferState=0 since we'll do pixel transfer in the fragment program.

16 years agocolor matrix
Brian [Tue, 30 Oct 2007 19:54:24 +0000 (13:54 -0600)]
color matrix

16 years agomore additions for COLOR_MATRIX, etc
Brian [Tue, 30 Oct 2007 19:53:38 +0000 (13:53 -0600)]
more additions for COLOR_MATRIX, etc

16 years agoadd state vars for color matrix, pixel transfer scale&bias
Brian [Tue, 30 Oct 2007 18:39:58 +0000 (12:39 -0600)]
add state vars for color matrix, pixel transfer scale&bias

16 years agostart using program cache
Brian [Tue, 30 Oct 2007 18:24:27 +0000 (12:24 -0600)]
start using program cache

16 years agoadded pixel_transfer_cache
Brian [Tue, 30 Oct 2007 18:24:05 +0000 (12:24 -0600)]
added pixel_transfer_cache

16 years agoadded prog_cache.c
Brian [Tue, 30 Oct 2007 18:23:37 +0000 (12:23 -0600)]
added prog_cache.c

16 years agoProgram cache functions.
Brian [Tue, 30 Oct 2007 18:23:22 +0000 (12:23 -0600)]
Program cache functions.

Generic version of cache code from texenvprogram.c and t_vp_build.c
Not used by those files just yet, will also be used for pixel_transfer programs.

16 years agotgsi_translate_mesa_program: Don't crash when program->Parameters == NULL.
Michel Dänzer [Tue, 30 Oct 2007 17:36:05 +0000 (18:36 +0100)]
tgsi_translate_mesa_program: Don't crash when program->Parameters == NULL.

16 years agoDisable debug code.
Brian [Tue, 30 Oct 2007 17:32:16 +0000 (11:32 -0600)]
Disable debug code.

Basic code for PixelTranslfer ops and glDrawPixels works now.
A pixel transfer program is generated and combined with the current
fragment shader.

16 years agoRemove obsolete files
Brian [Tue, 30 Oct 2007 17:19:31 +0000 (11:19 -0600)]
Remove obsolete files

16 years agoRename file since it's now a state atom
Brian [Tue, 30 Oct 2007 17:18:31 +0000 (11:18 -0600)]
Rename file since it's now a state atom

16 years agocheckpoint: combine pixel transfer and user shader for glDrawPixels
Brian [Tue, 30 Oct 2007 17:16:55 +0000 (11:16 -0600)]
checkpoint: combine pixel transfer and user shader for glDrawPixels

16 years agomake st_upload_constants() public
Brian [Tue, 30 Oct 2007 17:16:26 +0000 (11:16 -0600)]
make st_upload_constants() public

16 years agoadded pixel_transfer_program field
Brian [Tue, 30 Oct 2007 17:15:59 +0000 (11:15 -0600)]
added pixel_transfer_program field

16 years agoadded st_update_pixel_transfer atom
Brian [Tue, 30 Oct 2007 17:15:29 +0000 (11:15 -0600)]
added st_update_pixel_transfer atom

16 years agobug fixes, implement state atom for pixel transfer
Brian [Tue, 30 Oct 2007 17:15:09 +0000 (11:15 -0600)]
bug fixes, implement state atom for pixel transfer

16 years agocheck for NULL ptr in _mesa_print_parameter_list()
Brian [Tue, 30 Oct 2007 17:14:33 +0000 (11:14 -0600)]
check for NULL ptr in _mesa_print_parameter_list()

16 years agoSet _NEW_BUFFERS in glRead/DrawBuffer().
Brian [Mon, 29 Oct 2007 23:36:39 +0000 (17:36 -0600)]
Set _NEW_BUFFERS in glRead/DrawBuffer().

Previously, we set _NEW_PIXEL and _NEW_COLOR in these functions, respectively.
That correponds to the GL attribute groups, but doesn't make much sense
otherwise.  This could improve validation efficiency in a few places too.
It looks like all the drivers are already checking for _NEW_BUFFERS in the
right places (since that's the bit for FBO state) so we can trim out
_NEW_PIXEL and _NEW_COLOR at any time.

16 years agocomment unused 'cb' field
Brian [Mon, 29 Oct 2007 23:32:42 +0000 (17:32 -0600)]
comment unused 'cb' field

16 years agoupdate comments, fix typo
Brian [Mon, 29 Oct 2007 23:14:23 +0000 (17:14 -0600)]
update comments, fix typo

16 years agomake _mesa_combine_programs() params const
Brian [Mon, 29 Oct 2007 22:38:53 +0000 (16:38 -0600)]
make _mesa_combine_programs() params const

16 years agoadded st_pixeltransfer.c
Brian [Mon, 29 Oct 2007 22:38:23 +0000 (16:38 -0600)]
added st_pixeltransfer.c

16 years agoInitial version of st_get_pixel_transfer_program().
Brian [Mon, 29 Oct 2007 22:37:49 +0000 (16:37 -0600)]
Initial version of st_get_pixel_transfer_program().

For generating fragment programs which implement pixel transfer ops.

16 years agoAdded _mesa_combine_programs() for concatenating two programs.
Brian [Mon, 29 Oct 2007 22:35:59 +0000 (16:35 -0600)]
Added _mesa_combine_programs() for concatenating two programs.

16 years agoadded _mesa_combine_parameter_lists()
Brian [Mon, 29 Oct 2007 22:00:08 +0000 (16:00 -0600)]
added _mesa_combine_parameter_lists()

16 years agoSwitch to using LLVM builder.
Zack Rusin [Tue, 30 Oct 2007 13:00:36 +0000 (09:00 -0400)]
Switch to using LLVM builder.

Instead of creating all the instructions by hand, switching
to using LLVMBuilder.

16 years agoRefactor vector extraction.
Zack Rusin [Tue, 30 Oct 2007 11:43:02 +0000 (07:43 -0400)]
Refactor vector extraction.

16 years agoExport true C based builtins to a file of its own.
Zack Rusin [Tue, 30 Oct 2007 11:16:22 +0000 (07:16 -0400)]
Export true C based builtins to a file of its own.

16 years agoRename to better reflect what it's really doing.
Zack Rusin [Tue, 30 Oct 2007 10:55:08 +0000 (06:55 -0400)]
Rename to better reflect what it's really doing.

16 years agoCode cleanups.
Zack Rusin [Tue, 30 Oct 2007 10:33:30 +0000 (06:33 -0400)]
Code cleanups.

16 years agoCleanup constant vector handling a bit.
Zack Rusin [Mon, 29 Oct 2007 17:42:58 +0000 (13:42 -0400)]
Cleanup constant vector handling a bit.

16 years agoDump only relevant functions when in the debugging output.
Zack Rusin [Mon, 29 Oct 2007 17:20:55 +0000 (13:20 -0400)]
Dump only relevant functions when in the debugging output.

16 years agoChange the way we handle temporaries in LLVM translation.
Zack Rusin [Mon, 29 Oct 2007 15:42:22 +0000 (11:42 -0400)]
Change the way we handle temporaries in LLVM translation.

TGSI uses TEMP, among others, as a way of passing arguments
from one function to another. Instead of trying to figure out
which temp's a function needs and trying to dynamically adjust its
signature just pass the whole array of temporaries to them.

16 years agoEnable immediates in TGSI and work with them in LLVM code.
Zack Rusin [Mon, 29 Oct 2007 14:59:24 +0000 (10:59 -0400)]
Enable immediates in TGSI and work with them in LLVM code.

Enables immediates by default in the TGSI translation code
and adds code handling it in llvm tgsi translation.

16 years agominor code simplification
Brian [Mon, 29 Oct 2007 21:08:43 +0000 (15:08 -0600)]
minor code simplification

16 years agofix memcpy bugs
Brian [Mon, 29 Oct 2007 21:07:23 +0000 (15:07 -0600)]
fix memcpy bugs

16 years agoRewrite update_program() to use _mesa_get_fixed_func_fragment/vertex_program().
Brian [Mon, 29 Oct 2007 20:13:57 +0000 (14:13 -0600)]
Rewrite update_program() to use _mesa_get_fixed_func_fragment/vertex_program().

16 years agoRemove ctx field from texenvprog_cache
Brian [Mon, 29 Oct 2007 18:25:46 +0000 (12:25 -0600)]
Remove ctx field from texenvprog_cache

16 years agorefactoring to begin removing dependency on tnl context
Brian [Mon, 29 Oct 2007 18:18:58 +0000 (12:18 -0600)]
refactoring to begin removing dependency on tnl context

16 years agosimplify getting of current frag prog
Brian [Mon, 29 Oct 2007 17:54:13 +0000 (11:54 -0600)]
simplify getting of current frag prog

16 years agoRefactor _tnl_UpdateFixedFunctionProgram().
Brian [Mon, 29 Oct 2007 17:30:09 +0000 (11:30 -0600)]
Refactor _tnl_UpdateFixedFunctionProgram().

New _mesa_get_fixed_func_vertex_program() function...

16 years agoRefactor _mesa_UpdateTexEnvProgram()
Brian [Mon, 29 Oct 2007 17:23:02 +0000 (11:23 -0600)]
Refactor _mesa_UpdateTexEnvProgram()

Will be replaced by _mesa_get_fixed_func_fragment_program().

16 years agoRename 'mms-config.' to 'mms.config'.
Michal Krol [Mon, 29 Oct 2007 19:50:10 +0000 (19:50 +0000)]
Rename 'mms-config.' to 'mms.config'.

It looks like Windows does not like filenames ending with a dot,
in effect renaming it to 'mms-config'.

16 years agoUpdate intel_is_format_supported.
José Fonseca [Mon, 29 Oct 2007 17:36:37 +0000 (17:36 +0000)]
Update intel_is_format_supported.

16 years agoAdd detailed comments.
Michal Krol [Mon, 29 Oct 2007 17:36:20 +0000 (17:36 +0000)]
Add detailed comments.

16 years agoMake it compile under linux.
Michal Krol [Mon, 29 Oct 2007 16:59:57 +0000 (16:59 +0000)]
Make it compile under linux.

Move pipe_region/surface_reference functions to pipe/p_inlines.h.
Remove #include "p_util.h" from pipe/p_context.h.

16 years agoMake gallium compile in win32.
Michal Krol [Mon, 29 Oct 2007 16:20:45 +0000 (16:20 +0000)]
Make gallium compile in win32.

Use FREE, MALLOC, CALLOC, GETENV wrappers.
Silence compiler warnings.
Add proper copyrights.

16 years agoremove dead code
Brian [Mon, 29 Oct 2007 16:37:12 +0000 (10:37 -0600)]
remove dead code

16 years agocheck for signed vs. unsigned in st_get_format_info() - fixes accum buffer failure
Brian [Mon, 29 Oct 2007 16:36:10 +0000 (10:36 -0600)]
check for signed vs. unsigned in st_get_format_info() - fixes accum buffer failure

16 years agofix bad fragment shader pointer assignment
Brian [Mon, 29 Oct 2007 15:41:53 +0000 (09:41 -0600)]
fix bad fragment shader pointer assignment

16 years agosimplify code which access the current vertex/fragment shaders
Brian [Mon, 29 Oct 2007 15:24:29 +0000 (09:24 -0600)]
simplify code which access the current vertex/fragment shaders

16 years agoDisable the else clause which assigns the default fragment program to ctx->FragmentPr...
Brian [Mon, 29 Oct 2007 15:23:46 +0000 (09:23 -0600)]
Disable the else clause which assigns the default fragment program to ctx->FragmentProgram._Current

The _Current field should either point to the fragment program which is to be
run (GLSL, ARB_f_p, fixed-func-generated, etc) or be NULL if conventional
fixed-function code is to be used.  Matches TNL program code.

16 years agoRemove conditionals from the makefiles.
Zack Rusin [Mon, 29 Oct 2007 14:01:29 +0000 (10:01 -0400)]
Remove conditionals from the makefiles.

16 years agoRemove typedefs from enums.
Zack Rusin [Mon, 29 Oct 2007 12:35:08 +0000 (08:35 -0400)]
Remove typedefs from enums.

typedefs are rather evil, remove them and use the enum
keyword explicitely.

16 years agoRefactor the LLVM code a bit.
Zack Rusin [Mon, 29 Oct 2007 12:27:32 +0000 (08:27 -0400)]
Refactor the LLVM code a bit.

Move the CPU vertex shader execution code to the draw
module, remove traces of LLVM from the state tracker,
abstract execution engine for the purposes of the draw module.

16 years agoMake sure the swizzling vector is being recreated for each function. This makes
Zack Rusin [Fri, 26 Oct 2007 23:53:53 +0000 (19:53 -0400)]
Make sure the swizzling vector is being recreated for each function. This makes

GLSL bricks work.

16 years agoAdd SSE dump facilities.
Michal Krol [Mon, 29 Oct 2007 13:21:17 +0000 (13:21 +0000)]
Add SSE dump facilities.

Wrap x86_, sse_ and sse2 rtasm calls in emit_ calls.
Those emit_ calls, if required, dump instructions to stdout.
SSE dumping disabled by default.

16 years agoCode re-org. Add comments.
Michal Krol [Mon, 29 Oct 2007 12:14:54 +0000 (12:14 +0000)]
Code re-org. Add comments.

16 years agoImplement RET opcode.
Michal Krol [Mon, 29 Oct 2007 11:45:42 +0000 (11:45 +0000)]
Implement RET opcode.

16 years agoRemove TGSI_INTERPOLATE_ATTRIB.
Michal Krol [Mon, 29 Oct 2007 11:40:09 +0000 (11:40 +0000)]
Remove TGSI_INTERPOLATE_ATTRIB.

16 years agoFix i915simple build.
José Fonseca [Mon, 29 Oct 2007 12:29:06 +0000 (12:29 +0000)]
Fix i915simple build.

16 years agoReuse hardware vertice representation.
José Fonseca [Mon, 29 Oct 2007 12:14:52 +0000 (12:14 +0000)]
Reuse hardware vertice representation.

16 years agoEnable the vertex buffer stage according to the I915_VBUF environment var.
José Fonseca [Mon, 29 Oct 2007 11:51:04 +0000 (11:51 +0000)]
Enable the vertex buffer stage according to the I915_VBUF environment var.

16 years agoGet vertex buffer stage in a minimally working state.
José Fonseca [Mon, 29 Oct 2007 11:49:59 +0000 (11:49 +0000)]
Get vertex buffer stage in a minimally working state.

16 years agoReserve the accurate number of dwords in the batch buffer.
José Fonseca [Mon, 29 Oct 2007 10:25:02 +0000 (10:25 +0000)]
Reserve the accurate number of dwords in the batch buffer.

16 years agoStart a vertex buffer constuction stage for i915 based on Keith's draft done on softpipe.
José Fonseca [Fri, 26 Oct 2007 18:30:04 +0000 (19:30 +0100)]
Start a vertex buffer constuction stage for i915 based on Keith's draft done on softpipe.