mesa.git
14 years agomesa: Select FEATURE_remap_table when multiple APIs are enabled.
Chia-I Wu [Tue, 26 Oct 2010 08:16:14 +0000 (16:16 +0800)]
mesa: Select FEATURE_remap_table when multiple APIs are enabled.

Core mesa should query glapi for the positions of the functions in
_glapi_table when multiple APIs are supported.  It does not know which
glapitable.h glapi used.

14 years agor300/compiler: Don't track readers into an IF block.
Tom Stellard [Tue, 2 Nov 2010 05:06:20 +0000 (22:06 -0700)]
r300/compiler: Don't track readers into an IF block.

This makes rc_get_readers_normal() more conservative than it needs to be,
but it fixes some incorrect behavior in the optimization passes.

14 years agoegl: Rework _eglGetSearchPath.
Chia-I Wu [Mon, 1 Nov 2010 17:23:13 +0000 (01:23 +0800)]
egl: Rework _eglGetSearchPath.

So that the directory part of EGL_DRIVER, if exists, is prepended to the
search path.  This commit also adds a sanity check to _eglLog.

14 years agoscons: Disable python state tracker when swig is not present.
José Fonseca [Mon, 1 Nov 2010 15:27:34 +0000 (15:27 +0000)]
scons: Disable python state tracker when swig is not present.

14 years agoscons: Restore x11 tool behavior for backwards compatability.
José Fonseca [Mon, 1 Nov 2010 14:37:18 +0000 (14:37 +0000)]
scons: Restore x11 tool behavior for backwards compatability.

14 years agoscons: Some pipe drivers are not portable for MSVC
José Fonseca [Mon, 1 Nov 2010 14:24:08 +0000 (14:24 +0000)]
scons: Some pipe drivers are not portable for MSVC

14 years agoscons: Fix MinGW cross-compilation.
José Fonseca [Mon, 1 Nov 2010 13:56:16 +0000 (13:56 +0000)]
scons: Fix MinGW cross-compilation.

14 years agoscons: Revamp how to specify targets to build.
José Fonseca [Mon, 1 Nov 2010 13:30:22 +0000 (13:30 +0000)]
scons: Revamp how to specify targets to build.

Use scons target and dependency system instead of ad-hoc options.

Now is simply a matter of naming what to build. For example:

  scons libgl-xlib

  scons libgl-gdi

  scons graw-progs

  scons llvmpipe

and so on. And there is also the possibility of scepcified subdirs, e.g.

  scons src/gallium/drivers

If nothing is specified then everything will be build.

There might be some rough corners over the next days. Please bare with me.

14 years agodri/nouveau: Re-emit the BO state when coming back from a software fallback.
Francisco Jerez [Sun, 31 Oct 2010 21:05:16 +0000 (22:05 +0100)]
dri/nouveau: Re-emit the BO state when coming back from a software fallback.

14 years agodri/nouveau: Validate the framebuffer state on read buffer changes.
Francisco Jerez [Sun, 31 Oct 2010 21:07:26 +0000 (22:07 +0100)]
dri/nouveau: Validate the framebuffer state on read buffer changes.

14 years agodri/nouveau: Fix type promotion issue on 32bit platforms.
Francisco Jerez [Sun, 31 Oct 2010 18:00:31 +0000 (19:00 +0100)]
dri/nouveau: Fix type promotion issue on 32bit platforms.

Fixes some VTX protection errors introduced by e89af209261.

14 years agost/egl image: multiply drm buf-stride with blocksize
Benjamin Franzke [Sun, 31 Oct 2010 15:01:52 +0000 (16:01 +0100)]
st/egl image: multiply drm buf-stride with blocksize

[olv: formatted for 80-column wrapping]

14 years agotargets/egl: Fix a warning with --disable-opengl build.
Chia-I Wu [Sun, 31 Oct 2010 13:14:20 +0000 (21:14 +0800)]
targets/egl: Fix a warning with --disable-opengl build.

