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

17 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

17 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

17 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

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

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

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

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

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

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

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

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

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

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

17 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

17 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

17 years agoHook in new draw_arrays() code, disabled for now.
Brian [Thu, 16 Aug 2007 01:03:20 +0000 (19:03 -0600)]
Hook in new draw_arrays() code, disabled for now.

17 years agosoftpipe_draw_arrays() function
Brian [Thu, 16 Aug 2007 01:02:37 +0000 (19:02 -0600)]
softpipe_draw_arrays() function

Also includes:
  Temporary stand-in for vertex program execution.
  draw_prim() code
  post-transform vertex cache

17 years agoadded new draw_arrays()
Brian [Thu, 16 Aug 2007 01:00:32 +0000 (19:00 -0600)]
added new draw_arrays()

17 years agoconvert vbo->draw_prims() to pipe->draw_arrays(): works in very limited cases, disabl...
Brian [Thu, 16 Aug 2007 01:00:06 +0000 (19:00 -0600)]
convert vbo->draw_prims() to pipe->draw_arrays(): works in very limited cases, disabled for now

17 years agoadded vertex array info fields
Brian [Thu, 16 Aug 2007 00:54:05 +0000 (18:54 -0600)]
added vertex array info fields

17 years agoadded draw_set_vertex_array_info()
Brian [Thu, 16 Aug 2007 00:53:37 +0000 (18:53 -0600)]
added draw_set_vertex_array_info()

17 years agocomment
Brian [Thu, 16 Aug 2007 00:53:00 +0000 (18:53 -0600)]
comment

17 years agoAdd UsageMask to DECLARATION in TGSI.
michal [Wed, 15 Aug 2007 17:16:11 +0000 (18:16 +0100)]
Add UsageMask to DECLARATION in TGSI.
Interpolate FS attributes in the shader.
Do not copy WPOS in FS.

17 years agoAdd declaration_semantic token to TGSI.
michal [Wed, 15 Aug 2007 12:55:22 +0000 (13:55 +0100)]
Add declaration_semantic token to TGSI.
Cosmetic changes, GLuint -> unsigned.
Preserve mesa gl_fragment_program DEPTH and COLOR semantics.

17 years agoDeclare fragment shader output registers.
michal [Wed, 15 Aug 2007 12:08:40 +0000 (13:08 +0100)]
Declare fragment shader output registers.

17 years agoCleanup, do not use fp_attr_to_slot[] mapping array.
michal [Wed, 15 Aug 2007 11:19:09 +0000 (12:19 +0100)]
Cleanup, do not use fp_attr_to_slot[] mapping array.

17 years agosketch out vbo drawing function
Brian [Wed, 15 Aug 2007 17:45:54 +0000 (11:45 -0600)]
sketch out vbo drawing function

17 years agoadded state funcs for vertex buffer/element info
Brian [Wed, 15 Aug 2007 17:45:12 +0000 (11:45 -0600)]
added state funcs for vertex buffer/element info

17 years agosoftpipe vertex element/buffer state funcs
Brian [Wed, 15 Aug 2007 17:44:33 +0000 (11:44 -0600)]
softpipe vertex element/buffer state funcs

17 years agocomments
Brian [Wed, 15 Aug 2007 17:43:14 +0000 (11:43 -0600)]
comments

17 years agoadded some const qualifiers
Brian [Wed, 15 Aug 2007 17:42:53 +0000 (11:42 -0600)]
added some const qualifiers

17 years agocomments, minor clean-ups
Brian [Wed, 15 Aug 2007 17:42:37 +0000 (11:42 -0600)]
comments, minor clean-ups

17 years agouse regular malloc/free instead of macros
Brian [Tue, 14 Aug 2007 23:20:40 +0000 (17:20 -0600)]
use regular malloc/free instead of macros

17 years agoMerge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa...
Brian [Tue, 14 Aug 2007 21:58:56 +0000 (15:58 -0600)]
Merge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch

17 years agoadded glCopyPixels stub
Brian [Tue, 14 Aug 2007 21:42:40 +0000 (15:42 -0600)]
added glCopyPixels stub

17 years agofix typo
Brian [Tue, 14 Aug 2007 21:37:45 +0000 (15:37 -0600)]
fix typo

17 years agominor hack to allow 1D textures to work
Brian [Tue, 14 Aug 2007 21:20:00 +0000 (15:20 -0600)]
minor hack to allow 1D textures to work

