summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-05-12swrast: update/restore the opt_sample_rgb/rgba_2d() functionsBrian Paul
2009-05-12radeon: glReadBuffer set _NEW_BUFFERS, not _NEW_PIXELJerome Glisse
This was broken with last merge see 62043b27575c378c027251316421e4699f461108 for explanations
2009-05-12r300/r500: make sure we detect constant buffer changesJerome Glisse
This was broken with last merge see f48473e42511f8d37a239a07f791bc0a87209e5b for explanations.
2009-05-12radeon: avoid segfault in radeon_update_renderbuffers() if using DRI1Tormod Volden
Basically the same as 43d9020ff1e975e7f4f9480d9ef24f0b9fb2141f for intel. Bug 21688. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2009-05-12glXChooseVisual: Only consider fbconfig if we can get the corresponding visual.Michel Dänzer
This can fail, e.g. when XLIB_SKIP_ARGB_VISUALS=1 is set. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524794 and http://bugs.freedesktop.org/show_bug.cgi?id=21600 .
2009-05-11Test either GL_FRONT_LEFT or GL_FRONT for front-buffer renderingIan Romanick
For non-stereo visuals, which is all we support, we treat GL_FRONT_LEFT as GL_FRONT. However, they are technically different, and they have different enum values. Test for either one to determine if we're in front-buffer rendering mode. This fix was suggested by Pierre Willenbrock. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 2085cf24628be7cd297ab0f9ef5ce02bd5a006e2)
2009-05-11Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: Makefile src/mesa/main/version.h
2009-05-11st: do proper refcounting for framebuffer surfacesBrian Paul
2009-05-11r300-gallium: unbreak buildJoakim Sindholt
2009-05-11r300-gallium: Setup surface in r300_surface_copy.Corbin Simpson
I haven't tested, but this may unbreak surface copies.
2009-05-11r300-gallium: Cleanup some compile warnings.Corbin Simpson
2009-05-11r300-gallium: Cleanup PSC for HW TCL.Corbin Simpson
Still dies in assert, but at least it's not my assert anymore. :3
2009-05-11radeon-gallium: Forgot a typedef.Corbin Simpson
2009-05-11radeon-gallium: Support new info ioctls in addition to classic getparams.Corbin Simpson
This makes non-hybrid kernels like newttm from drm-next-radeon work while avoiding breakage with Fedora/Ubuntu/etc.
2009-05-11mesa: updated comments for _mesa_generate_mipmap()Brian Paul
2009-05-11i965: handle extended swizzle terms (0,1) in get_src_reg()Brian Paul
Fixes failed assertion in progs/glsl/twoside.c (but still wrong rendering).
2009-05-11mesa: better handling/printing of driver-specific opcodes, register filesBrian Paul
Drivers such as i965 define extra instruction opcodes and register files. Improve the program printing code to handle those opcodes/files better.
2009-05-11mesa: Fixed a texture memory leakBrian Paul
The current texture for any particular texture unit is given an additional reference in update_texture_state(); but if the context is closed before that texture can be released (which is quite frequent in normal use, unless a program unbinds and deletes the texture and renders without it to force a call to update_texture_state(), the memory is lost. This affects general Mesa; but the i965 is particularly affected because it allocates a considerable amount of additional memory for each allocated texture. (cherry picked from master, commit c230767d6956b63a2b101acb48f98823bb5dd31a)
2009-05-10radeon: add support for new dri2 interfaces & fix single buffer renderingJoel Bosveld
2009-05-10Merge commit 'origin/master' into radeon-rewriteJerome Glisse
Conflicts: src/mesa/drivers/dri/r200/r200_state.c src/mesa/drivers/dri/r300/r300_context.h src/mesa/drivers/dri/r300/r300_fragprog.c src/mesa/drivers/dri/r300/r300_state.c src/mesa/drivers/dri/r300/r300_texmem.c src/mesa/drivers/dri/r300/r300_texstate.c src/mesa/drivers/dri/r300/r500_fragprog.c src/mesa/drivers/dri/radeon/radeon_screen.c src/mesa/drivers/dri/radeon/radeon_state.c
2009-05-09gallium: replace lib with $(LIB_DIR)Hanno Böck
2009-05-09radeon: don't include cs uncondionalyJerome Glisse
2009-05-09radeon-gallium: Clean up some of the BO counting logic.Corbin Simpson
2009-05-09r300-gallium: vs: Make imms work, cleanup some of the switches.Corbin Simpson
2009-05-09r300-gallium: Start VS dumper.Corbin Simpson
2009-05-09r300-gallium: vs: Add SLT, clean up MAX.Corbin Simpson
This should be all the opcodes for basic TCL.
2009-05-09r300-gallium: vs: Add MAX.Corbin Simpson
2009-05-09r300-gallium: vs: Add scalar setup, RSQ.Corbin Simpson
Icky icky icky icky. Icky icky, icky icky. Icky.
2009-05-09r300-gallium: vs: Add writemasks.Corbin Simpson
2009-05-08r300-gallium: Fix bad cast. Space accounting completely works now.Corbin Simpson
Boy, is my face red. :C
2009-05-08r300-gallium, radeon: BO handling fixes, some useful asserts.Corbin Simpson
2009-05-08radeon-gallium: Shut up Valgrind.Corbin Simpson
2009-05-08r300-gallium, radeon: A couple cleanups.Corbin Simpson
Trying to track down goddamn bugs. :C
2009-05-08r300-gallium: Finish space accounting.Corbin Simpson
Still broken...
2009-05-08i965: improve debug loggingRobert Ellison
Looking for memory leaks that were causing crashes in my environment in a situation where valgrind would not work, I ended up improving the i965 debug traces so I could better see where the memory was being allocated and where it was going, in the regions and miptrees code, and in the state caches. These traces were specific enough that external scripts could determine what elements were not being released, and where the memory leaks were. I also ended up creating my own backtrace code in intel_regions.c, to determine exactly where regions were being allocated and for what, since valgrind wasn't working. Because it was useful, I left it in, but disabled and compiled out. It can be activated by changing a flag at the top of the file.
2009-05-08i965: fix memory leak in context/renderbuffer region managementRobert Ellison
A temporary change to the intelMakeCurrent() function to make it work with frame buffer objects causes the static regions associated with the context (the front_region, back_region, and depth_region) to take on an additional reference, with no corresponding release. This causes a memory leak if a program repeatedly creates and destroys contexts. The fix is the corresponding hack, to unreference these regions when the context is deleted, but only if the framebuffer objects are still present and the same regions are still referenced within. Both sets of code have comment blocks referring to each other.
2009-05-08i965: fix segfault on low memory conditionsRobert Ellison
When out of memory (in at least one case, triggered by a longrunning memory leak), this code will segfault and crash. By checking for the out-of-memory condition, the system can continue, and will report the out-of-memory error later, a much preferable outcome.
2009-05-08mesa: Fixed a texture memory leakRobert Ellison
The current texture for any particular texture unit is given an additional reference in update_texture_state(); but if the context is closed before that texture can be released (which is quite frequent in normal use, unless a program unbinds and deletes the texture and renders without it to force a call to update_texture_state(), the memory is lost. This affects general Mesa; but the i965 is particularly affected because it allocates a considerable amount of additional memory for each allocated texture.
2009-05-08intel: Add a metaops version of glGenerateMipmapEXT/SGIS_generate_mipmaps.Eric Anholt
In addition to being HW accelerated, it avoids the incorrect (black) rendering of the mipmaps that SW was doing in fbo-generatemipmap. Improves the performance of the mipmap generation and drawing in fbo-generatemipmap by 30%.
2009-05-08intel: Put the constant texcoords used in metaops into a vbo.Eric Anholt
Make this be its own function for setup/teardown of the binding of these texcoords. No performance difference in the engine demo (I just felt dirty not using a VBO for this), and I think it should be more resilient to interference from current GL state.
2009-05-08mesa: set version to 7.5-rc1Brian Paul
2009-05-08i965: const qualifiersBrian Paul
2009-05-08mesa: raise MAX_VARYING (number of shader varying vars) to 16Brian Paul
16 is the limit for now because of various 32-bit bitfields.
2009-05-08mesa: assertions to check for too many vertex outputs or fragment inputsBrian Paul
2009-05-08glsl: check number of varying variables against the limitBrian Paul
Link fails if too many varying vars.
2009-05-08mesa: issue warning for out of bounds array indexesBrian Paul
2009-05-08i965: don't use GRF regs 126,127 for WM programsBrian Paul
They seem to be used for something else and using them for shader temps seems to lead to GPU lock-ups. Call _mesa_warning() when we run out of temps. Also, clean up some debug code.
2009-05-08glsl: set vertex/fragment program Ids to aid with debuggingBrian Paul
2009-05-08mesa: more shader debug code (disabled)Brian Paul
2009-05-08radeon: IRQ always enabled in DRI2 path no need to query kernel for itJerome Glisse