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

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

17 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()

17 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.

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

17 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)

17 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.

17 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

17 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

17 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

17 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

17 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

17 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...

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

17 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

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

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

17 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

17 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.

17 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

17 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.

17 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...

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

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

17 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.

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

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

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

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

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

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

17 years agoSampler state code now compiles and is built. Not tested yet.
Brian [Wed, 22 Aug 2007 19:33:19 +0000 (13:33 -0600)]
Sampler state code now compiles and is built.  Not tested yet.

17 years agoadded border_color to sampler state
Brian [Wed, 22 Aug 2007 19:30:26 +0000 (13:30 -0600)]
added border_color to sampler state

17 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.

17 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.

17 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.

17 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

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

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

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

17 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

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

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

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

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

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

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

17 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

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

17 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.

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

17 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.

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

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

17 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).

17 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.

17 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.

17 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

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

17 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.

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

17 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().

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

17 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

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

17 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

17 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.

17 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

17 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.

17 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

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

17 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

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

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

17 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()

17 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()

17 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

17 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.

17 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

17 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.

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

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

17 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

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

17 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

17 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

17 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

17 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

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

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

17 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

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

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

17 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

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

17 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

17 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

17 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()

17 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

17 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()