17 years agovars to test 1D/2D textures with linear/nearest filtering
Brian [Tue, 14 Aug 2007 21:19:37 +0000 (15:19 -0600)]
vars to test 1D/2D textures with linear/nearest filtering

17 years agorefactor some code - cube map textures work now
Brian [Tue, 14 Aug 2007 21:12:04 +0000 (15:12 -0600)]
refactor some code - cube map textures work now

17 years agoImplement texture cache with multiple, direct-mapped entries.
Brian [Tue, 14 Aug 2007 20:52:38 +0000 (14:52 -0600)]
Implement texture cache with multiple, direct-mapped entries.

17 years agoConsolidate filter and mipmap level selection in choose_mipmap_levels().
Brian [Tue, 14 Aug 2007 19:32:19 +0000 (13:32 -0600)]
Consolidate filter and mipmap level selection in choose_mipmap_levels().

17 years agoImplement remaining mipmap modes for 2D textures.
Brian [Tue, 14 Aug 2007 19:04:07 +0000 (13:04 -0600)]
Implement remaining mipmap modes for 2D textures.

Also, add lodbias param to get_samples()

17 years agotgsi_sampler->get_samples() now operates on a quad (returns 4 colors).
Brian [Tue, 14 Aug 2007 17:00:35 +0000 (11:00 -0600)]
tgsi_sampler->get_samples() now operates on a quad (returns 4 colors).

Lambda/level-of-detail is also computed in get_samples() now.

17 years agoBeginnings of a demand-filled post-tnl vertex cache.
Keith Whitwell [Tue, 14 Aug 2007 14:44:41 +0000 (15:44 +0100)]
Beginnings of a demand-filled post-tnl vertex cache.

Probably breaks a bit of stuff, eg unfilled clipping, edgeflags, etc.

17 years agoAdd structs and set-functions for vertex buffer, element state.
Keith Whitwell [Tue, 14 Aug 2007 14:42:47 +0000 (15:42 +0100)]
Add structs and set-functions for vertex buffer, element state.

Not currently used.

17 years agoAdd surface formats to be used for specifying vertex element layouts.
Keith Whitwell [Tue, 14 Aug 2007 14:41:26 +0000 (15:41 +0100)]
Add surface formats to be used for specifying vertex element layouts.

17 years agoContinue reducing dependencies on core mesa include files.
Keith Whitwell [Mon, 13 Aug 2007 16:02:27 +0000 (17:02 +0100)]
Continue reducing dependencies on core mesa include files.

Mainly down to the support for legacy TNL processing now.

17 years agoadded pixelzoom cmd line opt
Brian [Tue, 14 Aug 2007 00:18:45 +0000 (18:18 -0600)]
added pixelzoom cmd line opt

17 years agoset renderbuffer Width/Height = texture size
Brian [Tue, 14 Aug 2007 00:16:47 +0000 (18:16 -0600)]
set renderbuffer Width/Height = texture size

17 years agoAdded st_fb_orientation() function to determine the up/down orientation of the frameb...
Brian [Tue, 14 Aug 2007 00:16:11 +0000 (18:16 -0600)]
Added st_fb_orientation() function to determine the up/down orientation of the framebuffer.

17 years agomap stencil buffer too
Brian [Tue, 14 Aug 2007 00:14:54 +0000 (18:14 -0600)]
map stencil buffer too

17 years agoadded assertion to check that texture width is non-zero
Brian [Mon, 13 Aug 2007 22:18:32 +0000 (16:18 -0600)]
added assertion to check that texture width is non-zero

17 years agofix up some render-to-texture code ... almost there
Brian [Mon, 13 Aug 2007 22:18:03 +0000 (16:18 -0600)]
fix up some render-to-texture code ... almost there

17 years agoadded an assertion
Brian [Mon, 13 Aug 2007 22:16:42 +0000 (16:16 -0600)]
added an assertion

17 years agoMissing files
Keith Whitwell [Mon, 13 Aug 2007 15:24:24 +0000 (16:24 +0100)]
Missing files

17 years agoStart breaking the #include dependencies between pipe drivers and mesa.
Keith Whitwell [Mon, 13 Aug 2007 15:07:11 +0000 (16:07 +0100)]
Start breaking the #include dependencies between pipe drivers and mesa.

Pipe drivers shouldn't really know much about mesa and certainly shouldn't
be #including files from src/mesa/main and the like.

