Commit Graph

40387 Commits

Author SHA1 Message Date
José Fonseca 601498ae73 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.
2010-11-01 13:30:22 +00:00
Francisco Jerez a84bd587c6 dri/nouveau: Re-emit the BO state when coming back from a software fallback. 2010-10-31 22:07:38 +01:00
Francisco Jerez 4a282629c2 dri/nouveau: Validate the framebuffer state on read buffer changes. 2010-10-31 22:07:26 +01:00
Francisco Jerez 453b718552 dri/nouveau: Fix type promotion issue on 32bit platforms.
Fixes some VTX protection errors introduced by e89af20926.
2010-10-31 22:07:10 +01:00
Benjamin Franzke 6102683b19 st/egl image: multiply drm buf-stride with blocksize
[olv: formatted for 80-column wrapping]
2010-11-01 01:03:53 +08:00
Chia-I Wu 52ef148923 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.
2010-10-31 21:22:26 +08:00
Chia-I Wu 1230050363 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.
2010-10-31 21:22:26 +08:00
Tom Stellard a15cf3cd0b r300/compiler: Don't clobber presubtract sources during optimizations
https://bugs.freedesktop.org/show_bug.cgi?id=28294
2010-10-30 22:26:19 -07:00
Francisco Jerez 088145f950 dri/nouveau: Pipeline glTexSubImage texture transfers. 2010-10-31 02:02:33 +01:00
Francisco Jerez f67fa52293 dri/nouveau: Keep small DYNAMIC_DRAW vertex buffers in system ram. 2010-10-31 02:01:24 +01:00
Francisco Jerez e89af20926 dri/nouveau: Optimize VBO binding re-emission. 2010-10-31 02:50:44 +02:00
Francisco Jerez 57382e71ef dri/nouveau: Split out array handling to its own file. 2010-10-31 02:50:04 +02:00
Francisco Jerez 9d1f1fcf13 dri/nouveau: Use a macro to iterate over the bound vertex attributes. 2010-10-31 02:45:38 +02:00
Francisco Jerez dbe1eae785 dri/nouveau: Avoid recursion in nouveau_bo_context_reset(). 2010-10-31 02:45:31 +02:00
Francisco Jerez f2098e0fef dri/nouveau: Split out the scratch helpers to a separate file. 2010-10-31 02:44:45 +02:00
Francisco Jerez 6daaf45359 dri/nouveau: Tell the vbo module we want real hardware BOs. 2010-10-31 02:44:35 +02:00
Francisco Jerez 6ee9cd482a dri/nouveau: Honor the access flags in nouveau_bufferobj_map_range. 2010-10-31 02:43:14 +02:00
Francisco Jerez f102c5220c 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.
2010-10-30 19:25:33 +02:00
Francisco Jerez e3c0b7ba41 dri/nv25: Bind a hierarchical depth buffer. 2010-10-30 19:25:32 +02:00
Francisco Jerez c5ca972c07 dri/nouveau: Don't assert(0) on compressed internal formats. 2010-10-30 19:25:32 +02:00
Francisco Jerez 920481d387 dri/nv20: Clear with the 3D engine. 2010-10-30 19:25:31 +02:00
Chia-I Wu cfc81d93f7 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.
2010-10-31 01:18:59 +08:00
Brian Paul 9c2b4814d0 osmesa: fix renderbuffer memleak in OSMesaMakeCurrent()
Fixes fd.o bug 31128.
2010-10-30 10:11:37 -06:00
Chia-I Wu 156e955c25 autoconf: st/vega requires --enable-openvg.
Make it a warning for now to smooth the transition.
2010-10-30 14:41:17 +08:00
Kenneth Graunke cff1aeea10 glsl: Remove unused ARRAY_SIZE macro.
It's also equivalent to Elements(...) which is already used elsewhere.
2010-10-29 11:43:30 -07:00
Eric Anholt a974949f3b 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
2010-10-29 11:28:38 -07:00
Brian Paul 34e8801b9c mesa: remove dead code 2010-10-29 08:13:31 -06:00
José Fonseca d070edd4f0 mesa: Fix windows build (uint -> GLuint). 2010-10-29 13:05:31 +01:00
Chia-I Wu bdd8838631 targets: Add missing quotes to Makefile.xorg.
Fix

  $ make CC="ccache gcc"
2010-10-29 13:00:12 +08:00
Chia-I Wu 9de5c6a1cb 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
2010-10-29 12:46:59 +08:00
Chia-I Wu 815faa448c autoconf: Update configuration info.
Output API info first.  Move GLU/GLw/GLUT and EGL near driver info.
2010-10-29 12:42:24 +08:00
Chia-I Wu c6320c5eb2 docs: Update egl and openvg docs. 2010-10-29 12:11:49 +08:00
Chia-I Wu be5f34a053 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
2010-10-29 12:10:46 +08:00
Brian Paul bdba4608df mesa: pixel transfer ops do not apply to integer-valued textures 2010-10-28 21:17:42 -06:00
Brian Paul 0a3566cec0 mesa: additional integer formats in _mesa_bytes_per_pixel() 2010-10-28 21:17:42 -06:00
Brian Paul 7faf521fad mesa: add const qualifier to _mesa_is_legal_format_and_type() 2010-10-28 21:17:42 -06:00
Brian Paul 113c1832b1 mesa: fix integer cases in _mesa_is_legal_format_and_type()
Some integer formats work with some packed datatypes.
2010-10-28 21:17:42 -06:00
Brian Paul 9fc7fa0a4c mesa: fix incorrect type in _mesa_texstore_rgba_int16() 2010-10-28 21:17:42 -06:00
Brian Paul b44f9c7e0a mesa: remove obsolete comment 2010-10-28 21:17:42 -06:00
Brian Paul 22c7a69d7b mesa: add extension table entry for GL_EXT_gpu_shader4 2010-10-28 21:17:42 -06:00
Brian Paul 55dc971ded mesa: clean-up array element code
Remove unnecessary GLAPIENTRY keywords, update comments, re-indent.
2010-10-28 21:17:42 -06:00
Brian Paul d916d81582 mesa: glArrayElement support for integer-valued arrays 2010-10-28 21:17:42 -06:00
Brian Paul 3b82ceec67 mesa: state/queries for GL_MIN/MAX_PROGRAM_TEXEL_OFFSET_EXT 2010-10-28 21:17:42 -06:00
Brian Paul 433e5e6def 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().
2010-10-28 21:17:42 -06:00
Brian Paul d1184d26bb mesa: add gl_client_array::Integer field and related vertex array state code 2010-10-28 21:17:41 -06:00
Brian Paul ca2618f4b6 mesa: implement integer-valued vertex attribute functions
The integers still get converted to floats.  That'll have to change someday.
2010-10-28 21:17:41 -06:00
Brian Paul e2b8c65723 mesa: add new GLvertexformat entries for integer-valued attributes 2010-10-28 21:17:41 -06:00
Brian Paul ba9995953c mesa: plug in more GL_EXT_gpu_shader4 functions 2010-10-28 21:17:41 -06:00
Brian Paul 9c61ca90ea mesa: add glGetUniformuiv(), plug in uint glUniform funcs 2010-10-28 21:17:41 -06:00
Brian Paul 53eca8d216 mesa: plug in stubs for glBindFragDataLocation(), glGetFragDataLocation() 2010-10-28 21:17:41 -06:00