API_DEFINES is the defines for libmesagallium.a.  Append it to
egl_CPPFLAGS only when st_GL.so, which uses libmesagallium.a, is built.

14 years agoautoconf: Tidy configure output for EGL.
Chia-I Wu [Sun, 31 Oct 2010 13:01:54 +0000 (21:01 +0800)]
autoconf: Tidy configure output for EGL.

Prefix EGL driver names by "egl_".  Make it clear that EGL_CLIENT_APIS
is only used by egl_gallium.

14 years agor300/compiler: Don't clobber presubtract sources during optimizations
Tom Stellard [Fri, 29 Oct 2010 22:59:43 +0000 (15:59 -0700)]
r300/compiler: Don't clobber presubtract sources during optimizations

https://bugs.freedesktop.org/show_bug.cgi?id=28294

14 years agodri/nouveau: Pipeline glTexSubImage texture transfers.
Francisco Jerez [Fri, 29 Oct 2010 16:16:08 +0000 (18:16 +0200)]
dri/nouveau: Pipeline glTexSubImage texture transfers.

14 years agodri/nouveau: Keep small DYNAMIC_DRAW vertex buffers in system ram.
Francisco Jerez [Sat, 30 Oct 2010 23:37:47 +0000 (01:37 +0200)]
dri/nouveau: Keep small DYNAMIC_DRAW vertex buffers in system ram.

14 years agodri/nouveau: Optimize VBO binding re-emission.
Francisco Jerez [Fri, 29 Oct 2010 19:36:42 +0000 (21:36 +0200)]
dri/nouveau: Optimize VBO binding re-emission.

14 years agodri/nouveau: Split out array handling to its own file.
Francisco Jerez [Fri, 29 Oct 2010 20:31:34 +0000 (22:31 +0200)]
dri/nouveau: Split out array handling to its own file.

14 years agodri/nouveau: Use a macro to iterate over the bound vertex attributes.
Francisco Jerez [Fri, 29 Oct 2010 19:29:15 +0000 (21:29 +0200)]
dri/nouveau: Use a macro to iterate over the bound vertex attributes.

14 years agodri/nouveau: Avoid recursion in nouveau_bo_context_reset().
Francisco Jerez [Fri, 29 Oct 2010 19:14:49 +0000 (21:14 +0200)]
dri/nouveau: Avoid recursion in nouveau_bo_context_reset().

14 years agodri/nouveau: Split out the scratch helpers to a separate file.
Francisco Jerez [Fri, 29 Oct 2010 19:56:50 +0000 (21:56 +0200)]
dri/nouveau: Split out the scratch helpers to a separate file.

14 years agodri/nouveau: Tell the vbo module we want real hardware BOs.
Francisco Jerez [Fri, 29 Oct 2010 19:12:01 +0000 (21:12 +0200)]
dri/nouveau: Tell the vbo module we want real hardware BOs.

14 years agodri/nouveau: Honor the access flags in nouveau_bufferobj_map_range.
Francisco Jerez [Sat, 30 Oct 2010 23:30:55 +0000 (01:30 +0200)]
dri/nouveau: Honor the access flags in nouveau_bufferobj_map_range.

14 years agodri/nouveau: Call _mesa_update_state() after framebuffer invalidation.
Francisco Jerez [Mon, 25 Oct 2010 19:35:54 +0000 (21:35 +0200)]
dri/nouveau: Call _mesa_update_state() after framebuffer invalidation.

Previously nouveau_state_emit() was being called directly, sometimes
that doesn't work because it doesn't update the derived GL context.

14 years agodri/nv25: Bind a hierarchical depth buffer.
Francisco Jerez [Fri, 29 Oct 2010 19:53:56 +0000 (21:53 +0200)]
dri/nv25: Bind a hierarchical depth buffer.

