Eric Anholt
8b2fe73897
mesa: Remove miscellaneous remains of NV_vertex_program.
...
v2: Rebase on top of get.c changes.
Reviewed-by: Brian Paul <brianp@vmware.com > (v1)
2012-10-15 11:53:24 -07:00
Eric Anholt
cff1b1df4b
swrast: Remove support for GL_NV_vertex_program.
...
It's not supported in any hardware drivers, and doesn't appear to be useful on
Linux.
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-10-15 11:53:23 -07:00
Oliver McFadden
9545d9611f
intel: add support for ANGLE_texture_compression_dxt.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-10-01 17:21:51 +03:00
Chris Forbes
d30a7d2eb4
mesa: fix dropped && in glGetStringi()
...
This fixes glGetStringi(GL_EXTENSIONS,.. for core contexts. Previously,
all extension names returned would be NULL.
NOTE: This is a candidate for release branches.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2012-09-16 01:47:00 -07:00
Oliver McFadden
961fcc45ad
mesa: remove FEATURE_ATI_fragment_shader define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:52 +03:00
Oliver McFadden
dd44f80f81
mesa: remove FEATURE_APPLE_object_purgeable define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:51 +03:00
Oliver McFadden
dda982f1a7
mesa: remove FEATURE_EXT_transform_feedback define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:49 +03:00
Oliver McFadden
88233b0bc3
mesa: remove FEATURE_EXT_texture_sRGB define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:48 +03:00
Oliver McFadden
e9ccb5fe52
mesa: remove FEATURE_EXT_framebuffer_blit define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:46 +03:00
Oliver McFadden
d05d5d9a91
mesa: remove FEATURE_ARB_sync define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:45 +03:00
Oliver McFadden
32c3ba8753
mesa: remove FEATURE_ARB_framebuffer_object define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:39 +03:00
Oliver McFadden
e8a72d8282
mesa: remove FEATURE_ARB_(fragment|vertex)_program defines.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:38 +03:00
Oliver McFadden
b7d15977f6
mesa: remove FEATURE_NV_(fragment|vertex)_program defines.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:36 +03:00
Oliver McFadden
f88393afbe
mesa: remove FEATURE_OES_EGL_image define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:20 +03:00
Oliver McFadden
cd28a19bd9
mesa: remove FEATURE_EXT_pixel_buffer_object define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:19 +03:00
Oliver McFadden
0c1ff721e1
mesa: remove FEATURE_EXT_framebuffer_object define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:18 +03:00
Oliver McFadden
528f48432e
mesa: remove FEATURE_ARB_shader_objects and related defines.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:16 +03:00
Oliver McFadden
7ada8d371e
mesa: remove FEATURE_ARB_fragment_shader define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:14 +03:00
Oliver McFadden
6c4cddadaa
mesa: remove FEATURE_ARB_vertex_shader define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:13 +03:00
Oliver McFadden
5489fc7b9f
mesa: remove FEATURE_OES_draw_texture define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:11 +03:00
Oliver McFadden
ab8d76357f
mesa: remove FEATURE_texture_s3tc define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:04 +03:00
Oliver McFadden
beb293e4cd
mesa: remove FEATURE_texture_fxt1 define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:57:02 +03:00
Oliver McFadden
25ee9617ff
mesa: remove FEATURE_queryobj define.
...
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-09-15 12:56:53 +03:00
Chad Versace
f29a4b0157
mesa: Don't advertise GLES extensions in GL contexts
...
glGetStringi(GL_EXTENSIONS) failed to respect the context's API, and so
returned all internally enabled GLES extensions from a GL context.
Likewise, glGetIntegerv(GL_NUM_EXTENSIONS) also failed to repsect the
context's API.
Note: This is a candidate for the 8.0 and 9.0 branches.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Signed-off-by: Chad Versace <chad.versace@linux.intel.com >
2012-09-06 11:46:04 -07:00
Matt Turner
2b7a972e3f
Don't cast the return value of malloc/realloc
...
This patch has been generated by the following Coccinelle semantic
patch:
// Don't cast the return value of malloc/realloc.
//
// Casting the return value of malloc/realloc only stands to hide
// errors.
@@
type T;
expression E1, E2;
@@
- (T)
(
_mesa_align_calloc(E1, E2)
|
_mesa_align_malloc(E1, E2)
|
calloc(E1, E2)
|
malloc(E1)
|
realloc(E1, E2)
)
2012-09-05 22:28:50 -07:00
Ian Romanick
36ceabfb74
mesa/es: Enable GL_OES_vertex_array_object
...
Functionally the same as GL_ARB_vertex_array_object.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
2012-08-29 15:09:37 -07:00
Ian Romanick
35cf6aeb8c
mesa: Enable GL_{ARB,APPLE}_vertex_array_object in all drivers
...
This is a purely software extension. The drivers don't need to do any
work to support it.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
2012-08-29 15:09:37 -07:00
Ian Romanick
2dcb40bb44
mesa/es: Add support for GL_APPLE_texture_max_level
...
This is desktop OpenGL functionality that has always existed.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
2012-08-23 10:15:30 -07:00
Ian Romanick
258771882d
mesa: Enable GL_ARB_invalidate_subdata
...
v2: Add GL_ARB_invalidate_subdata to release notes at Brian's
suggestion.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-08-14 14:39:33 -07:00
Ian Romanick
707f067915
mesa: Kill GL_ARB_shadow_ambient with fire
...
No driver supports this extension, and it seems unlikely than any driver
ever will. I think r300c may have supported it at one time, but that
driver has already been removed.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Reviewed-by: Marek Olšák <maraeo@gmail.com >
2012-08-14 10:40:04 -07:00
Ian Romanick
0fef911ce4
mesa: Don't advertise extensions that are part of GL 1.5 in a core context
...
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2012-08-13 16:19:36 -07:00
Ian Romanick
aa0b1e902b
mesa: Don't advertise extensions that are part of GL 1.4 in a core context
...
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2012-08-13 16:19:36 -07:00
Ian Romanick
213945385a
mesa: Don't advertise extensions that are part of GL 1.3 in a core context
...
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2012-08-13 16:19:36 -07:00
Ian Romanick
7ef1869d69
mesa: Don't advertise extensions that are part of GL 1.2 in a core context
...
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2012-08-13 16:19:36 -07:00
Ian Romanick
4d39b86315
mesa: Don't advertise deprecated extensions in a core context
...
It may be possible to trim the list of extensions futher. These are
just the obvious extensions that add functionality that the core context
explicitly forbids. Apple's core-context extension list is *just* the
extensions on top of the core GL version. I'm not sure we want to go
that far, but removing some things that have been in core since 2.1 may
be okay.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2012-08-13 16:19:36 -07:00
Pauli Nieminen
8129dabb5f
mesa: Make ARB_sampler_objects mandatory
...
To allow meta acceleration operations to use sampler objects the
ARB_sampler_objects extension needs to be mandatory for all drivers.
Because the extension doesn't have any hardware dependencies it is
trivial to implement.
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
2012-08-01 15:31:17 -07:00
Jordan Justen
09714c09a4
mesa: add support for using API_OPENGL_CORE
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2012-07-30 16:18:57 -07:00
Marek Olšák
d24ece97e5
mesa: add ARB_transform_feedback_instanced extension enable flag
...
Acked-by: Ian Romanick <ian.d.romanick@intel.com >
2012-07-12 13:05:59 +02:00
Marek Olšák
21cb5ed20d
glsl: implement ARB_transform_feedback3 in the linker
...
Acked-by: Ian Romanick <ian.d.romanick@intel.com >
2012-07-12 13:05:58 +02:00
Marek Olšák
5094533040
mesa: add ARB_timer_query to the extension list
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-07-10 19:04:12 +02:00
Gwenole Beauchesne
69f031cc19
mesa: add GL_EXT_texture_rg extension for OpenGL ES 2.x.
2012-07-04 15:26:22 -04:00
Marek Olšák
2668aaa557
Revert "mesa: add GL_EXT_texture_rg extension for OpenGL ES 2.x."
...
This reverts commit d1665388ce
.
2012-07-04 01:39:52 +02:00
Gwenole Beauchesne
d1665388ce
mesa: add GL_EXT_texture_rg extension for OpenGL ES 2.x.
2012-07-03 16:23:38 -04:00
Brian Paul
b73cf49c91
mesa: set GL_ARB_uniform_buffer_object extension year to 2009
2012-06-21 13:08:34 -06:00
Fredrik Höglund
ae5d7d5e89
mesa: Add support for GL_ARB_base_instance
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-06-19 07:57:22 -06:00
Kristian Høgsberg
2d7b2d7a87
gles2: Add GL_NV_read_buffer extension
...
This lets us select the front buffer for reading under GLES2.
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2012-06-18 11:53:18 -04:00
Olivier Galibert
199771bc32
glsl: Scaffolding for ARB_shader_bit_encoding.
...
That adds support for activating the extension. It doesn't actually
*do* anything yet, of course.
Signed-off-by: Olivier Galibert <galibert@pobox.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
2012-06-07 00:06:00 -07:00
Kenneth Graunke
d4667516b6
mesa: Remove the OES_draw_texture extension from ES2.
...
This extension appears to be written against ES 1.0.
In ES 2.0, you really want to be using FBOs instead.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Chad Versace <chad.versace@linux.intel.com >
2012-05-23 17:03:35 -07:00
Eric Anholt
3362c7d9b6
mesa: Prevent buffer underrun when handling MESA_GL_EXTENSION_OVERRIDE.
2012-05-04 14:00:32 -07:00
Dylan Noblesmith
75fe7d1995
mesa: don't cast away const
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-04-13 14:25:08 +00:00