I've also (in i915simple especially) moved over from GL types to
more conventional int/unsigned usage.  This probably isn't really the
ultimate desired set of types to use - possibly C99 would be better.  It
may even be that a subset of the GL types is preferable.

17 years agocheck if we have a zbuf before enabling depth_test stage
Brian [Mon, 13 Aug 2007 21:21:01 +0000 (15:21 -0600)]
check if we have a zbuf before enabling depth_test stage

17 years agofix some issues with texture/mipmap_tree state tracking
Brian [Mon, 13 Aug 2007 21:20:08 +0000 (15:20 -0600)]
fix some issues with texture/mipmap_tree state tracking

17 years agowith Y=0=top, front/back determination is negated
Brian [Mon, 13 Aug 2007 21:02:50 +0000 (15:02 -0600)]
with Y=0=top, front/back determination is negated

17 years agocheck for ctx==NULL in st_renderbuffer_delete()
Brian [Mon, 13 Aug 2007 20:53:27 +0000 (14:53 -0600)]
check for ctx==NULL in st_renderbuffer_delete()

17 years agoDraw white square in lower-left corner to test orientation
Brian [Mon, 13 Aug 2007 19:57:31 +0000 (13:57 -0600)]
Draw white square in lower-left corner to test orientation

17 years agofill in the get_tile() function so ReadPixels can work
Brian [Mon, 13 Aug 2007 19:56:54 +0000 (13:56 -0600)]
fill in the get_tile() function so ReadPixels can work

17 years agoflush pipe before reading image
Brian [Mon, 13 Aug 2007 19:56:30 +0000 (13:56 -0600)]
flush pipe before reading image

17 years agoChange/fix surface allocation functions.
Brian [Sat, 11 Aug 2007 20:21:12 +0000 (21:21 +0100)]
Change/fix surface allocation functions.

Use xmesa_new_color_surface() for front/back renderbuffer surfaces.
Use xmesa_surface_alloc() for everything else (textures, other renderbuffers)