14 years agodri/nouveau: Don't assert(0) on compressed internal formats.
Francisco Jerez [Fri, 29 Oct 2010 19:44:54 +0000 (21:44 +0200)]
dri/nouveau: Don't assert(0) on compressed internal formats.

14 years agodri/nv20: Clear with the 3D engine.
Francisco Jerez [Sat, 23 Oct 2010 01:01:06 +0000 (03:01 +0200)]
dri/nv20: Clear with the 3D engine.

14 years agost/mesa: Unreference the sampler view in st_bind_surface.
Chia-I Wu [Sat, 30 Oct 2010 17:13:27 +0000 (01:13 +0800)]
st/mesa: Unreference the sampler view in st_bind_surface.

Without this, update_textures may not pick up the new pipe_resource.

It is actually update_textures that should check
stObj->sampler_view->texture != stObj->pt, but let's follow st_TexImage
and others for now.

14 years agoosmesa: fix renderbuffer memleak in OSMesaMakeCurrent()
Brian Paul [Sat, 30 Oct 2010 16:10:52 +0000 (10:10 -0600)]
osmesa: fix renderbuffer memleak in OSMesaMakeCurrent()

Fixes fd.o bug 31128.

14 years agoautoconf: st/vega requires --enable-openvg.
Chia-I Wu [Sat, 30 Oct 2010 06:26:01 +0000 (14:26 +0800)]
autoconf: st/vega requires --enable-openvg.

Make it a warning for now to smooth the transition.

14 years agoglsl: Remove unused ARRAY_SIZE macro.
Kenneth Graunke [Fri, 29 Oct 2010 18:42:22 +0000 (11:42 -0700)]
glsl: Remove unused ARRAY_SIZE macro.

It's also equivalent to Elements(...) which is already used elsewhere.

14 years agomesa: Make metaops use program refcounts instead of names.
Eric Anholt [Fri, 29 Oct 2010 18:28:38 +0000 (11:28 -0700)]
mesa: Make metaops use program refcounts instead of names.

Fixes failure on restoring state when the program was active but
deleted, and the name no longer exists.

Bug #31194

14 years agomesa: remove dead code
Brian Paul [Fri, 29 Oct 2010 14:13:31 +0000 (08:13 -0600)]
mesa: remove dead code

14 years agomesa: Fix windows build (uint -> GLuint).
José Fonseca [Fri, 29 Oct 2010 12:05:31 +0000 (13:05 +0100)]
mesa: Fix windows build (uint -> GLuint).

14 years agotargets: Add missing quotes to Makefile.xorg.
Chia-I Wu [Fri, 29 Oct 2010 04:59:45 +0000 (12:59 +0800)]
targets: Add missing quotes to Makefile.xorg.

Fix

  $ make CC="ccache gcc"

14 years agoMerge branch 'glapi-reorg'
Chia-I Wu [Fri, 29 Oct 2010 04:45:04 +0000 (12:45 +0800)]
Merge branch 'glapi-reorg'

Conflicts:
src/mapi/glapi/glapi_sparc.S
src/mapi/glapi/glapi_x86.S
src/mapi/glapi/glapidispatch.h
src/mapi/glapi/glapioffsets.h
src/mapi/glapi/glprocs.h

14 years agoautoconf: Update configuration info.
Chia-I Wu [Fri, 29 Oct 2010 04:34:44 +0000 (12:34 +0800)]
autoconf: Update configuration info.

Output API info first.  Move GLU/GLw/GLUT and EGL near driver info.

14 years agodocs: Update egl and openvg docs.
Chia-I Wu [Thu, 28 Oct 2010 09:25:07 +0000 (17:25 +0800)]
docs: Update egl and openvg docs.

14 years agoautoconf: Better client API selection.
Chia-I Wu [Wed, 27 Oct 2010 08:14:27 +0000 (16:14 +0800)]
autoconf: Better client API selection.

