Kristian Høgsberg
0c3f95e5e8
egl: Drop broken _EGL_PLATFORM_NO_OS code
...
It would do strlen(library_suffix()) in _eglLoaderFile(), with
library_suffix() returning NULL. So obviuosly not used or tested.
2010-05-13 16:15:25 -04:00
Kristian Høgsberg
b3e27bca9f
egl: Don't try to load driver basename if the platform needs a suffix
...
That is, don't dlopen(egl_glx) when we know we need to append .so.
2010-05-13 16:15:19 -04:00
Kristian Høgsberg
4784a5030a
Merge remote branch 'origin/7.8' into 7.8-gles
2010-05-12 16:11:42 -04:00
Chia-I Wu
bf3b9187f0
mesa: Add missing features.
...
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-12 15:54:02 -04:00
Chia-I Wu
d747bfc224
mesa: Add umbrella features.
...
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-12 15:54:00 -04:00
Kristian Høgsberg
f3b55494f3
egl_dri2: Zero out driver struct
...
Otherwise testing ->Probe for non-NULL and calling it goes boom.
2010-05-12 14:51:25 -04:00
Kristian Høgsberg
8b68c0aa24
glx: Get GLX_SCREEN first in __glXQueryContextInfo()
...
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-12 14:50:04 -04:00
Brian Paul
3c407b52ff
osmesa: fix OSMesa for CHAN_BITS=32
...
CHAN_BITS=16 still broken.
NOTE: this is a candidate for back-porting to the 7.8 stable branch.
(cherry picked from commit 36b3a8bd5a )
2010-05-07 09:00:05 -06:00
Brian Paul
210b74c613
glsl: change variable declared assertion into conditional
...
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 a12614362a )
2010-05-07 08:59:08 -06:00
Kristian Høgsberg
dd0292dcf9
Merge remote branch 'origin/7.8' into 7.8-gles
2010-05-06 11:07:11 -04:00
Chia-I Wu
8c1b3b102d
mesa: Fix build of ES overlay.
...
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-06 11:05:01 -04:00
Kristian Høgsberg
320b7ac65e
Fix gles .pc file generation
2010-05-06 11:04:44 -04:00
Kristian Høgsberg
5571689f8f
Add egl.pc file
2010-05-06 11:04:41 -04:00
Kristian Høgsberg
49dbb9def6
intel: Enable GL_EXT_framebuffer_object for gles2
2010-05-06 11:04:28 -04:00
Chia-I Wu
90d824edaf
gles: Add -I$(TOP)/include.
2010-05-06 11:04:20 -04:00
Kristian Høgsberg
d3702fc3ea
mesa: Forgot to add .pc.in files for gles
...
Some day I'll grow up and remember to add new files when I commit.
2010-05-06 11:04:10 -04:00
Xavier Chantry
f7638f004d
gallium: untrack u_indices_gen.c and u_indices_gen.c
...
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-06 12:40:36 +01:00
José Fonseca
30e9ffcd3b
mesa/st: Fill in native program limits.
...
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-04 15:37:25 +01:00
Kristian Høgsberg
cdf9f4680f
mesa: Only initialize TNL for OpenGL
2010-05-03 21:32:05 -04:00
Kristian Høgsberg
0bb23b4b6f
mesa: Only initialize save dispatch table for OpenGL
2010-05-03 21:32:01 -04:00
Chia-I Wu
a2dcd67c39
mesa: Add OES_EGL_image to extension list.
2010-05-03 12:27:21 -04:00
Kristian Høgsberg
34e4091a44
Generate es glapi files when es1 or es2 is enabled
2010-05-03 12:22:30 -04:00
Xavier Chantry
ebb5228d18
Update dri state tracker to use new API aware context create
2010-05-03 12:22:29 -04:00
Kristian Høgsberg
df104eaa47
configure.ac: Fix test for whether to build src/gles
2010-05-03 12:22:29 -04:00
Kristian Høgsberg
ebf84d9a2c
mesa: Include mfeatures.h before testing feature macros
2010-05-03 12:22:29 -04:00
Kristian Høgsberg
2b1b51db7d
mesa: Only compile ES files when ES1 or ES2 are selected
...
This still requieres manual generation of the es1 and es2 glapis and is
disabled by default.
2010-05-03 12:22:28 -04:00
José Fonseca
a5fca974cf
mesa: #ifdef out more remap_table related code when disabled.
...
Seems to get everything building again here.
2010-05-03 12:22:28 -04:00
Kristian Høgsberg
269f416864
Hook in install rules for es1 and es2
2010-05-03 12:22:28 -04:00
Kristian Høgsberg
6434e18af2
Add glesv2.pc and glesv1_cm.pc pkg-config files for ES 1 and 2
2010-05-03 12:22:27 -04:00
Kristian Høgsberg
dbf423975c
st/mesa: Create context for API_OPENGL as first priority
2010-05-03 12:22:27 -04:00
Kristian Høgsberg
e53e7c9346
gles: Build libGLESv1_CM.so and libGLESv2.so from glapi files
2010-05-03 12:22:27 -04:00
Kristian Høgsberg
144b103f7f
intel: Only register ES2 extensions for ES2 contexts
2010-05-03 12:22:27 -04:00
Kristian Høgsberg
09cd109d98
configure.ac: Add options to enable GLES1/2 API support
2010-05-03 12:22:26 -04:00
Kristian Høgsberg
136a938559
intel: Advertise GLES1/2 for i915+ when enabled
2010-05-03 12:22:26 -04:00
Kristian Høgsberg
159dc4deff
dri: Add DRI entrypoints to create a context for a given API
2010-05-03 12:22:26 -04:00
Kristian Høgsberg
2a366a296f
egl_dri2: Use new DRI API to create a GLES1/2 context when asked to
2010-05-03 12:22:25 -04:00
Kristian Høgsberg
6d54bba2d5
dri: Add DRI entrypoints to create a context for a given API
2010-05-03 12:22:25 -04:00
Kristian Høgsberg
74070e397f
st/mesa: Move st_cb_drawtex.c to the mesa state tracker
2010-05-03 12:22:19 -04:00
Kristian Høgsberg
95b25b642e
es: Drop es specific enums.c
2010-05-03 11:53:31 -04:00
Kristian Høgsberg
11d8caf376
glapi: Regenerate enums.c for all APIs
2010-05-03 11:53:31 -04:00
Kristian Høgsberg
5510842f97
glapi: Update gl_enum.py to generate enum tables for multiple APIs
2010-05-03 11:50:27 -04:00
Kristian Høgsberg
56e993e946
mesa: Drop unused _mesa_init_drawtex_dispatch()
2010-05-03 11:50:27 -04:00
Kristian Høgsberg
b5157a0885
mesa: Move drawtex functionality to main/
2010-05-03 11:50:27 -04:00
Kristian Høgsberg
72c3667cb7
mesa: Move glQueryMatrixxOES() implementation to core mesa
2010-05-03 11:50:27 -04:00
Kristian Høgsberg
a063e12754
mesa: Move GLES1 texgen functions to texgen.c
2010-05-03 11:50:27 -04:00
Kristian Høgsberg
1f34dd5a7e
mesa: Move support for paletted textures to main/teximage.c
2010-05-03 11:50:27 -04:00
Kristian Høgsberg
623ff81931
mesa: Handle GL_TEXTURE_GEN_STR_OES in _mesa_Enable()
2010-05-03 11:50:26 -04:00
Kristian Høgsberg
98227f3181
mesa: Move get_es*.c to main/
2010-05-03 11:50:26 -04:00
Kristian Høgsberg
381ccb50b9
es: Prefix the get* functions with _es1/2 so they don't conflict
2010-05-03 11:50:26 -04:00
Kristian Høgsberg
64386d0893
mesa: Move GL_RGB565 workaround into fbobject.c
2010-05-03 11:50:26 -04:00