mesa.git
17 years agoNew PIPE_FLUSH_WAIT flag for pipe->flush().
Brian [Wed, 7 Nov 2007 23:59:37 +0000 (16:59 -0700)]
New PIPE_FLUSH_WAIT flag for pipe->flush().

The state tracker doesn't have to directly call winsys->wait_idle() anymore.
glFlush and glFinish both go through pipe->flush() now.

17 years agoRemove context dependencies in winsys layer.
Brian [Wed, 7 Nov 2007 23:07:17 +0000 (16:07 -0700)]
Remove context dependencies in winsys layer.

The winsys object is now per-screen and shared by multiple contexts.
The regionPool is now part of the i915 winsys layer.
The winsys wait_idle() and flush_frontbuffer() funcs will get more attention...

17 years agoenable GL_ARB/NV_point_sprite together
Brian [Wed, 7 Nov 2007 22:57:19 +0000 (15:57 -0700)]
enable GL_ARB/NV_point_sprite together

17 years agocosmetic fix to driFenceFinish() call
Brian [Wed, 7 Nov 2007 22:22:31 +0000 (15:22 -0700)]
cosmetic fix to driFenceFinish() call

17 years agoreplace magic number 3 with DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW in driFenceFi...
Brian [Wed, 7 Nov 2007 22:22:07 +0000 (15:22 -0700)]
replace magic number 3 with DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW in driFenceFinish() call

17 years agojust reorder a few members of pipe_winsys, update comments
Brian [Wed, 7 Nov 2007 19:06:50 +0000 (12:06 -0700)]
just reorder a few members of pipe_winsys, update comments

17 years agoremove DriverCtx=intel assigment/hack
Brian [Wed, 7 Nov 2007 18:59:04 +0000 (11:59 -0700)]
remove DriverCtx=intel assigment/hack

17 years agoPass winsys as a parameter to intel_create_i915simple(), intel_create_softpipe()
Brian [Wed, 7 Nov 2007 18:44:48 +0000 (11:44 -0700)]
Pass winsys as a parameter to intel_create_i915simple(), intel_create_softpipe()

17 years agovar renaming: s/sws/winsys/
Brian [Wed, 7 Nov 2007 17:39:30 +0000 (10:39 -0700)]
var renaming: s/sws/winsys/

17 years agomore dead code removal
Brian [Wed, 7 Nov 2007 17:34:18 +0000 (10:34 -0700)]
more dead code removal

17 years agore-enable PIPE_FORMAT_U_Z32 support
Brian [Wed, 7 Nov 2007 21:41:14 +0000 (14:41 -0700)]
re-enable PIPE_FORMAT_U_Z32  support

17 years agobetter depth buffer selection
Brian [Wed, 7 Nov 2007 21:41:01 +0000 (14:41 -0700)]
better depth buffer selection

17 years agoFloat->uint conversion for PIPE_FORMAT_U_Z32 resulted in overflow in depth_value...
Brian [Wed, 7 Nov 2007 21:40:38 +0000 (14:40 -0700)]
Float->uint conversion for PIPE_FORMAT_U_Z32 resulted in overflow in depth_value().  Special-case it.

17 years agodisable/remove dead code
Brian [Wed, 7 Nov 2007 16:54:02 +0000 (09:54 -0700)]
disable/remove dead code

17 years agoDisable the call to driBOReference() in i915_update_texture()
Brian [Wed, 7 Nov 2007 16:53:25 +0000 (09:53 -0700)]
Disable the call to driBOReference() in i915_update_texture()

It doesn't seem to be needed and disabling it fixes a big memory leak with
some programs like xdemos/wincopy.c

17 years agoredo xm_surface_release() to match i915
Brian [Wed, 7 Nov 2007 15:57:56 +0000 (08:57 -0700)]
redo xm_surface_release() to match i915

17 years agofix bad varname
Brian [Wed, 7 Nov 2007 15:21:14 +0000 (08:21 -0700)]
fix bad varname

17 years agoinit glsl functions in st_init_driver_functions()
Brian [Wed, 7 Nov 2007 15:18:50 +0000 (08:18 -0700)]
init glsl functions in st_init_driver_functions()

17 years agofix typos, re-enable some extensions to get back to GL 2.1 level
Brian [Wed, 7 Nov 2007 15:18:34 +0000 (08:18 -0700)]
fix typos, re-enable some extensions to get back to GL 2.1 level