Make autoconf decide the client APIs enabled first.  Then when OpenGL
and OpenGL ES are disabled, there is no need to build src/mesa/;  when
OpenGL is disabled, no $mesa_driver should be built.  Finally, add
--enable-openvg to enable OpenVG.

With these changes, an OpenVG only build can be configured with

  $ ./configure --disable-opengl --enable-openvg

src/mesa, src/glsl, and src/glx will be skipped, which saves a great
deal of compilation time.

And an OpenGL ES only build can be configured with

  $ ./configure --disable-opengl --enable-gles-overlay

14 years agomesa: pixel transfer ops do not apply to integer-valued textures
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: pixel transfer ops do not apply to integer-valued textures

14 years agomesa: additional integer formats in _mesa_bytes_per_pixel()
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: additional integer formats in _mesa_bytes_per_pixel()

14 years agomesa: add const qualifier to _mesa_is_legal_format_and_type()
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: add const qualifier to _mesa_is_legal_format_and_type()

14 years agomesa: fix integer cases in _mesa_is_legal_format_and_type()
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: fix integer cases in _mesa_is_legal_format_and_type()

Some integer formats work with some packed datatypes.

14 years agomesa: fix incorrect type in _mesa_texstore_rgba_int16()
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: fix incorrect type in _mesa_texstore_rgba_int16()

14 years agomesa: remove obsolete comment
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: remove obsolete comment

14 years agomesa: add extension table entry for GL_EXT_gpu_shader4
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: add extension table entry for GL_EXT_gpu_shader4

14 years agomesa: clean-up array element code
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: clean-up array element code

Remove unnecessary GLAPIENTRY keywords, update comments, re-indent.

14 years agomesa: glArrayElement support for integer-valued arrays
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: glArrayElement support for integer-valued arrays

14 years agomesa: state/queries for GL_MIN/MAX_PROGRAM_TEXEL_OFFSET_EXT
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: state/queries for GL_MIN/MAX_PROGRAM_TEXEL_OFFSET_EXT

14 years agomesa: consolidate glVertex/Color/etcPointer() code
Brian Paul [Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)]
mesa: consolidate glVertex/Color/etcPointer() code

This removes a bunch of similar error checking code in all the vertex
pointer functions and puts nearly all the error checking in update_array().

14 years agomesa: add gl_client_array::Integer field and related vertex array state code
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
mesa: add gl_client_array::Integer field and related vertex array state code

14 years agomesa: implement integer-valued vertex attribute functions
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
mesa: implement integer-valued vertex attribute functions

The integers still get converted to floats.  That'll have to change someday.

14 years agomesa: add new GLvertexformat entries for integer-valued attributes
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
mesa: add new GLvertexformat entries for integer-valued attributes

14 years agomesa: plug in more GL_EXT_gpu_shader4 functions
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
mesa: plug in more GL_EXT_gpu_shader4 functions

14 years agomesa: add glGetUniformuiv(), plug in uint glUniform funcs
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
mesa: add glGetUniformuiv(), plug in uint glUniform funcs

14 years agomesa: plug in stubs for glBindFragDataLocation(), glGetFragDataLocation()
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
mesa: plug in stubs for glBindFragDataLocation(), glGetFragDataLocation()

14 years agoglapi: regenerated API files
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
glapi: regenerated API files

14 years agoglapi: include EXT_gpu_shader4.xml
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
glapi: include EXT_gpu_shader4.xml

14 years agoglapi: xml spec file for GL_EXT_gpu_shader4
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
glapi: xml spec file for GL_EXT_gpu_shader4

14 years agovbo: re-indent file
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
vbo: re-indent file

14 years agomesa: remove 'normalized' parameter from _mesa_VertexAttribIPointer()
Brian Paul [Fri, 29 Oct 2010 03:17:41 +0000 (21:17 -0600)]
mesa: remove 'normalized' parameter from _mesa_VertexAttribIPointer()

