Commit graph

115447 commits

Author SHA1 Message Date
Michel Dänzer
3871d2882a Rename struct field 'private' to 'priv'.
This broke the LLVM build because 'private' is a C++ keyword.
2007-11-08 13:10:18 +01:00
Brian
6400658d71 fix warning 2007-11-07 17:29:14 -07:00
Brian
74df1f4adb update flush/fence comments for i915_flush() 2007-11-07 17:17:32 -07:00
Brian
3fe055ec92 Remove winsys->wait_idle(), subsumed by pipe->flush().
Connect intel_i915_batch_finish() into i915_winsys, just like intel_i915_batch_flush().
Call i915_winsys->batch_finish() in response to pipe->flush(PIPE_FLUSH_WAIT).
Now all the batchbuffer/fence code is in one place and a little cleaner.
2007-11-07 17:16:47 -07:00
Brian
ae44a81d1b 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.
2007-11-07 16:59:37 -07:00
Brian
10c62bf068 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...
2007-11-07 16:08:04 -07:00
Brian
03cfeb31af enable GL_ARB/NV_point_sprite together 2007-11-07 16:08:04 -07:00
Brian
ed6e591270 cosmetic fix to driFenceFinish() call 2007-11-07 16:08:04 -07:00
Brian
51653cd551 replace magic number 3 with DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW in driFenceFinish() call 2007-11-07 16:08:04 -07:00
Brian
0852cf8611 just reorder a few members of pipe_winsys, update comments 2007-11-07 16:08:04 -07:00
Brian
c712d092a1 remove DriverCtx=intel assigment/hack 2007-11-07 16:08:04 -07:00
Brian
2611703b36 Pass winsys as a parameter to intel_create_i915simple(), intel_create_softpipe() 2007-11-07 16:08:04 -07:00
Brian
f40f45ceea var renaming: s/sws/winsys/ 2007-11-07 16:08:04 -07:00
Brian
237429aa3b more dead code removal 2007-11-07 16:08:04 -07:00
Brian
7a9c129a0a re-enable PIPE_FORMAT_U_Z32 support 2007-11-07 14:41:14 -07:00
Brian
fc6172bc9a better depth buffer selection 2007-11-07 14:41:01 -07:00
Brian
187b631b6b Float->uint conversion for PIPE_FORMAT_U_Z32 resulted in overflow in depth_value(). Special-case it. 2007-11-07 14:40:38 -07:00
Brian
7e884c6f86 disable/remove dead code 2007-11-07 09:54:02 -07:00
Brian
182e861eea 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
2007-11-07 09:53:25 -07:00
Brian
5d9021554e redo xm_surface_release() to match i915 2007-11-07 08:57:56 -07:00
Brian
c3e7bb4127 fix bad varname 2007-11-07 08:21:14 -07:00
Brian
601a9ea9a7 init glsl functions in st_init_driver_functions() 2007-11-07 08:20:00 -07:00
Brian
6c4447e6a8 fix typos, re-enable some extensions to get back to GL 2.1 level 2007-11-07 08:20:00 -07:00
Brian
7d1a04e499 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.
2007-11-07 08:24:58 -07:00
José Fonseca
5223666165 Check the right ammount of free space in vertex buffer. 2007-11-07 13:41:21 +00:00
José Fonseca
3e22180fc8 Reset temporary vertices ids. 2007-11-07 13:41:09 +00:00
José Fonseca
c28fdf3096 Use a consistent number to identify undefined vertices. 2007-11-07 13:41:00 +00:00
José Fonseca
3922baede2 Reuse the vertex buffer until the vertex size changes. 2007-11-07 13:40:47 +00:00
José Fonseca
f39a520892 Track hardware vertex buffer state changes. 2007-11-07 13:40:35 +00:00
Brian
85c7683f1f Improved logic for setting up depth/stencil buffers in st_create_framebuffer() 2007-11-06 17:34:32 -07:00
Brian
b0e7da86ab restore dispatch/extension code (without, dynamic entrypoints aren't added) 2007-11-06 17:24:45 -07:00
Brian
a895910d88 disable PIPE_FORMAT_U_Z32, doesn't work ATM 2007-11-06 16:40:05 -07:00
Brian
2b0d1b6eda Update xmesa_is_format_supported() 2007-11-06 15:22:56 -07:00
Brian
3470d819fd realloc surface if format changes, remove dead code 2007-11-06 15:22:56 -07:00
Brian
a151ad21bb rename xmesa_create_softpipe() xmesa_create_context() 2007-11-06 15:22:56 -07:00
Brian
54b43da7e9 rename xmesa_create_softpipe() xmesa_create_context() 2007-11-06 15:22:56 -07:00
Brian
5fb6ebf85d disable finish_or_flush() for now 2007-11-06 15:22:56 -07:00
Brian
d35cb1a121 remove dead code in softpipe_is_format_supported() 2007-11-06 15:22:55 -07:00
Brian
db01ff6a19 document flags param to region_alloc() 2007-11-06 15:22:55 -07:00
Brian
37624458e4 remove more dependencies on Mesa types/functions 2007-11-06 15:27:14 -07:00
Brian
4cf56a4183 implement context sharing code 2007-11-06 15:27:14 -07:00
Brian
5e24e3c426 code clean-up 2007-11-06 15:27:14 -07:00
Brian
ea286d4df2 need to call pipe->flush() in finish_or_flush() 2007-11-06 13:58:25 -07:00
Brian
da3994988b init luminance/intensity_bits to zero in st_get_format_info() 2007-11-06 13:53:32 -07:00
Brian
fa44b74f4e define CLIP_TILE as in sp_surface.c 2007-11-06 13:52:57 -07:00
Brian
0862df2154 remove debug abort() call 2007-11-06 13:42:37 -07:00
Brian
2e784848e6 Call xmesa_init_driver_functions() to install xmesa_viewport() function.
Fixes failed assertion in glxgears.
2007-11-06 13:39:36 -07:00
José Fonseca
26eb608a35 Handle the corner case of 24bit depth buffer with 0bit stencil buffer. 2007-11-06 20:10:18 +00:00
Kristian Høgsberg
286ce27193 Fix compilation for !GLX_DIRECT_RENDERING. 2007-11-06 14:34:15 -05:00
Kristian Høgsberg
001de0ac4e Remove a couple of "deprecated" fields from __GLXcontextRec.
The __GLXcontextRec struct is internal to the libGL implementation.  No point
in "deprecating", just get rid of it.
2007-11-06 13:32:33 -05:00