summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-05-14Merge remote branch 'origin/7.8' into 7.8-gles7.8-glesKristian Høgsberg34-232/+241
2010-05-14egl: Implement EGL_NOK_texture_from_pixmapKristian Høgsberg8-29/+61
This extension allows a color buffer to be used for both rendering and texturing. EGL allows the use of color buffers of pbuffer drawables for texturing, this extension extends this to allow the use of color buffers of pixmaps too.
2010-05-14egl: Only allow valid config attributes in _eglParseConfigAttribList()Kristian Høgsberg1-28/+24
Passing 0x3030, 0 in the chooser list didn't get caught.
2010-05-14egl: remove duplicate ARRAY_SIZE() macro declarationBrian Paul1-1/+1
2010-05-14egl: Silence uninitialized variable warnings.Vinson Lee1-1/+1
2010-05-14egl: Implement EGL_NOK_swap_regionKristian Høgsberg6-2/+98
This extension adds a new function which provides an alternative to eglSwapBuffers. eglSwapBuffersRegionNOK accepts two new parameters in addition to those in eglSwapBuffers. The new parameters consist of a pointer to a list of 4-integer blocks defining rectangles (x, y, width, height) and an integer specifying the number of rectangles in the list.
2010-05-14egl_dri2: Enable KHR_gl_texture_2D_imageKristian Høgsberg1-0/+1
Forgot to set the enabled bit when I implemented the extension.
2010-05-14egl_dri2: Flush before context switch and swap buffers.Chia-I Wu1-0/+18
DRI does not define any callback to flush the current context. GLX loader simply calls glFlush. Follow the GLX loader here.
2010-05-13i965: Fix scissoring when width or height is 0.Eric Anholt1-1/+14
We would run into trouble due to the hardware using inclusive numbers and the subtraction to handle that producing negative (meaning large positive) coordinates. Bug #27643. (cherry picked from commit 64516430be1cbe4904613903887a8178f4b4fc60)
2010-05-13i965: Fix assertion for surface tile offset usage on Ironlake.Eric Anholt1-1/+1
Fixes assertion failure in fbo-generatemipmap-npot. (cherry picked from commit b2e52e727849bd78f8600931261ae69c1b29d6a6)
2010-05-13i965: Fix cube map layouts on Ironlake.Eric Anholt4-70/+24
We were doubling up the offsets for the mipmap levels for CPU access. Instead of reimplementing i945_miptree_layout_2d with 6 cube images separated by qpitch, share that function and provide the level offsets later. Fixes piglit cubemap and fbo-cubemap. (cherry picked from commit 7d8f0fc28239c8023d2d44cbd4c979aa86c31873 Conflict due to mt->pitch still being here resolved -- i945 layout should set it.)
2010-05-13intel: Clean up chipset name and gen num for IronlakeZhenyu Wang24-148/+146
Rename old IGDNG to Ironlake, and set 'gen' number for Ironlake as 5, so tracking the features with generation num instead of special is_ironlake flag. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> (cherry picked from commit cdcef6cbf4dd80047819e9098e34a3b98bd502a4)
2010-05-13egl: Allow a prioritized list of default driversKristian Høgsberg6-26/+45
When there is no user driver or any matching display drivers we fall back to the default driver. This patch lets us have a list of default drivers instead of just one. The drivers are loaded in turn and we attempt to initialize the display. If it fails we unload the driver and move on to the next one. Compared to the display driver mechanism, this avoids loading a number of drivers and then only using one. Also, we call Initialize to see if the driver will work instead of relying on Probe. To know for sure that a driver will work, Probe really have to do a full Initialize, so we will just use Initialize directly.
2010-05-13egl_dri2: Downgrade initialization errors to warningsKristian Høgsberg1-4/+4
Don't want to shutdown everything if egl_dri2 fails to initialize.
2010-05-13egl: Drop broken _EGL_PLATFORM_NO_OS codeKristian Høgsberg1-32/+0
It would do strlen(library_suffix()) in _eglLoaderFile(), with library_suffix() returning NULL. So obviuosly not used or tested.
2010-05-13egl: Don't try to load driver basename if the platform needs a suffixKristian Høgsberg1-3/+5
That is, don't dlopen(egl_glx) when we know we need to append .so.
2010-05-13i965: When an RB gets a new region, clear the old from the state cache.Eric Anholt4-6/+16
This prevents memory usage explosion in blender due to the state cache hanging on to old fake frontbuffer regions. Sigh at blender still using frontbuffer rendering. Bug #24119. (cherry picked from commit ce914fff0817cb3c25a2d715f8435c6b6d6fbcdd)
2010-05-13intel: Don't tile textures so small that size is blown up by over 2x.Eric Anholt1-4/+3
Noted on the mailing list for an app that puts each glyph for its text into a separate texture. (cherry picked from commit 453f0b1f243b26e02b371293e9c8bbf09362c14a)
2010-05-13i965: Reject shaders with uninlined function calls instead of hanging.Eric Anholt1-1/+33
Most of the failure from using uninlined function calls ends up being just bad rendering, but nested function calls in the VS currently hang the GPU, so reject them and explain why. (cherry picked from commit ee29b861298bd165e6b104b218f31c78aed3682a)
2010-05-13mesa: Don't overwrite a driver's shader infolog with generic failure message.Eric Anholt1-1/+4
(cherry picked from commit 07a248a3664e4cd63c98ff3478bdd9b1e45c1398)
2010-05-12Merge remote branch 'origin/7.8' into 7.8-glesKristian Høgsberg5-13/+43
2010-05-12mesa: Add missing features.Chia-I Wu5-7/+11
Add features tested in the code but missing from mfeatures.h. This also fixes some tests of features. They should be tested with "#if", not "#ifdef".
2010-05-12mesa: Add umbrella features.Chia-I Wu1-51/+68
Add FEATURE_GL, FEATURE_ES1, and FEATURE_ES2 for OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x respectively. Define individual features through the new umbrella features. There is no real change introduced by this commit.
2010-05-12egl_dri2: Zero out driver structKristian Høgsberg1-0/+1
Otherwise testing ->Probe for non-NULL and calling it goes boom.
2010-05-12glx: Get GLX_SCREEN first in __glXQueryContextInfo()Kristian Høgsberg1-3/+10
And lookup the GLX screen for the context. Otherwise we'll end up jumping through a NULL-pointer once we try to look up the visual or config for the shared context. https://bugs.freedesktop.org/show_bug.cgi?id=14245
2010-05-07osmesa: fix OSMesa for CHAN_BITS=32Brian Paul1-7/+30
CHAN_BITS=16 still broken. NOTE: this is a candidate for back-porting to the 7.8 stable branch. (cherry picked from commit 36b3a8bd5a317ab297f44b19fd14c7e76ec2fc77)
2010-05-07glsl: change variable declared assertion into conditionalBrian Paul2-3/+2
The slang_variable::declared field originated as a debug field but can be promoted for use during sematic error checking. Fixes fd.o bug 27921. NOTE: this is a candidate for back-porting to the 7.8 stable branch. (cherry picked from commit a12614362a79d676eeb1c3030ed52057bcb8f4f8)
2010-05-06Merge remote branch 'origin/7.8' into 7.8-glesKristian Høgsberg135-7938/+56163
2010-05-06mesa: Fix build of ES overlay.Chia-I Wu5-16/+34
ES overlay is built with FEATURE_ES1 or FEATURE_ES2, and is built without FEATURE_GL. Fix the build by always building OpenGL ES sources, but test for FEATURE_ES1 or FEATURE_ES2. Also, define symbols that are missing because FEATURE_GL is not defined.
2010-05-06Fix gles .pc file generationKristian Høgsberg2-1/+4
2010-05-06Add egl.pc fileKristian Høgsberg3-1/+33
2010-05-06intel: Enable GL_EXT_framebuffer_object for gles2Kristian Høgsberg1-0/+1
2010-05-06gles: Add -I$(TOP)/include.Chia-I Wu1-1/+1
2010-05-06mesa: Forgot to add .pc.in files for glesKristian Høgsberg2-0/+24
Some day I'll grow up and remember to add new files when I commit.
2010-05-06gallium: untrack u_indices_gen.c and u_indices_gen.cXavier Chantry3-6121/+2
These files are built with make and removed with make clean, so it does not seem necessary to track them. Looking at the Makefile, it seems that the two u_indices_* files are handled similarly to u_format_srgb.c u_format_table.c and u_half.c, and these 3 files are already untracked and in .gitignore Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-04mesa/st: Fill in native program limits.José Fonseca1-0/+91
In the lack of more fine grained capabilities in Gallium, assume that if the pipe driver supports GLSL then native limits match Mesa software limits. (cherry picked from commit 40a90cd11234a09c2477f5c9984dd6d9fac3f52c)
2010-05-03mesa: Only initialize TNL for OpenGLKristian Høgsberg1-4/+5
2010-05-03mesa: Only initialize save dispatch table for OpenGLKristian Høgsberg2-14/+14
2010-05-03mesa: Add OES_EGL_image to extension list.Chia-I Wu6-0/+25
2010-05-03Generate es glapi files when es1 or es2 is enabledKristian Høgsberg2-2/+11
2010-05-03Update dri state tracker to use new API aware context createXavier Chantry2-2/+5
2010-05-03configure.ac: Fix test for whether to build src/glesKristian Høgsberg1-1/+1
2010-05-03mesa: Include mfeatures.h before testing feature macrosKristian Høgsberg1-0/+2
2010-05-03mesa: Only compile ES files when ES1 or ES2 are selectedKristian Høgsberg3-6/+18
This still requieres manual generation of the es1 and es2 glapis and is disabled by default.
2010-05-03mesa: #ifdef out more remap_table related code when disabled.José Fonseca2-3/+6
Seems to get everything building again here.
2010-05-03Hook in install rules for es1 and es2Kristian Høgsberg3-0/+12
2010-05-03Add glesv2.pc and glesv1_cm.pc pkg-config files for ES 1 and 2Kristian Høgsberg3-7/+26
2010-05-03st/mesa: Create context for API_OPENGL as first priorityKristian Høgsberg1-4/+4
2010-05-03gles: Build libGLESv1_CM.so and libGLESv2.so from glapi filesKristian Høgsberg4-0/+118
2010-05-03intel: Only register ES2 extensions for ES2 contextsKristian Høgsberg7-2/+108