summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
AgeCommit message (Collapse)Author
2007-12-19Fix problem with initial viewport/scissor size.Brian
If an app never called glViewport, the viewport size was always 0 by 0 pixels. Now pass initial size to st_create_framebuffer() and initialize the viewport and scissor bounds in st_make_current(). This could also be fixed by ensuring the gl_framebuffers passed to _mesa_make_current() were initialized to the right size. But that involves allocating the renderbuffers/pipe_surfaces earlier and that runs into some other issues ATM. Also remove obsolete createRenderbuffers param to st_create_framebuffer().
2007-12-12Re-org of st_create_framebuffer() and renderbuffer format selection.Brian
st_create_framebuffer() now takes pipe_formats for the color, depth, stencil buffers. This avoids a round-about chain of calls to pipe->is_format_supported() for window renderbuffers (their format never changes). Renderbuffer format selection code in st_format.c is simpler now too.
2007-12-12update format param typeBrian
2007-12-12i915tex: remove. it's deprecated and causes merge problemsZack Rusin
we did some small changes in the beginning of the gallium3d lifecycle in i915tex which is not in master anymore and just causes problems when doing merges. getting rid of the headache by just nuking it here
2007-12-11Rework gallium and mesa queries a little.Keith Whitwell
Add a 'CheckQuery()' driver callback to mesa to check query completion. Make pipe_query an opaque type. Rework softpipe queries, support overlapping occlusion queries.
2007-12-11Add surface storage allocation function to winsys interface.José Fonseca
2007-12-10Add 'type' parameter to is_format_supported() to specify texture vs. drawing ↵Brian
surface, etc. Additional types may be added in the future.
2007-12-10Link fewer common objects into Gallium winsys layers.Michel Dänzer
These are useless or even harmful due to referencing symbols no longer available in the Gallium build.
2007-12-10Remove stray references to struct pipe_region.Michel Dänzer
2007-12-09Adapt for winsys interface changes.José Fonseca
2007-12-07Move _mesa_init_glsl_driver_functions() into shader_api.cBrian
This allows making a bunch of functions static, and removes a state tracker dependency on driverfuncs.c
2007-12-07Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.Brian
This makes debugging a _lot_ easier. In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
2007-12-07Get rid of "duplicate" formats.Brian
For example, replace PIPE_FORMAT_U_A8_R8_G8_B8 with PIPE_FORMAT_A8R8G8B8_UNORM
2007-12-07Eliminate struct pipe_region.Michel Dänzer
Directly use struct pipe_buffer_handle for storage and struct pipe_surface for (un)mapping.
2007-12-06Hide texture layout details from the state tracker.Michel Dänzer
pipe->get_tex_surface() has to be used for access to texture image data.
2007-11-29Move dimensions from struct pipe_region to struct pipe_surface.Michel Dänzer
2007-11-22Remove fences from the i915simple winsys interface.José Fonseca
Fences will be part of the pipe winsys interface, so remove this to avoid merge conflicts later on. This reverts commit ca7f68a7cf25a51f382bba8c42d8c6ab7db57b5d. This reverts commit dec60d33b2570cf2bdce72a00a1539ee93133f91. This reverts commit 90dd0cb822f2fe14258c786e5c37da69472b7d17.
2007-11-17Fix typoJosé Fonseca
2007-11-17Proper fence reference counting.José Fonseca
2007-11-15Include fences in the i915simple winsys interface.José Fonseca
2007-11-08check for fence==NULL in intel_batchbuffer_finish(), fixes glxinfo crash on exitBrian
2007-11-08Rename struct field 'private' to 'priv'.Michel Dänzer
This broke the LLVM build because 'private' is a C++ keyword.
2007-11-07Remove winsys->wait_idle(), subsumed by pipe->flush().Brian
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-07New PIPE_FLUSH_WAIT flag for pipe->flush().Brian
The state tracker doesn't have to directly call winsys->wait_idle() anymore. glFlush and glFinish both go through pipe->flush() now.
2007-11-07Remove context dependencies in winsys layer.Brian
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-07cosmetic fix to driFenceFinish() callBrian
2007-11-07replace magic number 3 with DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW in ↵Brian
driFenceFinish() call
2007-11-07remove DriverCtx=intel assigment/hackBrian
2007-11-07Pass winsys as a parameter to intel_create_i915simple(), intel_create_softpipe()Brian
2007-11-07var renaming: s/sws/winsys/Brian
2007-11-07Add winsys->surface_release() to complement winsys->surface_alloc().Brian
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-06restore dispatch/extension code (without, dynamic entrypoints aren't added)Brian
2007-11-06remove more dependencies on Mesa types/functionsBrian
2007-11-06implement context sharing codeBrian
2007-11-06code clean-upBrian
2007-11-06Remove use of Mesa/GL types/functions (s/GLuint/uint/ etc)Brian
2007-11-06don't include mtypes.hBrian
2007-11-06Remove last of core Mesa dependencies in intel_swapbuffers.cBrian
Use the "dummyContext" pointer (for now) instead of GET_CURRENT_CONTEXT().
2007-11-06Supply buffer usage hints to winsys.José Fonseca
Winsys driver needs some hints in order to allocate the appropriate kind of memory for the buffer.
2007-11-05clean upsBrian
2007-11-05change includes, minor simplification in intelDisplaySurface()Brian
2007-11-05include mtypes.h (temporary)Brian
2007-11-05Remove some temporary state tracker context/framebuffer_create functions.Brian
2007-11-05Update xlib driver to use newer state tracker context/framebuffer functions.Brian
XMesaContext has an st_context * which contains a mesa context.
2007-11-05asst clean-upsBrian
2007-11-05remove some GL types, mesa includesBrian
2007-11-05move intel_context_mesa() into intel_swapbuffers.c (the only place it's used ↵Brian
now)
2007-11-05Move driBatchPoolInit() into new intel_batchpool.h header.Brian
Note that intel_batchpool.[ch] have no intel-specific dependencies at this poi Maybe rename files for re-use in the future.
2007-11-05Move driBatchPoolInit() into new intel_batchpool.h header.Brian
Note that intel_batchpool.[ch] have no intel-specific dependencies at this point. Maybe rename files for re-use in the future.
2007-11-05remove intelScreenPrivate typedef and use cast wrapper function to be like ↵Brian
intel_context and intel_framebuffer