17 years agoAdd winsys->surface_release() to complement winsys->surface_alloc().
Brian [Wed, 7 Nov 2007 15:05:09 +0000 (08:05 -0700)]
Add winsys->surface_release() to complement winsys->surface_alloc().

pipe_surface now has a pointer to the winsys which create/owns the surface.
This allows clean surface deallocation w/out a rendering context.

17 years agoCheck the right ammount of free space in vertex buffer.
José Fonseca [Wed, 7 Nov 2007 13:21:01 +0000 (13:21 +0000)]
Check the right ammount of free space in vertex buffer.

17 years agoReset temporary vertices ids.
José Fonseca [Wed, 7 Nov 2007 13:07:20 +0000 (13:07 +0000)]
Reset temporary vertices ids.

17 years agoUse a consistent number to identify undefined vertices.
José Fonseca [Wed, 7 Nov 2007 12:08:19 +0000 (12:08 +0000)]
Use a consistent number to identify undefined vertices.

17 years agoReuse the vertex buffer until the vertex size changes.
José Fonseca [Wed, 7 Nov 2007 11:04:02 +0000 (11:04 +0000)]
Reuse the vertex buffer until the vertex size changes.

17 years agoTrack hardware vertex buffer state changes.
José Fonseca [Tue, 6 Nov 2007 19:16:40 +0000 (19:16 +0000)]
Track hardware vertex buffer state changes.

17 years agoImproved logic for setting up depth/stencil buffers in st_create_framebuffer()
Brian [Wed, 7 Nov 2007 00:34:32 +0000 (17:34 -0700)]
Improved logic for setting up depth/stencil buffers in st_create_framebuffer()