17 years agomt->pitch must be at least 16 because of 64-byte alignment in sp_region.c (fix that...
Brian [Sat, 11 Aug 2007 20:19:04 +0000 (21:19 +0100)]
mt->pitch must be at least 16 because of 64-byte alignment in sp_region.c (fix that someday)

17 years agodo clipping in get_tile()
Brian [Sat, 11 Aug 2007 20:18:33 +0000 (21:18 +0100)]
do clipping in get_tile()

17 years agoadded Bitmap() stub, call st_validate_state() in DrawPixels
Brian [Sat, 11 Aug 2007 19:03:24 +0000 (20:03 +0100)]
added Bitmap() stub, call st_validate_state() in DrawPixels

17 years agoremove some temp pipe hacks
Brian [Sat, 11 Aug 2007 18:57:50 +0000 (19:57 +0100)]
remove some temp pipe hacks

17 years agoadded st_cb_queryobj.c
Brian [Sat, 11 Aug 2007 18:57:37 +0000 (19:57 +0100)]
added st_cb_queryobj.c

17 years agoBegin/EndQuery functions
Brian [Sat, 11 Aug 2007 18:56:30 +0000 (19:56 +0100)]
Begin/EndQuery functions

17 years agorepair breakage from recent pipe_winsys re-org
Brian [Sat, 11 Aug 2007 16:04:12 +0000 (17:04 +0100)]
repair breakage from recent pipe_winsys re-org

17 years agofix invalid usage of buffer_unreference()
Brian [Sat, 11 Aug 2007 16:03:51 +0000 (17:03 +0100)]
fix invalid usage of buffer_unreference()

Need to pass the address of the buffer ptr, not the buffer ptr.
Before, the region->buffer type was void * so it wasn't effectively
type-checked.  Changing the type to pipe_buffer_object* allows the
compiler to detect the error.  Fixing this solves a segfault.

17 years agonotes/asserts for get/put_tile()
Brian [Sat, 11 Aug 2007 16:00:56 +0000 (17:00 +0100)]
notes/asserts for get/put_tile()

17 years agomove pipe_buffer_handle definition to top of file, use it in pipe_region
Brian [Sat, 11 Aug 2007 15:59:54 +0000 (16:59 +0100)]
move pipe_buffer_handle definition to top of file, use it in pipe_region

17 years agoremove #include mtypes.h
Brian [Sat, 11 Aug 2007 15:59:15 +0000 (16:59 +0100)]
remove #include mtypes.h

17 years agoRename intel_buffers.[ch] to intel_swapbuffers.[ch]
Keith Whitwell [Sat, 11 Aug 2007 13:19:48 +0000 (14:19 +0100)]
Rename intel_buffers.[ch] to intel_swapbuffers.[ch]

17 years agoFix some build failures. Move intelScreenContext to intel_context.c
Keith Whitwell [Sat, 11 Aug 2007 13:01:37 +0000 (14:01 +0100)]
Fix some build failures.  Move intelScreenContext to intel_context.c

17 years agoPull in improved debug from master
Keith Whitwell [Sat, 11 Aug 2007 13:00:19 +0000 (14:00 +0100)]
Pull in improved debug from master

17 years agomake it easier to compare debug code with non-pipe version
Keith Whitwell [Sat, 11 Aug 2007 12:06:24 +0000 (13:06 +0100)]
make it easier to compare debug code with non-pipe version

17 years agoadd intel_lock.c to build
keithw [Fri, 10 Aug 2007 23:20:30 +0000 (00:20 +0100)]
add intel_lock.c to build

17 years agoremove intel_ioctl.c
keithw [Fri, 10 Aug 2007 23:18:47 +0000 (00:18 +0100)]
remove intel_ioctl.c

17 years agomove batch ioctl to intel_batchbuffer.c
keithw [Fri, 10 Aug 2007 23:16:36 +0000 (00:16 +0100)]
move batch ioctl to intel_batchbuffer.c

17 years agoremove unused irq functions
keithw [Fri, 10 Aug 2007 23:13:40 +0000 (00:13 +0100)]
remove unused irq functions

17 years agomove locking to new file
keithw [Fri, 10 Aug 2007 23:10:30 +0000 (00:10 +0100)]
move locking to new file

17 years agoremove intelGetString()
keithw [Fri, 10 Aug 2007 23:09:21 +0000 (00:09 +0100)]
remove intelGetString()

17 years agoMove string functions to state_tracker, add queries to pipe, winsys.
Keith Whitwell [Fri, 10 Aug 2007 15:42:26 +0000 (16:42 +0100)]
Move string functions to state_tracker, add queries to pipe, winsys.

17 years agoY invert, clean-up
Brian [Fri, 10 Aug 2007 22:25:21 +0000 (16:25 -0600)]
Y invert, clean-up

17 years agoinvert Y for scissor
Brian [Fri, 10 Aug 2007 22:24:55 +0000 (16:24 -0600)]
invert Y for scissor

17 years agouse winsys supported_formats() query
keithw [Fri, 10 Aug 2007 15:12:09 +0000 (16:12 +0100)]
use winsys supported_formats() query

17 years agoadd missing printf
keithw [Fri, 10 Aug 2007 15:08:45 +0000 (16:08 +0100)]
add missing printf

17 years agomove dri_bo() to a header file
keithw [Fri, 10 Aug 2007 15:03:38 +0000 (16:03 +0100)]
move dri_bo() to a header file

17 years agoadded pipe->max_texture_size() query, use it in st_drawpixels()
Brian [Fri, 10 Aug 2007 21:47:45 +0000 (15:47 -0600)]
added pipe->max_texture_size() query, use it in st_drawpixels()

17 years agoLift common winsys functions into pipe's new p_winsys.
Keith Whitwell [Fri, 10 Aug 2007 14:31:26 +0000 (15:31 +0100)]
Lift common winsys functions into pipe's new p_winsys.

17 years agofix image orientation
Brian [Fri, 10 Aug 2007 21:29:56 +0000 (15:29 -0600)]
fix image orientation

17 years agoreadpixels handles any format/type/packing/transfer ops now
Brian [Fri, 10 Aug 2007 21:29:41 +0000 (15:29 -0600)]
readpixels handles any format/type/packing/transfer ops now

17 years agosetup sampler state, computed wincoords with pixel zoom factors
Brian [Fri, 10 Aug 2007 19:30:22 +0000 (13:30 -0600)]
setup sampler state, computed wincoords with pixel zoom factors

17 years agodon't hardcode cpp
Brian [Fri, 10 Aug 2007 19:11:47 +0000 (13:11 -0600)]
don't hardcode cpp

17 years agoadded st_sizeof_format()
Brian [Fri, 10 Aug 2007 19:11:31 +0000 (13:11 -0600)]
added st_sizeof_format()

17 years agoglRead/DrawPixels test
Brian [Fri, 10 Aug 2007 19:06:07 +0000 (13:06 -0600)]
glRead/DrawPixels test