summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2008-03-13 [i965] multiple rendering target supportZou Nan hai
2008-03-10Move make install logic for libGL back into src/mesa/Makefile.Kristian Høgsberg
This makes make install work again for non-glx libGL implementations. The make install logic is split into three sub-targets: install-libgl, install-osmesa, install-drivers. The install target in src/glx/x11 is then implemented using the src/mesa make install-libgl rule. Thanks to Dan Nicholson for pointing out the breakage.
2008-03-10fix parsing of state.texenv.color (bug 14931)Brian
2008-03-09DRI2: Make setTexBuffer take a __DRIdrawable instead of a BO handle.Kristian Høgsberg
This fixes a problem where texturing from the same Pixmap more than once per batchbuffer would hang the DRI driver. We just use the region associated with the front left renderbuffer of the __DRIdrawable for texturing, which avoids creating different regions for the same BO. This change also make GLX_EXT_texture_from_pixmap work for direct rendering, since tracking the __DRIdrawable -> BO handle now uses the standard DRI2 event buffer. Of course, DRI2 direct rendering doesn't exist yet. Finally, this commit bumps the DRI interface version again, accounting for the change in the DRI_TEX_BUFFER extension and the change in commit 0bba0e5be7a4a7275dad1edc34bdcc134ea1f424 to pass in the event buffer head index on drawable creation.
2008-03-09DRI2: Drop DriverAPI.UpdateBuffer.Kristian Høgsberg
__dri2ParseEvents() would determine the kind of event, but then call UpdateBuffer() in either case, and UpdateBuffer() would then have to figure that out again to dispatch to HandleBufferAttach() or HandleDrawableConfig(). Pretty pointless.
2008-03-09DRI2: Pass the context instead of the screen to __dri2ParseEvents().Kristian Høgsberg
Makes a lot more sense, since the screen is always implicit in the DRI drawable, but it may not be possible to track down a context from just a drawable.
2008-03-09DRI2: Add event buffer head as an argument to driCreateNewDrawable().Kristian Høgsberg
The DRI driver needs to know where in the buffer to start reading.
2008-03-09fix botched test for clearing color buffers (should fix depth peeling ↵Brian
regression)
2008-03-09Set normalized flag for GLubyte arrays in _mesa_VertexAttribPointerNV()Markus Amsler
2008-03-09init vertex weight attrib to (1,0,0,0)Markus Amsler
2008-03-09fix __builtin_expect() definition test for IBM XLC (sf bug 1909832)Brian
2008-03-09replace // comment with /* */ (bug 14916)Brian
2008-03-08Move DRI context functions into dri_glx.c.Kristian Høgsberg
Also drop isDirect flag; if gc->driContext is non-NULL, it's direct.
2008-03-08Move libGL install target to the libGL Makefile.Kristian Høgsberg
2008-03-07[intel] Only enable GL_EXT_texture_sRGB on i965.Kristian Høgsberg
Fixes #14799.
2008-03-07 [i965] fix fd.o bug #11471 and #11478Zou Nan hai
1. Follow EXT_texture_rectangle with YCbCr texture 2. swap UV component for MESA_FORMAT_YCBCR
2008-03-07i965: use RGB565 to render a bitmap if Depth is 16Xiang, Haihao
2008-03-06i965: Fix double free issue to pass glean/maskedClear testXiang, Haihao
2008-03-06i965:fix segfault issue when clearing the window whichXiang, Haihao
is created with mode GLUT_SINGLE|GLUT_RGB|GLUT_DEPTH. This issue is introduced by 20b8bff49cba3e8246e29004c5ff38f231d589ff
2008-03-05[intel] Add a driconf option to cache freed buffer objects for reuse.Eric Anholt
This is defaulted off as it has potentially large memory costs for a modest performance gain. Ideally we will improve DRM performance to the point where this optimization is not worth the memory cost in any case, or find some middle ground in caching only limited numbers of certain buffers. For now, this provides a modest 4% improvement in openarena on GM965 and 10% in openarena on GM945.
2008-03-04r300: replace some hard coded mask by define in stencil areaChristoph Brill
2008-03-04r300: Fix some issues with masks in stencil buffer areaChristoph Brill
2008-03-03[dri2] Add tail pointer to reemitDrawableInfo callback.Kristian Høgsberg
When the DRI doesn't parse the event buffer for a while, the X server may overwrite data that the driver didn't get a chance to look at. The reemitDrawableInfo callback requests that the X server reemit all info for the specified drawable. To make use of this, the drive needs to know the new tail pointer so it know where to start reading from.
2008-03-03[dri2] Optimize event parsing to skip obsolete events.Kristian Høgsberg
This also fixes the problem where the X server does multiple resizes before the DRI driver gets the events. The obsolete buffer attach events then reference already destroyed buffer objects.
2008-03-03[intel] Silence unused variable warning when compiling for i965.Kristian Høgsberg
2008-03-02nouveau: compilation fixesPatrice Mandin
2008-03-01state.depth.range alpha value should be 1, not 0 (bug #14733)Roland Scheidegger
2008-02-29Use __DRIextension mechanism providing loader functionality to the driver.Kristian Høgsberg
Instead of passing in a fixed struct, the loader now passes in a list of __DRIextension structs, to advertise the functionality it can provide to the driver. Each extension is individually versioned and can be extended or phased out as the interface develops.
2008-02-29Reduce the versioning madness required to create a DRI2 screen.Kristian Høgsberg
Right now the DRI2 screen constructor takes 3 different versions: DRI, DDX and DRM. This is mostly useless, though: DRI: The DRI driver doesn't actually care about the DRI protocol, it only talks to the loader, which in turn speaks DRI protocol. Thus, the DRI protocol version is of not interest to the DRI driver, but it needs to know what functionality the loader provides. At this point that's reflected in the __DRIinterfaceMethods struct and the internal_version integer. DDX: The DDX version number is essentially used to track extensions to the SAREA. With DRI2 the SAREA consists of a number of versioned, self-describing blocks, so the DDX version is no longer interesting. DRM: We have the fd, lets just ask the kernel ourselves.
2008-02-29intel: Set the lock flag early to avoid deadlock.Kristian Høgsberg
Another regression from the intel_context.c merge.
2008-02-29i965: use _Current pointer instead of Current pointer.Xiang, Haihao
fix double free issue(bug#14710). It also corrects glsl/bitmap demo behavior.
2008-02-28[965] Fix conditional sequencing to allow the frame_buffer_texobj case.Eric Anholt
Previously the frame_buffer_texobj case would have been bound as a normal texture, at best resulting in no surface data being associated with it.
2008-02-28[intel] Bug #14575: Unmap buffers when deleting/dataing as required.Eric Anholt
Otherwise, we would assertion error when doing the final unreference of the buffer with an outstanding map (catching the memory leak).
2008-02-28r300: R5xx and R3xx use different registers for RS_IP and RS_INSTChristoph Brill
These changes are taken from the xf86-video-ati driver. They update the header file accordingly and also remove some UNKOWN variables.
2008-02-28[965] Bug #9151: make fragment.position return window coords not screen coords.Eric Anholt
2008-02-28[965] Fix serious copy'n'paste failure in brw state dumping.Eric Anholt
2008-02-28mesa: separate shader program object from shader object.Xiang, Haihao
Currently a callback delete_shader_cb is used for deleting shader and shader program objects. Mesa detaches all attached shaders in _mesa_free_shader_program_data when deleting shader program objects. However it is likely that these shaders have been freed in _mesa_free_shader, which will result in unexpected behaviour. This fix uses a single callback for shader program objects and deletes shader program objects before shader objects.
2008-02-28[intel] fix compressed image heightZou Nan hai
2008-02-28Convert crlf->lf line endings.José Fonseca
Windows/DOS users should enable core.autocrlf from now on: git config --global core.autocrlf true
2008-02-27r300: properly handle GL_POINT in glPolygonModeChristoph Brill
Until now the polygon mode was completely turned of when you used GL_POINT. For me it looked buggy to completely disable the polygon mode for FrontMode and BackMode if any of these was GL_POINT.
2008-02-27intel: Always use intelInitExtensions() for initializing extensions.Kristian Høgsberg
2008-02-27r300: add artificial output to match fragment program inputMarkus Amsler
2008-02-27mesa: set input read only on successMarkus Amsler
2008-02-26i965: Setup framebuffer texture in meta_draw_region.Kristian Høgsberg
With DRI2 we there is no screen region until a drawable is bound to the context. Set up the framebuffer texture in meta_draw_region instead which should also handle the case where the draw region changes as a result of resizing a redirected window or resizing the screen.
2008-02-26[965] Don't segfault on INTEL_DEBUG=batch when a surface buffer is NULL.Eric Anholt
2008-02-26[965] remove dead brw_parameter_list_state_flags.Eric Anholt
This was replaced by Mesa core code.
2008-02-26[r300] fix wow-pinkness regression. Fixed by Markus AmslerChristoph Brill
2008-02-26[r300] Document based on chapter 10.4 and 10.5Christoph Brill
This commit adds most of the graphics backend registers and of the rasterizer registers. Again, some minor bugs were found and marked with TODO or even fixed.
2008-02-26 [i915] fix texture size exceed limit case when running celestiaZou Nan hai
2008-02-26[intel] Handle -EAGAINs correctly in execbuffer.Thomas Hellstrom
Dont stop on fence creation errors.