summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-02-02progs/es2: Fix an assertion failure in tri.Chia-I Wu1-2/+3
EGL_SURFACE_TYPE is a config attribute, not a surface attribute. Thanks to Mike Stroyan for pointing out this error.
2010-02-01st/mesa: fix texture deallocation bugBrian Paul1-12/+10
This fixes a bug reported by Christoph Bumiller on mesa3d-dev. When a texture is first created as RGBA, then re-defined with glTexImage(internalFormat=GL_DEPTH_COMPONENT) we failed to deallocate the original texture. When this texture was bound as a FBO surface, the depth/Z surface format was RGBA instead of Z. Depending on the driver this led to a failed assertion or FBO validation failure. This patch does three things: 1. Remove ancient code that mysteriously tested if we were replacing the smallest mipmap level and tested if the texture was not a cube map texture. I can't see any reason for those tests. 2. Move the width=height=depth=0 test to after the code which frees texture data. Calling glTexImage with width=height=depth=0 and data=NULL is a way to free a single mipmap level. 3. Update the code comments. There are no apparent conform, glean or piglit regressions from this change. (cherry picked from commit 43e4b584227534e30e487e7fb7e99d6501cbcd85)
2010-02-01progs/tests: add another FBO test to exercise a RGBA vs. Z texture bugBrian Paul3-0/+233
See comments in file for more details.
2010-02-01mesa: change _mesa_find_free_register() to find multiple free regsBrian Paul3-29/+62
Before, _mesa_find_free_register() would scan the given shader to find a free/unused register of the given type. But subsequent calls would return the same register again. This caused a failure in the _mesa_remove_output_reads() function which sometimes needs several free temps. Now use a new function which build a vector of 'used' flags and another function which searches that vector for an unused register starting at a position that's incremented for each call. Fixes fd.o bug 26317. Note that a regression test for this has been added to the glean/glsl1 test. (cherry picked from commit e0d01c9d7f46ccd531f8dd1a04c5ac067200ef1e)
2010-02-01r300g: Inline immediates where possible.Corbin Simpson2-8/+60
Oh look, more gears. Seems to work just fine though.
2010-02-01st/mesa: remove duplicate calculation of fp input mappingKeith Whitwell5-37/+12
This was being calculated the same way in two different places. Now just do it in st_translate_fragment_program().
2010-02-01st/mesa: remove dead stfp input_map arrayKeith Whitwell2-12/+0
Was being calculated and not used. Also was probably incorrect...
2010-02-01mesa: added _mesa_print_vp/p_inputs() functions (debug aids)Brian Paul2-0/+47
2010-02-01glslcompiler: add glapi_nop.o to OBJECTSBrian Paul1-0/+1
2010-02-01mesa: Remove unnecessary headers.Vinson Lee3-7/+0
2010-02-01glx: Remove unnecessary headers.Vinson Lee8-12/+0
2010-01-31st/dri: Remove duplicate type qualifier.Vinson Lee1-1/+1
2010-01-31i965g: Add missing va_end.Vinson Lee1-0/+1
2010-01-31r300g: Fix memory leak on memory allocation failure.Vinson Lee1-1/+4
2010-01-31r600: Remove duplicate assignment.Vinson Lee1-1/+1
2010-01-31egl: Remove unnecessary headers.Vinson Lee3-3/+0
2010-02-01nv04: Update to new nouveau_class.hMarcin Koƛcielnicki1-20/+20
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-02-01nv50/nv40/nv30: fix small memory leak of nouveau_resources on screen_destroyMarcin Slusarz3-6/+9
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-02-01nv10, nv20: Fix build.Francisco Jerez2-2/+2
2010-01-31egl: Clean up surface attributes.Chia-I Wu3-57/+127
Add missing attributes and use correct types in _EGLSurface. Remove ifdef tests that serve no purpose. Update _eglQuerySurface and _eglSurfaceAttrib for missing queries and checks.
2010-01-31egl: Add support for more EGLImage extensions to EGL core.Chia-I Wu4-11/+60
Add support EGL_KHR_vg_parent_image and EGL_KHR_gl_*. This is as simple as adding some flags that can be enabled. Individual drivers need to implement the extensions before enbaling the flags.
2010-01-31st/mesa: Remove unnecessary headers.Vinson Lee3-3/+0
2010-01-31mesa: Remove unnecessary headers.Vinson Lee4-10/+0
2010-01-31i965: Silence uninitialized variable warning.Vinson Lee1-1/+1
2010-01-30r300g: Silence uninitialized variable warning.Vinson Lee1-1/+1
2010-01-31egl: Surface type validaction should depend on extensions supported.Chia-I Wu1-1/+2
EGL_SCREEN_BIT_MESA is a valid bit only when EGL_MESA_screen_surface is supported.
2010-01-31egl: Initialize display configs with the display.Chia-I Wu5-6/+8
This changes _eglInitConfig to take the display as its argument.
2010-01-31egl: Initialize display resources with their display.Chia-I Wu9-18/+21
Change _eglInitSurface, _eglInitContext, and _eglInitImage to take an _EGLDisplay instead of an _EGLDriver. This is a more natural form, and plus, the display encodes information such as the extensions supported that might be required for attribute list parsing.
2010-01-31egl: Refactor _eglInitImage.Chia-I Wu1-10/+40
Refactor attribute list parsing code to _eglParseImageAttribList.
2010-01-31egl: Refactor _eglInitContext.Chia-I Wu1-19/+95
Refactor attribute list parsing code to _eglParseContextAttribList. Add a check to make sure the config supports the client API.
2010-01-31egl: Refactor _eglInitSurface.Chia-I Wu1-141/+146
Refactor attribute list parsing code to _eglParseSurfaceAttribList.
2010-01-30i915: Set bit field of length 1 light_twoside to unsigned.Vinson Lee1-1/+1
2010-01-30glut: Remove unnecessary headers.Vinson Lee6-6/+0
2010-01-30radeon: Remove unnecessary headers.Vinson Lee13-40/+0
2010-01-30r600: Remove unnecessary headers.Vinson Lee11-24/+0
2010-01-30r300: Remove unnecessary headers.Vinson Lee1-2/+0
2010-01-30r200: Remove unnecessary headers.Vinson Lee9-24/+0
2010-01-30r128: Remove unnecessary headers.Vinson Lee9-20/+0
2010-01-31egl: Remove code blocks that are commented out.Chia-I Wu4-113/+4
They are either unit tests or to demonstrate how functions are supposed to be used. The unit test is outdated and it should be better to take a look at any of the working drivers to see how a function is used.
2010-01-31progs/egl: Update eglinfo to display more attributes.Chia-I Wu2-11/+21
Add config caveat, bind-to-texture, and renderable type. Remove double buffer and stereo attributes.
2010-01-31st/egl: Do not ignore configs without a renderable type.Chia-I Wu1-6/+6
Configs without a renderable type are still informative for programs such as eglinfo.
2010-01-31st/egl: Remove egl_g3d_get_current_context.Chia-I Wu1-16/+4
There is now _eglGetAPIContext that can return the current context of the given API.
2010-01-30intel: Remove unnecessary headers.Vinson Lee6-8/+0
2010-01-30i965: Remove unnecessary headers.Vinson Lee3-3/+0
2010-01-30i915: Remove unnecessary headers.Vinson Lee2-2/+0
2010-01-30intel: Respect texture tiling when doing a PBO blit teximage upload.Eric Anholt1-1/+2
Bug #26008. Fixes piglit pbo-teximage-tiling-2.
2010-01-30Revert "r300g: Don't handle SHADOW_AMBIENT."Corbin Simpson1-0/+6
This reverts commit 627a45848faf9e6d19d386b9eb30d36bf18d0998. I was wrong. Who could have known? :3
2010-01-30intel: Fix inverting of inversion test for windows in glClear cleanup.Eric Anholt1-2/+2
Bug #26290.
2010-01-30r300g: Independent blend enables only work on r500.Corbin Simpson2-5/+16
2010-01-30r300g: Don't handle SHADOW_AMBIENT.Corbin Simpson1-6/+0
Bisected so that only this commit has to be reverted if I'm wrong. ...Pfft, like I'm ever wrong. :3