summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-03-14mesa: fix emit_clamp() so that we don't use an output register as temporaryBrian
IR_CLAMP is decomposed into OPCODE_MIN+OPCODE_MAX. Allocate a temporary register for the intermediate value so we don't inadvertantly use an output register (which are write-only on some GPUs).
2008-03-14glx: fix rotation regression. bug #14963Xiang, Haihao
2008-03-14intel: fix abort issue with shadowtex demo when useXiang, Haihao
DEPTH_STENCIL texture. (bug#14952).
2008-03-13fix state.lightprod ambient/specular w value (bug #14983)Roland Scheidegger
2008-03-13 [i965] multiple rendering target supportZou Nan hai
2008-03-12libGL: Pull the drawable hash back out in the generic code.Kristian Høgsberg
This will be shared between dri and dri2 code.
2008-03-12Add another missing check for uninitialized DRI.Kristian Høgsberg
Spotted by Chris Taylor.
2008-03-11Fix include path for rain demo so glut.h is foundDan Nicholson
2008-03-10autoconf: Enable xdemos by default when we build libGLDan Nicholson
Since the xdemos only link to libGL now, we can enable them for all but the osmesa driver target.
2008-03-10Darwin: Fixed small error in darwin config filesJeremy Huddleston
(cherry picked from commit a21c61ee8bc86a8843024cbf8e9daf4b39a7571a)
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-10Only try to call DRI function if DRI got initialized properly.Kristian Høgsberg
2008-03-10Darwin: Config/source fixes to now build glxdemo apps and OSMesaJeremy Huddleston
Also added darwin-fat-32bit darwin-fat-all configs and deleted old darwin-x86ppc config (cherry picked from commit 7120c0089d663a2b7e7b0c97da38f9bc233fbdd7)
2008-03-10autoconf: Add autogen.sh from Xorg for easier setup from gitDan Nicholson
The defacto method to rebuild the autotools and run the generated configure is an autogen.sh script. It is much more discoverable than the custom `make configure' used here. The Makefile targets are still useful for creating tarballs, though. This autogen.sh is copied from Xorg.
2008-03-10Ignore more demo programsDan Nicholson
2008-03-10remove extra #include of assert.h (bug 14932)Brian
2008-03-10fix parsing of state.texenv.color (bug 14931)Brian
2008-03-10dri: fix function call to add new parameter.Dave Airlie
This may not be correct but it should get the build going.
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-09Properly revert the libGL loader path breakage.Kristian Høgsberg
2008-03-09libGL: Fall back to DEFAULT_DRIVER_DIR properly.Kristian Høgsberg
After commit 6fd82f6fbd208dc7b1839ea408a5fb28589ee622, we would overwrite the libPath default value with NULL if libGL was running non-setuid and none of the env vars were set. Thanks to Magnus Kessler <Magnus.Kessler@gmx.net> for spotting it.
2008-03-09replace // comment with /* */ (bug 14916)Brian
2008-03-09added info about checking out gallium-0.1 for cell codeBrian
2008-03-08Use _X_HIDDEN to hide a bunch of leaked symbols.Kristian Høgsberg
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 DRI drawable creation into dri_glx.c.Kristian Høgsberg
2008-03-08Introduce __GLXDRIscreen so we can start moving function pointers in there.Kristian Høgsberg
Temporarily rename the __DRIscreen member to __driScreen. Eventually, we'll move that into __GLXDRIscreen and only access it in dri_glx.c.
2008-03-08Move DRI specific parts of CreateContext into dri_glx.c.Kristian Høgsberg
2008-03-08Convert driCreateScreen and driDestroyScreen to function pointers.Kristian Høgsberg
We avoid leaking the symbols and will be able to replace them with DRI2 implementation later on.
2008-03-08Abstract __DRIdisplayPrivateRec away in dri_glx.c.Kristian Høgsberg
This patch moves __DRIdisplayPrivateRec definition into dri_glx.c and let's dri_glx.c allocate the __DRIdisplay struct pointer to from __GLXdisplayPrivate. A small step towards moving more of the dri functionality into dri_glx.c.
2008-03-08Make __glXCloseDisplay static instead of prototyping it to avoid warning.Kristian Høgsberg
2008-03-08Move libGL install target to the libGL Makefile.Kristian Høgsberg
2008-03-08Simplify LIBGL_DRIVERS_PATH walking.Kristian Høgsberg
2008-03-08Simplify dri loading code by eliminating dlopen "cache".Kristian Høgsberg
No need to jump through hoops to track __DRIdrivers and avoid dlopening the same .so more than twice, dlopen() does this internally. Besides, we were already bypassing this and dlopening drivers for each screen, whether or not they were already dlopened.
2008-03-08libGL: Consolidate DRI initialization in dri_glx.cKristian Høgsberg
Move a lot of code over from glx_ext.c.
2008-03-07autoconf: Print GCC include path directly and be more robust using itDan Nicholson
Rather than constructing the GCC include path from `-print-search-dirs', we can get the path directly from `-print-file-name=include'. This is used in the Linux kernel build, for example. If no output is returned from the command, then we don't append a -I path the the makedepend options.
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