Commit graph

32162 commits

Author SHA1 Message Date
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
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
Kristian Høgsberg
cd53b44af0 mesa: Move GLES1/2 vbo entrypoints to vbo_exec_api.c
This let's us drop stubs.c.
2010-05-03 11:50:26 -04:00
Kristian Høgsberg
fda7cbdc80 mesa: Move GLES2 shader stubs to main/shaders.c 2010-05-03 11:49:31 -04:00
Kristian Høgsberg
3f03f71caf mesa: Move api_exec_es*.c into mesa/main
This requires renaming a few functions to have unique names so that
they can all live within the same driver.
2010-05-03 11:49:31 -04:00
Kristian Høgsberg
a6ba493d71 mesa: Move references to main/remap_helper.h to api_exec.c 2010-05-03 11:49:30 -04:00
Kristian Høgsberg
2180ba68f1 mesa: Move struct _glapi_table allocation out of context.c
We now allocate the table from api_exec.c and dlist.c where we fill out
the table.  This way, context.c doesn't need to know the actual contents
of struct _glapi_table.
2010-05-03 11:49:30 -04:00
Kristian Høgsberg
2a2f8580b7 mesa: Compute extension string according to API
We can now stop special casing glGetString() and drop specials_es*.c.
2010-05-03 11:49:30 -04:00
Kristian Høgsberg
7fca3e5243 es2: Move over es2 code to compute extensions 2010-05-03 11:48:10 -04:00