14 years agoi965: Update the gen6 stencil ref state when stencil state changes.
Eric Anholt [Thu, 28 Oct 2010 23:09:41 +0000 (16:09 -0700)]
i965: Update the gen6 stencil ref state when stencil state changes.

Fixes 6 piglit tests about stencil operations.

14 years agoi965: Upload required gen6 VS push constants even when using pull constants.
Eric Anholt [Thu, 28 Oct 2010 22:30:09 +0000 (15:30 -0700)]
i965: Upload required gen6 VS push constants even when using pull constants.

Matches pre-gen6, and fixes glsl-vs-large-uniform-array.

14 years agoi965: Update gen6 SF state when point state (sprite or attenuation) changes.
Eric Anholt [Thu, 28 Oct 2010 22:23:23 +0000 (15:23 -0700)]
i965: Update gen6 SF state when point state (sprite or attenuation) changes.

14 years agoi965: Add user clip planes support to gen6.
Eric Anholt [Wed, 27 Oct 2010 18:00:14 +0000 (11:00 -0700)]
i965: Add user clip planes support to gen6.

Fixes piglit user-clip, and compiz desktop switching when dragging a
window and using just 2 desktops.  Bug #30446.

14 years agogallivm: Remove the EMMS opcodes.
José Fonseca [Mon, 18 Oct 2010 13:24:30 +0000 (06:24 -0700)]
gallivm: Remove the EMMS opcodes.

Unnecessary now that lp_set_target_options() successful disables MMX code
emission.

14 years agogallivm: always enable LLVMAddInstructionCombiningPass()
José Fonseca [Mon, 25 Oct 2010 17:42:03 +0000 (18:42 +0100)]
gallivm: always enable LLVMAddInstructionCombiningPass()

14 years agogallium: Avoid using __doc__ in python scripts.
José Fonseca [Thu, 28 Oct 2010 16:38:18 +0000 (17:38 +0100)]
gallium: Avoid using __doc__ in python scripts.

14 years agost/mesa: Silence uninitialized variable warning.
Vinson Lee [Thu, 28 Oct 2010 13:08:19 +0000 (06:08 -0700)]
st/mesa: Silence uninitialized variable warning.

Fixes this GCC warning.
state_tracker/st_program.c: In function 'st_print_shaders':
state_tracker/st_program.c:735: warning: 'sh' may be used uninitialized in this function

14 years agor300/compiler: Use rc_get_readers_normal() for presubtract optimizations
Tom Stellard [Fri, 22 Oct 2010 01:55:12 +0000 (18:55 -0700)]
r300/compiler: Use rc_get_readers_normal() for presubtract optimizations

14 years agoi965: Add bit operation support to the fragment shader backend.
Kenneth Graunke [Tue, 19 Oct 2010 00:28:56 +0000 (17:28 -0700)]
i965: Add bit operation support to the fragment shader backend.

14 years agoi965: Make FS uniforms be the actual type of the uniform at upload time.
Eric Anholt [Mon, 25 Oct 2010 19:52:29 +0000 (12:52 -0700)]
i965: Make FS uniforms be the actual type of the uniform at upload time.

This fixes some insanity that would otherwise be required for GLSL
1.30 bit ops or gen6 integer uniform operations in general, at the
cost of upload-time pain.  Given that we only have that pain because
mesa's mangling our integer uniforms to be floats, this something that
should be fixed outside of the shader codegen.

14 years agodocs: add GL_EXT_separate_shader_objects to release notes
Ian Romanick [Wed, 27 Oct 2010 20:45:29 +0000 (13:45 -0700)]
docs: add GL_EXT_separate_shader_objects to release notes

14 years agointel: Enable GL_EXT_separate_shader_objects in Intel drivers
Ian Romanick [Wed, 13 Oct 2010 21:00:56 +0000 (14:00 -0700)]
intel: Enable GL_EXT_separate_shader_objects in Intel drivers