17 years agorestore dispatch/extension code (without, dynamic entrypoints aren't added)
Brian [Wed, 7 Nov 2007 00:24:45 +0000 (17:24 -0700)]
restore dispatch/extension code (without, dynamic entrypoints aren't added)

17 years agodisable PIPE_FORMAT_U_Z32, doesn't work ATM
Brian [Tue, 6 Nov 2007 23:40:05 +0000 (16:40 -0700)]
disable PIPE_FORMAT_U_Z32, doesn't work ATM

17 years agoUpdate xmesa_is_format_supported()
Brian [Tue, 6 Nov 2007 22:19:36 +0000 (15:19 -0700)]
Update xmesa_is_format_supported()

17 years agorealloc surface if format changes, remove dead code
Brian [Tue, 6 Nov 2007 22:17:20 +0000 (15:17 -0700)]
realloc surface if format changes, remove dead code

17 years agorename xmesa_create_softpipe() xmesa_create_context()
Brian [Tue, 6 Nov 2007 22:16:42 +0000 (15:16 -0700)]
rename xmesa_create_softpipe() xmesa_create_context()

17 years agorename xmesa_create_softpipe() xmesa_create_context()
Brian [Tue, 6 Nov 2007 22:16:22 +0000 (15:16 -0700)]
rename xmesa_create_softpipe() xmesa_create_context()

17 years agodisable finish_or_flush() for now
Brian [Tue, 6 Nov 2007 22:15:49 +0000 (15:15 -0700)]
disable finish_or_flush() for now

17 years agoremove dead code in softpipe_is_format_supported()
Brian [Tue, 6 Nov 2007 21:59:17 +0000 (14:59 -0700)]
remove dead code in softpipe_is_format_supported()

17 years agodocument flags param to region_alloc()
Brian [Tue, 6 Nov 2007 21:39:53 +0000 (14:39 -0700)]
document flags param to region_alloc()

17 years agoremove more dependencies on Mesa types/functions
Brian [Tue, 6 Nov 2007 17:25:56 +0000 (10:25 -0700)]
remove more dependencies on Mesa types/functions

17 years agoimplement context sharing code
Brian [Tue, 6 Nov 2007 17:19:27 +0000 (10:19 -0700)]
implement context sharing code

17 years agocode clean-up
Brian [Tue, 6 Nov 2007 17:14:53 +0000 (10:14 -0700)]
code clean-up

17 years agoneed to call pipe->flush() in finish_or_flush()
Brian [Tue, 6 Nov 2007 20:58:25 +0000 (13:58 -0700)]
need to call pipe->flush() in finish_or_flush()

17 years agoinit luminance/intensity_bits to zero in st_get_format_info()
Brian [Tue, 6 Nov 2007 20:53:32 +0000 (13:53 -0700)]
init luminance/intensity_bits to zero in st_get_format_info()

17 years agodefine CLIP_TILE as in sp_surface.c
Brian [Tue, 6 Nov 2007 20:52:57 +0000 (13:52 -0700)]
define CLIP_TILE as in sp_surface.c

17 years agoremove debug abort() call
Brian [Tue, 6 Nov 2007 20:42:37 +0000 (13:42 -0700)]
remove debug abort() call

17 years agoCall xmesa_init_driver_functions() to install xmesa_viewport() function.
Brian [Tue, 6 Nov 2007 20:39:02 +0000 (13:39 -0700)]
Call xmesa_init_driver_functions() to install xmesa_viewport() function.

Fixes failed assertion in glxgears.

17 years agoHandle the corner case of 24bit depth buffer with 0bit stencil buffer.
José Fonseca [Tue, 6 Nov 2007 17:38:47 +0000 (17:38 +0000)]
Handle the corner case of 24bit depth buffer with 0bit stencil buffer.

17 years agoFix build error: dereferencing pointer to incomplete type
Michel Dänzer [Tue, 6 Nov 2007 18:00:23 +0000 (19:00 +0100)]
Fix build error: dereferencing pointer to incomplete type

17 years agoRemove use of Mesa/GL types/functions (s/GLuint/uint/ etc)
Brian [Tue, 6 Nov 2007 17:10:50 +0000 (10:10 -0700)]
Remove use of Mesa/GL types/functions (s/GLuint/uint/ etc)

17 years agodon't include mtypes.h
Brian [Tue, 6 Nov 2007 17:07:31 +0000 (10:07 -0700)]
don't include mtypes.h

17 years agoRemove last of core Mesa dependencies in intel_swapbuffers.c
Brian [Tue, 6 Nov 2007 17:05:01 +0000 (10:05 -0700)]
Remove last of core Mesa dependencies in intel_swapbuffers.c

Use the "dummyContext" pointer (for now) instead of GET_CURRENT_CONTEXT().

17 years agoRemove pipe->max_texture_size(), use get_param() instead.
Brian [Tue, 6 Nov 2007 16:41:45 +0000 (09:41 -0700)]
Remove pipe->max_texture_size(), use get_param() instead.

Also, in st_init_limits(), clamp driver's values against Mesa's internal limits.

17 years agocheck for __i386__ or __386__ instead of USE_X86_ASM
Brian [Tue, 6 Nov 2007 15:53:25 +0000 (08:53 -0700)]
check for __i386__ or __386__ instead of USE_X86_ASM

17 years agoAllow custom pipe driver buffer usage flags.
José Fonseca [Tue, 6 Nov 2007 14:43:20 +0000 (14:43 +0000)]
Allow custom pipe driver buffer usage flags.

17 years agoSupply buffer usage hints to winsys.
José Fonseca [Mon, 5 Nov 2007 18:04:35 +0000 (18:04 +0000)]
Supply buffer usage hints to winsys.

Winsys driver needs some hints in order to allocate the appropriate kind of
memory for the buffer.

17 years agoConvert format bitfields to shifts and masks.
Michel Dänzer [Tue, 6 Nov 2007 09:17:59 +0000 (10:17 +0100)]
Convert format bitfields to shifts and masks.

The memory layout of bitfields depends on the ABI.

17 years agoFix non-x86 build.
Michel Dänzer [Tue, 6 Nov 2007 09:16:34 +0000 (10:16 +0100)]
Fix non-x86 build.

17 years agoDetermine GL extensions/limits by making pipe queries.
Brian [Tue, 6 Nov 2007 01:04:30 +0000 (18:04 -0700)]
Determine GL extensions/limits by making pipe queries.

The state tracker calls pipe->get_param() to determine the GL limits and
which OpenGL extensions are supported.
This is an initial implementation that'll probably change...

17 years agoclean ups
Brian [Tue, 6 Nov 2007 00:15:12 +0000 (17:15 -0700)]
clean ups

17 years agochange includes, minor simplification in intelDisplaySurface()
Brian [Tue, 6 Nov 2007 00:10:12 +0000 (17:10 -0700)]
change includes, minor simplification in intelDisplaySurface()

17 years agoinclude mtypes.h (temporary)
Brian [Mon, 5 Nov 2007 23:45:49 +0000 (16:45 -0700)]
include mtypes.h (temporary)

17 years agodon't include mtypes.h in st_public.h
Brian [Mon, 5 Nov 2007 23:38:07 +0000 (16:38 -0700)]
don't include mtypes.h in st_public.h

17 years agomove st_invalidate_state() prototype to st_context.h
Brian [Mon, 5 Nov 2007 23:34:47 +0000 (16:34 -0700)]
move st_invalidate_state() prototype to st_context.h

17 years agoRemove some temporary state tracker context/framebuffer_create functions.
Brian [Mon, 5 Nov 2007 23:15:43 +0000 (16:15 -0700)]
Remove some temporary state tracker context/framebuffer_create functions.

17 years agoUpdate xlib driver to use newer state tracker context/framebuffer functions.
Brian [Mon, 5 Nov 2007 22:59:55 +0000 (15:59 -0700)]
Update xlib driver to use newer state tracker context/framebuffer functions.

XMesaContext has an st_context * which contains a mesa context.

17 years agono-op glCopyPixels if width or height is zero
Brian [Mon, 5 Nov 2007 22:42:55 +0000 (15:42 -0700)]
no-op glCopyPixels if width or height is zero

17 years agoasst clean-ups
Brian [Mon, 5 Nov 2007 20:37:12 +0000 (13:37 -0700)]
asst clean-ups

17 years agoremove some GL types, mesa includes
Brian [Mon, 5 Nov 2007 20:18:47 +0000 (13:18 -0700)]
remove some GL types, mesa includes

17 years agomove intel_context_mesa() into intel_swapbuffers.c (the only place it's used now)
Brian [Mon, 5 Nov 2007 18:59:09 +0000 (11:59 -0700)]
move intel_context_mesa() into intel_swapbuffers.c (the only place it's used now)

17 years agoMove driBatchPoolInit() into new intel_batchpool.h header.
Brian [Mon, 5 Nov 2007 18:54:36 +0000 (11:54 -0700)]
Move driBatchPoolInit() into new intel_batchpool.h header.

Note that intel_batchpool.[ch] have no intel-specific dependencies at this poi
Maybe rename files for re-use in the future.

17 years agoMove driBatchPoolInit() into new intel_batchpool.h header.
Brian [Mon, 5 Nov 2007 18:53:56 +0000 (11:53 -0700)]
Move driBatchPoolInit() into new intel_batchpool.h header.

Note that intel_batchpool.[ch] have no intel-specific dependencies at this point.
Maybe rename files for re-use in the future.

17 years agoremove intelScreenPrivate typedef and use cast wrapper function to be like intel_cont...
Brian [Mon, 5 Nov 2007 18:48:54 +0000 (11:48 -0700)]
remove intelScreenPrivate typedef and use cast wrapper function to be like intel_context and intel_framebuffer

17 years agoremove driScrnPriv field from intel_screen
Brian [Mon, 5 Nov 2007 18:38:46 +0000 (11:38 -0700)]
remove driScrnPriv field from intel_screen

17 years agocomments
Brian [Mon, 5 Nov 2007 18:35:43 +0000 (11:35 -0700)]
comments

17 years agofix typo, formatting
Brian [Mon, 5 Nov 2007 18:17:40 +0000 (11:17 -0700)]
fix typo, formatting

17 years agoremove unused intelScreen->texPool
Brian [Mon, 5 Nov 2007 18:09:19 +0000 (11:09 -0700)]
remove unused intelScreen->texPool

17 years agoadd missing free() in intelDestroyContext
Brian [Mon, 5 Nov 2007 17:16:28 +0000 (10:16 -0700)]
add missing free() in intelDestroyContext

17 years agocomments, clean-ups, assertions
Brian [Mon, 5 Nov 2007 17:14:24 +0000 (10:14 -0700)]
comments, clean-ups, assertions

17 years agorewrite/simplify intelCopySubBuffer()
Brian [Mon, 5 Nov 2007 17:04:23 +0000 (10:04 -0700)]
rewrite/simplify intelCopySubBuffer()

17 years agorewrite/simplify intelSwapBuffers()
Brian [Mon, 5 Nov 2007 17:01:51 +0000 (10:01 -0700)]
rewrite/simplify intelSwapBuffers()

17 years agoadded st_notify_swapbuffers()
Brian [Mon, 5 Nov 2007 16:59:34 +0000 (09:59 -0700)]
added st_notify_swapbuffers()

17 years agoreplace get_color_surface() with st_get_framebuffer_surface()
Brian [Mon, 5 Nov 2007 16:53:02 +0000 (09:53 -0700)]
replace get_color_surface() with st_get_framebuffer_surface()

17 years agoadded st_get_framebuffer_surface() and ST_SURFACE_x tokens
Brian [Mon, 5 Nov 2007 16:52:14 +0000 (09:52 -0700)]
added st_get_framebuffer_surface() and ST_SURFACE_x tokens

17 years agocomments, tweaks
Brian [Mon, 5 Nov 2007 16:35:31 +0000 (09:35 -0700)]
comments, tweaks

17 years agobetter use of intel_context() cast wrappers
Brian [Mon, 5 Nov 2007 16:28:28 +0000 (09:28 -0700)]
better use of intel_context() cast wrappers

17 years agoclean-up/re-org of intel_framebuffer code
Brian [Mon, 5 Nov 2007 16:24:03 +0000 (09:24 -0700)]
clean-up/re-org of intel_framebuffer code

17 years agoremove unused intel_fb decls, code
Brian [Mon, 5 Nov 2007 16:09:11 +0000 (09:09 -0700)]
remove unused intel_fb decls, code

17 years agomove intelCopySubBuffer() decl
Brian [Mon, 5 Nov 2007 16:07:35 +0000 (09:07 -0700)]
move intelCopySubBuffer() decl

17 years agoremove dead code in intelCreateBuffer()
Brian [Mon, 5 Nov 2007 16:04:37 +0000 (09:04 -0700)]
remove dead code in intelCreateBuffer()

17 years agoremove intel_context cliprect code
Brian [Mon, 5 Nov 2007 16:02:54 +0000 (09:02 -0700)]
remove intel_context cliprect code

17 years agoremove unused var
Brian [Mon, 5 Nov 2007 16:00:18 +0000 (09:00 -0700)]
remove unused var

17 years agoremove cliprect code
Brian [Mon, 5 Nov 2007 15:58:45 +0000 (08:58 -0700)]
remove cliprect code

17 years agoremove mesa includes
Brian [Mon, 5 Nov 2007 15:47:48 +0000 (08:47 -0700)]
remove mesa includes

17 years agouse st_unreference_framebuffer()
Brian [Mon, 5 Nov 2007 15:42:18 +0000 (08:42 -0700)]
use st_unreference_framebuffer()

17 years agoadded st_unreference_framebuffer()
Brian [Mon, 5 Nov 2007 15:41:45 +0000 (08:41 -0700)]
added st_unreference_framebuffer()

17 years agorename intelWindowMoved() to intelUpdateWindowSize()
Brian [Sat, 3 Nov 2007 16:41:03 +0000 (10:41 -0600)]
rename intelWindowMoved() to intelUpdateWindowSize()

17 years agopass __DRIdrawablePrivate to intelWindowMoved(), rather than context ptr
Brian [Sat, 3 Nov 2007 16:35:39 +0000 (10:35 -0600)]
pass __DRIdrawablePrivate to intelWindowMoved(), rather than context ptr

17 years agosimplify the window moved/resized code a bit
Brian [Sat, 3 Nov 2007 16:26:19 +0000 (10:26 -0600)]
simplify the window moved/resized code a bit

17 years agoset stfb->Base.Initialized
Brian [Sat, 3 Nov 2007 16:25:59 +0000 (10:25 -0600)]
set stfb->Base.Initialized

17 years agoRemove intelUpdateFramebufferSize(), use st_resize_framebuffer().
Brian [Sat, 3 Nov 2007 16:19:38 +0000 (10:19 -0600)]
Remove intelUpdateFramebufferSize(), use st_resize_framebuffer().

17 years agoadded st_resize_framebuffer()
Brian [Sat, 3 Nov 2007 16:19:10 +0000 (10:19 -0600)]
added st_resize_framebuffer()

17 years agouse st_make_current()
Brian [Sat, 3 Nov 2007 16:04:24 +0000 (10:04 -0600)]
use st_make_current()

17 years agorestore dummy card_extensions extensions array, needed for dispatch setup
Brian [Sat, 3 Nov 2007 15:52:27 +0000 (09:52 -0600)]
restore dummy card_extensions extensions array, needed for dispatch setup