Brian Paul [Fri, 22 Jan 2010 16:35:12 +0000 (09:35 -0700)]
glapi: clean-up and simplify glapi_nop.c code
Removed _glapi_noop_enable_warnings() and _glapi_set_warning_func().
Just check the DEBUG env vars and call fprintf(stderr) with a warning
message instead.
Brian Paul [Fri, 22 Jan 2010 16:32:12 +0000 (09:32 -0700)]
glapi: split the no-op dispatch code into new glapi_nop.c file
This unclutters the glapi.c file a bit.
Brian Paul [Fri, 22 Jan 2010 15:15:14 +0000 (08:15 -0700)]
glapi: fix int->pointer conversions warnings in no-op functions
Brian Paul [Thu, 21 Jan 2010 20:46:53 +0000 (13:46 -0700)]
progs/xdemos: add z/Z keys for scaling the rendering
Brian Paul [Thu, 21 Jan 2010 20:08:21 +0000 (13:08 -0700)]
gallium/draw: fix-up comments, whitespace
Brian Paul [Thu, 21 Jan 2010 20:02:56 +0000 (13:02 -0700)]
gallium/draw: replace int with boolean
Andre Maasikas [Fri, 22 Jan 2010 14:55:47 +0000 (16:55 +0200)]
r600: enable sampler lod* bits
bits, settings derived from testing, might contain some errors...
Andre Maasikas [Fri, 22 Jan 2010 12:06:10 +0000 (14:06 +0200)]
r600: update vport z & clipping when depth_clamp is changed
fixes piglit depth_clamp
Andre Maasikas [Fri, 22 Jan 2010 11:47:31 +0000 (13:47 +0200)]
r600: fix brownbag, only align if we are dealing with cubemap
Andre Maasikas [Fri, 22 Jan 2010 11:32:04 +0000 (13:32 +0200)]
r600: cubemap levels seem to be aligned to 8 images
Andre Maasikas [Fri, 22 Jan 2010 10:57:01 +0000 (12:57 +0200)]
radeon/fbo: flush rendering before generating mipmaps
or maybe should flush(also) in finish_render_texture...
Andre Maasikas [Mon, 4 Jan 2010 07:26:46 +0000 (09:26 +0200)]
radeon/fbo: use correct depth texture offset for depth textures
Andre Maasikas [Fri, 22 Jan 2010 10:31:24 +0000 (12:31 +0200)]
r600: enable draw_offset
fixes some fbo cases (mipmaps, cube textures ..)
Chia-I Wu [Fri, 22 Jan 2010 09:10:28 +0000 (17:10 +0800)]
docs: Update sourcetree.html for EGL and the state trackers.
Chia-I Wu [Fri, 22 Jan 2010 08:31:43 +0000 (16:31 +0800)]
st/egl_g3d: Rename to st/egl.
Simply the name to egl.
Chia-I Wu [Fri, 22 Jan 2010 08:25:11 +0000 (16:25 +0800)]
winsys/drm: Update the options of mklib in Makefile.egl_g3d.
Pass -linker, -ldflags, and $(MKLIB_OPTIONS) to mklib.
Chia-I Wu [Fri, 22 Jan 2010 08:02:39 +0000 (16:02 +0800)]
egl: Remove egl_softpipe.
With the addition egl_x11_swrast, egl_softpipe is sort of deprecated.
The new driver serves the same purpose as egl_softpipe does. It is
based on egl_g3d and provides more features.
Chia-I Wu [Fri, 22 Jan 2010 07:51:51 +0000 (15:51 +0800)]
winsys/drm: Add swrast.
The swrast winsys always returns NULL when drm_api_create is called.
Chia-I Wu [Fri, 22 Jan 2010 07:18:45 +0000 (15:18 +0800)]
st/egl: Remove the egl state tracker.
The egl_g3d state tracker has support for KMS, and the support is based
on the egl state tracker. As egl_g3d provides more features, it should
be better to keep only egl_g3d to unify the efforts.
Chia-I Wu [Fri, 22 Jan 2010 07:12:19 +0000 (15:12 +0800)]
egl: Remove USING_EGL and the related drivers.
They do not build for a long while and there seems to be no active
users. It might be better for them to live in the git histroy.
Chia-I Wu [Fri, 22 Jan 2010 07:07:58 +0000 (15:07 +0800)]
egl: Remove the demo driver.
The demo driver has outdated. It is suggested to look at any of the
drivers that is functioning.
Chia-I Wu [Fri, 22 Jan 2010 06:41:00 +0000 (14:41 +0800)]
st/egl_g3d: Use glxinit.c from egl_xdri.
It is used to fetch the GLX visuals/fbconfigs. Use egl_xdri's version
to avoid duplication. It might be better to rewrite that part though.
Chia-I Wu [Fri, 22 Jan 2010 07:05:31 +0000 (15:05 +0800)]
docs: Update the status of egl_xdri.
Mention that it also supports DRISW.
Chia-I Wu [Fri, 22 Jan 2010 06:15:14 +0000 (14:15 +0800)]
egl_xdri: Add support for DRISW.
Try DRISW if both DRI2 and DRI fail. It can also be forced by setting
EGL_SOFTWARE. When DRISW is used, single-buffered modes are ignored.
Chia-I Wu [Fri, 22 Jan 2010 06:28:23 +0000 (14:28 +0800)]
egl_xdri: Flush commands on context switch and buffer swap.
The corresponding DRI functions does not flush for us.
Chia-I Wu [Fri, 22 Jan 2010 06:53:31 +0000 (14:53 +0800)]
egl_xdri: Report only OpenGL support.
It reported OpenGL ES support because some demos did not set
EGL_RENDERABLE_TYPE correctly. The demos are fixed.
Chia-I Wu [Fri, 22 Jan 2010 06:13:25 +0000 (14:13 +0800)]
egl_xdri: Do not reinitialize in __glXInitialize.
__glXInitialize should return the same GLX display for the same X
display. This issue is triggered by
a35f6bb207efe3c959bbd16a37f2049e5aceeea9.
Chia-I Wu [Fri, 22 Jan 2010 06:23:22 +0000 (14:23 +0800)]
egl_glx: Report only OpenGL support.
It reported OpenGL ES support because some demos did not set
EGL_RENDERABLE_TYPE correctly. The demos are fixed.
Chia-I Wu [Fri, 22 Jan 2010 05:29:10 +0000 (13:29 +0800)]
egl: Update driver Makefiles.
Update to use the new Makefile.template.
Chia-I Wu [Fri, 22 Jan 2010 04:02:00 +0000 (12:02 +0800)]
egl: Add Makefile.template for EGL drivers.
Chia-I Wu [Fri, 22 Jan 2010 03:11:48 +0000 (11:11 +0800)]
winsys/drm: Update Makefile.template.
Mainly to respect LDFLAGS and remove unused target $(LIBNAME_EGL). This
is based on the patch by Tomáš Chvátal <scarabeus@gentoo.org>.
Alan Coopersmith [Fri, 22 Jan 2010 00:42:58 +0000 (16:42 -0800)]
Fix typo in configure message for gcc -fvisibility=hidden
Need to use $CC for a shell variable, not $(CC) for a make variable
which the shell interprets as running the command "CC".
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Brian Paul [Thu, 21 Jan 2010 18:52:54 +0000 (11:52 -0700)]
gallium: fix conditional rendering comment
Brian Paul [Thu, 21 Jan 2010 18:52:36 +0000 (11:52 -0700)]
gallium/docs: document conditional rendering
Brian Paul [Thu, 21 Jan 2010 18:35:33 +0000 (11:35 -0700)]
gallium: updated comments, whitespace fixes
Brian Paul [Thu, 21 Jan 2010 16:44:42 +0000 (09:44 -0700)]
mesa: minor whitespace fix
Luca Barbieri [Thu, 21 Jan 2010 06:38:39 +0000 (22:38 -0800)]
mesa: support for GL_ARB_fragment_coord_conventions
Signed-off-by: Brian Paul <brianp@vmware.com>
Brian Paul [Thu, 21 Jan 2010 16:38:50 +0000 (09:38 -0700)]
progs/fp: testcases for GL_ARB_fragment_coord_conventions
Based on a patch from Luca Barbieri but moved the comments after
the !!ARBfp1.0 header
Brian Paul [Thu, 21 Jan 2010 15:16:54 +0000 (08:16 -0700)]
docs: remove old pbuffer info
Brian Paul [Thu, 21 Jan 2010 15:13:32 +0000 (08:13 -0700)]
docs: added target attribute to external URLs
Brian Paul [Thu, 21 Jan 2010 15:14:22 +0000 (08:14 -0700)]
docs: add links to the egl, openvg, opengles pages
And move the GLSL link up the use User Topics section.
Brian Paul [Thu, 21 Jan 2010 00:40:48 +0000 (17:40 -0700)]
softpipe: added region assertions in softpipe_get_tex_transfer()
Brian Paul [Wed, 20 Jan 2010 15:58:46 +0000 (08:58 -0700)]
docs: new Mesa source tree overview page.
This has been sitting around for a while. Incomplete, but a good start.
Chia-I Wu [Thu, 21 Jan 2010 09:15:46 +0000 (17:15 +0800)]
dri: Remove unnecessary glapi headers.
They are not used at all.
Chia-I Wu [Thu, 21 Jan 2010 09:13:42 +0000 (17:13 +0800)]
Do not include glapi/dispatch.h outside Mesa core.
Include the glapi*.h directly instead. glapi/dispatch.h became a Mesa
core header since
22884db174b9fb0736cec1c6a192f8b9a97500c1.
Chia-I Wu [Thu, 21 Jan 2010 07:29:28 +0000 (15:29 +0800)]
docs: Update documentation for OpenVG and OpenGL ES.
Update the instructions and add references to egl.html.
Chia-I Wu [Thu, 21 Jan 2010 07:29:14 +0000 (15:29 +0800)]
docs: Add documentation for EGL.
This is a short guide to EGL. The drivers that are to be removed soon
are not mentioned in the guide.
Alan Coopersmith [Wed, 20 Jan 2010 02:59:39 +0000 (18:59 -0800)]
gallium/i965: Make brw_batchbuffer prototypes match in source & header
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
Corbin Simpson [Wed, 20 Jan 2010 20:21:21 +0000 (12:21 -0800)]
radeong: Fix EGL driver names.
Using "radeon" instead of "radeong" because we don't have classic EGL.
Tomas Chvatal [Wed, 20 Jan 2010 20:14:32 +0000 (21:14 +0100)]
Fix touching live system during install.
Alex Deucher [Wed, 20 Jan 2010 16:18:25 +0000 (11:18 -0500)]
r200: re-adding missing pitch alignment check in blit code
lost after switch to common code
Brian Paul [Wed, 20 Jan 2010 15:02:59 +0000 (08:02 -0700)]
mesa: replace questionable CPU_TO_LE32 macro with function
Alan Coopersmith [Wed, 20 Jan 2010 03:02:13 +0000 (19:02 -0800)]
Copy __FUNCTION__ portability #defines from mesa/compiler.h to eglcompiler.h
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
Alex Deucher [Wed, 20 Jan 2010 15:00:50 +0000 (10:00 -0500)]
r200: fix some breakage after move to common blit code
Alex Deucher [Wed, 20 Jan 2010 14:06:49 +0000 (09:06 -0500)]
r200: fix typo in
76cf2618327a7f008dcfd0d91d64d6d9e01f9a9c
noticed by Maciej on IRC.
Chia-I Wu [Wed, 20 Jan 2010 05:55:57 +0000 (13:55 +0800)]
st/egl_g3d: Add support for driver probe.
Hook the drv->Probe callback to allow the drivers to probe displays.
The loading of state trackers is delayed to avoid unnecessary loading.
Chia-I Wu [Wed, 20 Jan 2010 07:52:50 +0000 (15:52 +0800)]
st/egl_g3d: Add support for probe to native displays.
The functions can be used to check if a display is supported without
creating a struct native_display. It uses a probe object that can be
shared across drivers.
Chia-I Wu [Wed, 20 Jan 2010 06:35:50 +0000 (14:35 +0800)]
egl: Add a simple cache for driver probe.
In current design, multiple drivers will probe the same display and the
best driver is determined. The cache can be used by the drivers to
store and share the probed data.
Chia-I Wu [Tue, 19 Jan 2010 10:39:59 +0000 (18:39 +0800)]
egl: Improve driver matching.
Make drv->Probe return a score so that the matching can be done by
finding the driver with the highest score.
Chia-I Wu [Wed, 20 Jan 2010 09:42:33 +0000 (17:42 +0800)]
egl: Rename _EGL_PLATFORM_X to _EGL_PLATFORM_POSIX.
The macro is used to determine if dlfcn.h or dirent.h is available.
POSIX is a better name than X in such case.
Chia-I Wu [Tue, 19 Jan 2010 09:39:34 +0000 (17:39 +0800)]
egl: Remove unused driver and display functions.
Remove _eglPreloadDriver, _eglLookupDriver, and _eglSplitDisplayString.
Chia-I Wu [Tue, 19 Jan 2010 10:29:21 +0000 (18:29 +0800)]
egl: Use _eglPreloadDrivers.
Replace the use of _eglPreloadDriver by _eglPreloadDrivers. The latter
supports EGL_DISPLAY which have a better chance to "just work".
Chia-I Wu [Tue, 19 Jan 2010 10:13:50 +0000 (18:13 +0800)]
egl: Add _eglPreloadDrivers.
It can be used to load the user driver specified by EGL_DRIVER, or a set
of drivers specified by EGL_DISPLAY, or the default driver, and in that
order.
Chia-I Wu [Wed, 20 Jan 2010 05:24:42 +0000 (13:24 +0800)]
st/egl_g3d: Do not reuse the pipe transfer in ximage.
A pipe transfer is supposed to be temporary. It should be created
before X*PutImage and destroyed afterwards.
Alan Coopersmith [Wed, 20 Jan 2010 02:13:14 +0000 (18:13 -0800)]
mklib: Fix static library generation/installation on Solaris
Change ar flag from -v (-verbose) to -c (silence console output)
so that it stops causing make_ar_static_lib() to return a bunch
of output other than the resulting library file.
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Alan Coopersmith [Mon, 5 Oct 2009 19:56:03 +0000 (12:56 -0700)]
Remove hardcoded -Wall from Radeon DRI makefiles
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
Corbin Simpson [Wed, 20 Jan 2010 02:09:28 +0000 (18:09 -0800)]
r300g: Move GB_AA_CONFIG to its eventual new home.
Corbin Simpson [Wed, 20 Jan 2010 01:56:12 +0000 (17:56 -0800)]
r300g: Make invariant state into an atom.
Chia-I Wu [Wed, 20 Jan 2010 02:02:15 +0000 (10:02 +0800)]
Merge remote branch 'origin/opengl-es-v2'
Brian Paul [Wed, 20 Jan 2010 01:00:26 +0000 (18:00 -0700)]
util/blit: document params to util_blit_pixels_writemask()
Brian Paul [Wed, 20 Jan 2010 00:59:50 +0000 (17:59 -0700)]
mesa: added comment about future FBO formats
Marek Olšák [Wed, 6 Jan 2010 13:27:50 +0000 (14:27 +0100)]
st/mesa: enable EXT_framebuffer_multisample
Signed-off-by: Brian Paul <brianp@vmware.com>
Alex Deucher [Wed, 20 Jan 2010 00:13:26 +0000 (19:13 -0500)]
r100/r200: fix Y coord flipping in accelerated blits
Alex Deucher [Tue, 19 Jan 2010 23:52:19 +0000 (18:52 -0500)]
r100/r200: fix dst pitch in blit code
Alex Deucher [Tue, 19 Jan 2010 23:48:36 +0000 (18:48 -0500)]
r200: add missing symlink to radeon_tex_copy.c
Maciej Cencora [Tue, 19 Jan 2010 23:09:11 +0000 (00:09 +0100)]
r100/r200: align to pitch updates in blit interface
Maciej Cencora [Tue, 19 Jan 2010 22:20:44 +0000 (23:20 +0100)]
r200: use common glCopyTex(Sub)Image code
Maciej Cencora [Tue, 19 Jan 2010 22:12:12 +0000 (23:12 +0100)]
r100: use common glCopyTex(Sub)Image code
Maciej Cencora [Tue, 19 Jan 2010 22:34:56 +0000 (23:34 +0100)]
radeon/r300/r600: share common glCopyTex(Sub)Image code
Maciej Cencora [Mon, 18 Jan 2010 22:00:36 +0000 (23:00 +0100)]
r600: align to r300 changes in the blit code
Pitch here means aligned width, not aligned width * bpp.
Maciej Cencora [Mon, 18 Jan 2010 21:52:40 +0000 (22:52 +0100)]
r300/r600: move some bo offsets checking to blit code
In preperation for texcopy code sharing.
Maciej Cencora [Mon, 18 Jan 2010 21:50:06 +0000 (22:50 +0100)]
r600: prepare for some code sharing
Maciej Cencora [Sat, 16 Jan 2010 21:44:30 +0000 (22:44 +0100)]
r300: check if blitting for given format is supported earlier
Prevents failing assertions at later stage.
Maciej Cencora [Sat, 16 Jan 2010 14:21:52 +0000 (15:21 +0100)]
r300: use nearest texture filtering for accelerated blits
Maciej Cencora [Sat, 16 Jan 2010 13:53:07 +0000 (14:53 +0100)]
r300: fix Y coord flipping in accelerated blits
Maciej Cencora [Sun, 10 Jan 2010 13:17:20 +0000 (14:17 +0100)]
radeon: use mesa provided _mesa_tex_target_to_face function
Maciej Cencora [Sun, 10 Jan 2010 12:59:39 +0000 (13:59 +0100)]
r300: prepare for texcopy code sharing
Maciej Cencora [Sun, 10 Jan 2010 13:04:16 +0000 (14:04 +0100)]
radeon: add blit function to vtbl
Eric Anholt [Fri, 20 Nov 2009 02:10:57 +0000 (03:10 +0100)]
intel: Remove dead note_fence vtbl hook.
Eric Anholt [Tue, 24 Nov 2009 03:09:48 +0000 (19:09 -0800)]
i965: Improve the hashing of brw_state_cache keys to include the cache_id.
No measurable difference on cairoperf.
Eric Anholt [Sun, 22 Nov 2009 03:30:01 +0000 (04:30 +0100)]
i965: Remove obsolete comment about the state atoms.
Eric Anholt [Mon, 18 Jan 2010 23:12:40 +0000 (15:12 -0800)]
i965: Upload as many VS constants as possible through the push constants.
The pull constants require sending out to an overworked shared unit
and waiting for a response, while push constants are nicely loaded in
for us at thread dispatch time. By putting things we access in every
VS invocation there, ETQW performance improved by 2.5% +/- 1.6% (n=6).
Eric Anholt [Mon, 18 Jan 2010 21:27:47 +0000 (13:27 -0800)]
i965: Allow for variable-sized auxdata in the state cache.
Everything has been constant-sized until now, but constant buffer
handling changes will make us want some additional variable sized
array.
Eric Anholt [Tue, 19 Jan 2010 18:55:21 +0000 (10:55 -0800)]
intel: Use the new DRI2 flush invalidate entrypoint to signal frame done.
Previously for frame throttling we would wait on the first batch after
a swap before emitting another swap, because we had no hook after a
swap was emitted. This meant that if an app managed to squeeze
everything it for a frame had into one batch, it would lock-step with
the GPU. With the swapbuffers changes, we now have the entrypoint we
want.
This takes the WoW intro screen from 25% GPU idle and visibly jerky to
4-5% GPU idle and rather smooth. Other apps such as OpenArena have
run into this problem as well.
Alan Coopersmith [Sun, 17 Jan 2010 04:21:35 +0000 (20:21 -0800)]
Sun compilers now support some gcc __attribute__ values
Sun cc 5.9 and later (__SUNPRO_C >= 0x590) support __attribute__ calls
for aligned, always_inline, noinline, pure, const, and malloc.
This commit includes updates to files that were regenerated by gl_XML.py
after adding the __SUNPRO_C checks to it
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
Alan Coopersmith [Sun, 17 Jan 2010 02:34:23 +0000 (18:34 -0800)]
Check if gcc supports -fvisibility=hidden before adding to CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Brian Paul [Tue, 19 Jan 2010 18:14:00 +0000 (11:14 -0700)]
softpipe: remove redundant assignments
We initialized width/height/depth from pt->width0/height0/depth0 above.
Alex Deucher [Tue, 19 Jan 2010 06:47:04 +0000 (01:47 -0500)]
Alex Deucher [Tue, 19 Jan 2010 06:42:41 +0000 (01:42 -0500)]
r100/r200/r600: check if blitting for given format is supported earlier
based on Maciej's r300 patch.
Alex Deucher [Tue, 19 Jan 2010 06:26:35 +0000 (01:26 -0500)]
r100/r200: add blit support for ARGB4444