14 years agoswrast: Enable GL_EXT_separate_shader_objects in software paths
Ian Romanick [Wed, 13 Oct 2010 21:00:24 +0000 (14:00 -0700)]
swrast: Enable GL_EXT_separate_shader_objects in software paths

14 years agoTrack separate programs for each stage
Ian Romanick [Wed, 13 Oct 2010 20:58:44 +0000 (13:58 -0700)]
Track separate programs for each stage

The assumption is that all stages are the same program or that
varyings are passed between stages using built-in varyings.

14 years agomesa: Track an ActiveProgram distinct from CurrentProgram
Ian Romanick [Mon, 11 Oct 2010 23:07:08 +0000 (16:07 -0700)]
mesa: Track an ActiveProgram distinct from CurrentProgram

ActiveProgram is the GL_EXT_separate_shader_objects state variable
used for glUniform calls.  glUseProgram also sets this.

14 years agomesa: Add display list support for GL_EXT_separate_shader_objects functions
Ian Romanick [Wed, 13 Oct 2010 20:54:13 +0000 (13:54 -0700)]
mesa: Add display list support for GL_EXT_separate_shader_objects functions

14 years agomesa: Skeletal support for GL_EXT_separate_shader_objects
Ian Romanick [Mon, 11 Oct 2010 22:50:04 +0000 (15:50 -0700)]
mesa: Skeletal support for GL_EXT_separate_shader_objects

Really just filling in the entry points.  None of them do anything
other than validate their inputs.

14 years agomesa: Add infrastructure to track GL_EXT_separate_shader_objects
Ian Romanick [Mon, 11 Oct 2010 22:09:41 +0000 (15:09 -0700)]
mesa: Add infrastructure to track GL_EXT_separate_shader_objects

14 years agoglapi: Commit files changed by previous commit
Ian Romanick [Mon, 11 Oct 2010 22:07:43 +0000 (15:07 -0700)]
glapi: Commit files changed by previous commit

14 years agoglapi: Add GL_EXT_separate_shader_objects
Ian Romanick [Mon, 11 Oct 2010 22:04:59 +0000 (15:04 -0700)]
glapi: Add GL_EXT_separate_shader_objects

14 years agoFix build on systems where "python" is python 3.
Kenneth Graunke [Mon, 25 Oct 2010 20:52:58 +0000 (13:52 -0700)]
Fix build on systems where "python" is python 3.

First, it changes autoconf to use a "python2" binary when available,
rather than plain "python" (which is ambiguous).  Secondly, it changes
the Makefiles to use $(PYTHON) $(PYTHON_FLAGS) rather than calling
python directly.

Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Matthew William Cox <matt@mattcox.ca>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
14 years agor300g: add a default channel ordering of texture border for unhandled formats
Marek Olšák [Wed, 27 Oct 2010 19:13:41 +0000 (21:13 +0200)]
r300g: add a default channel ordering of texture border for unhandled formats

It should fix the texture border for compressed textures.
Broken since 8449a4772a73f613d9425b691cffba6a261df813.

14 years agor600c: add missing radeon_prepare_render() call on evergreen
Alex Deucher [Wed, 27 Oct 2010 18:30:50 +0000 (14:30 -0400)]
r600c: add missing radeon_prepare_render() call on evergreen

14 years agor100: revalidate after radeon_update_renderbuffers
Alex Deucher [Wed, 27 Oct 2010 17:53:29 +0000 (13:53 -0400)]
r100: revalidate after radeon_update_renderbuffers

This is a port of 603741a86df0e43c0b52e8c202a35c7fe2fc1d9c
to r100.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
14 years agoswrast: Print out format on unexpected failure in _swrast_ReadPixels.
Vinson Lee [Wed, 27 Oct 2010 17:16:18 +0000 (10:16 -0700)]
swrast: Print out format on unexpected failure in _swrast_ReadPixels.

14 years agoegl: Remove unnecessary headers.
Vinson Lee [Wed, 27 Oct 2010 16:51:11 +0000 (09:51 -0700)]
egl: Remove unnecessary headers.

14 years agomesa: Remove unnecessary header.
Vinson Lee [Wed, 27 Oct 2010 16:38:33 +0000 (09:38 -0700)]
mesa: Remove unnecessary header.

14 years agost/mesa: Remove unnecessary header.
Vinson Lee [Wed, 27 Oct 2010 16:33:13 +0000 (09:33 -0700)]
st/mesa: Remove unnecessary header.

14 years agor600g: Silence uninitialized variable warnings.
Vinson Lee [Wed, 27 Oct 2010 16:26:27 +0000 (09:26 -0700)]
r600g: Silence uninitialized variable warnings.

14 years agomesa: Remove unnecessary headers.
Vinson Lee [Wed, 27 Oct 2010 16:09:47 +0000 (09:09 -0700)]
mesa: Remove unnecessary headers.

14 years agor300g: Silence uninitialized variable warning.
Vinson Lee [Wed, 27 Oct 2010 16:02:00 +0000 (09:02 -0700)]
r300g: Silence uninitialized variable warning.

Fixes this GCC warning.
r300_state_derived.c: In function 'r300_update_derived_state':
r300_state_derived.c:593: warning: 'r' may be used uninitialized in this function
r300_state_derived.c:593: note: 'r' was declared here

14 years agor600g: Destroy the blitter.
Tilman Sauerbeck [Sun, 24 Oct 2010 12:52:14 +0000 (14:52 +0200)]
r600g: Destroy the blitter.

This fix got lost in the state rework merge.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
14 years agor600g: In radeon_bo(), call LIST_INITHEAD early.
Tilman Sauerbeck [Sat, 23 Oct 2010 17:05:26 +0000 (19:05 +0200)]
r600g: In radeon_bo(), call LIST_INITHEAD early.

radeon_bo_destroy() will want to read the list field. Without this patch,
we'd end up evaluating the list pointers before they have been properly
set up when we destroyed the newly created bo if it cannot be mapped.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
14 years agomesa: Remove unnecessary glapitable.h includes.
Chia-I Wu [Mon, 25 Oct 2010 20:25:45 +0000 (04:25 +0800)]
mesa: Remove unnecessary glapitable.h includes.

With 07b85457d95bcc70588584e9380c51cd63aa3a2b, glapitable.h is included
by core mesa only to know the size of _glapi_table.  It is not necessary
as the same info is given by _gloffset_COUNT.

This change makes _glapi_table opaque to core mesa.  All operations on
it are supposed to go through one of the SET/GET/CALL macros.

14 years agovbo: Use CALL_* macros.
Chia-I Wu [Mon, 25 Oct 2010 16:35:35 +0000 (00:35 +0800)]
vbo: Use CALL_* macros.

Use macros to access _glapi_table consistently.  There is no functional
change.

14 years agoglapi: Merge glapioffsets.h into glapidispath.h.
Chia-I Wu [Mon, 25 Oct 2010 16:16:49 +0000 (00:16 +0800)]
glapi: Merge glapioffsets.h into glapidispath.h.

Move defines in glapioffsets.h to glapidispatch.h.  Rename
_gloffset_FIRST_DYNAMIC to _gloffset_COUNT, which is equal to the number
of entries in _glapi_table.

Consistently use SET_by_offset, GET_by_offset, CALL_by_offset, and
_gloffset_* to recursively define all SET/GET/CALL macros.

14 years agoglapi: Do not use glapioffsets.h.
Chia-I Wu [Mon, 25 Oct 2010 14:27:17 +0000 (22:27 +0800)]
glapi: Do not use glapioffsets.h.

glapioffsets.h exists for the same reason as glapidispatch.h does.  It
is of no use to glapi.  This commit also drops the use of glapioffsets.h
in glx as glx is considered an extension to glapi when it comes to
defining public GL entries.