mesa.git
13 years agost/python: remove unused 'buf' parameter in pipe_buffer_unmap
Vinson Lee [Mon, 20 Dec 2010 19:40:54 +0000 (11:40 -0800)]
st/python: remove unused 'buf' parameter in pipe_buffer_unmap

This is a follow-up to commit ec51092a72e2dff1e9b1362d813fe4691cda89b7.

Fixes SCons build.

13 years agogallium: remove unused 'buf' parameter in pipe_buffer_unmap
Marek Olšák [Sun, 19 Dec 2010 03:17:43 +0000 (04:17 +0100)]
gallium: remove unused 'buf' parameter in pipe_buffer_unmap

13 years agost/mesa: Remove comment cruft from st_context.h.
Vinson Lee [Mon, 20 Dec 2010 09:24:26 +0000 (01:24 -0800)]
st/mesa: Remove comment cruft from st_context.h.

This was unintentionally added by commit
1525fb4afec0adc164948b4060ec1c0359441cd3.

13 years agost/mesa: Clean up header file inclusion in st_cb_texture.h.
Vinson Lee [Mon, 20 Dec 2010 09:15:04 +0000 (01:15 -0800)]
st/mesa: Clean up header file inclusion in st_cb_texture.h.

13 years agost/mesa: Clean up header file inclusion in st_cb_readpixels.h.
Vinson Lee [Mon, 20 Dec 2010 09:00:26 +0000 (01:00 -0800)]
st/mesa: Clean up header file inclusion in st_cb_readpixels.h.

13 years agonvc0: s/INLIN_RING/IMMED_RING
Christoph Bumiller [Sun, 19 Dec 2010 21:49:50 +0000 (22:49 +0100)]
nvc0: s/INLIN_RING/IMMED_RING

13 years agonvc0: improve shader support for texturing
Christoph Bumiller [Sun, 19 Dec 2010 20:49:32 +0000 (21:49 +0100)]
nvc0: improve shader support for texturing

Fixed shadow and cube texture fetches, add array texture fetches.

13 years agonvc0: adapt to array textures interface change
Christoph Bumiller [Sun, 19 Dec 2010 20:48:39 +0000 (21:48 +0100)]
nvc0: adapt to array textures interface change

13 years agoMerge remote branch 'origin/master' into nvc0-new
Christoph Bumiller [Sun, 19 Dec 2010 20:46:33 +0000 (21:46 +0100)]
Merge remote branch 'origin/master' into nvc0-new

13 years agonvc0: fix clipping with scissors/viewport
Christoph Bumiller [Sun, 19 Dec 2010 20:42:00 +0000 (21:42 +0100)]
nvc0: fix clipping with scissors/viewport

Also setup optional path to use proper primitive clipping instead,
which is probably slower.

13 years agonvc0: use BIND_RING to set subchannel classes
Christoph Bumiller [Sun, 19 Dec 2010 20:40:24 +0000 (21:40 +0100)]
nvc0: use BIND_RING to set subchannel classes

13 years agonvc0: switch to the proper constants upload path
Christoph Bumiller [Sun, 19 Dec 2010 20:38:42 +0000 (21:38 +0100)]
nvc0: switch to the proper constants upload path

Makes things suddenly go surprisingly fast.

13 years agonvc0: add the index buffer offset where missing
Christoph Bumiller [Sun, 19 Dec 2010 20:33:37 +0000 (21:33 +0100)]
nvc0: add the index buffer offset where missing

13 years agor300g: optimize the fallback for misaligned ushort indices
Marek Olšák [Sun, 19 Dec 2010 01:54:43 +0000 (02:54 +0100)]
r300g: optimize the fallback for misaligned ushort indices

13 years agost/mesa: Clean up header file inclusion in st_cb_program.h.
Vinson Lee [Sat, 18 Dec 2010 09:44:52 +0000 (01:44 -0800)]
st/mesa: Clean up header file inclusion in st_cb_program.h.

13 years agost/mesa: Clean up header file inclusion in st_cb_accum.h.
Vinson Lee [Sat, 18 Dec 2010 09:28:18 +0000 (01:28 -0800)]
st/mesa: Clean up header file inclusion in st_cb_accum.h.

13 years agomesa: Clean up header file inclusion in prog_statevars.h.
Vinson Lee [Sat, 18 Dec 2010 09:16:53 +0000 (01:16 -0800)]
mesa: Clean up header file inclusion in prog_statevars.h.

13 years agomesa: fix queryobj whitespace.
Dave Airlie [Sat, 18 Dec 2010 07:48:21 +0000 (17:48 +1000)]
mesa: fix queryobj whitespace.

Had done this before pushing but forgot to amend, doh.

13 years agomesa/swrast/st: add ARB_occlusion_query2 support.
Dave Airlie [Sat, 11 Sep 2010 20:31:30 +0000 (06:31 +1000)]
mesa/swrast/st: add ARB_occlusion_query2 support.

This gets my vote for most pointless extension of all time, I'm guessing
some driver could possibly optimise for this instead of counting it might
just get a true/false, but I'm not really sure.

need this to eventually advertise 3.3 despite its total uselessness.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agomapi: Clean up sources.mk.
Chia-I Wu [Fri, 10 Dec 2010 19:27:54 +0000 (03:27 +0800)]
mapi: Clean up sources.mk.

Rename MAPI_GLAPI_SOURCES to MAPI_UTIL_SOURCES.  Rename macro
MAPI_GLAPI_CURRENT to MAPI_MODE_UTIL.  Update the comments to make it
clear that mapi may be used in two ways and how.

13 years agomapi: Clean up u_current interface.
Chia-I Wu [Fri, 10 Dec 2010 09:14:04 +0000 (17:14 +0800)]
mapi: Clean up u_current interface.

Try not to use macros to make u_current.h appear to be glapi.h.  Use
u_current.h to implement glapi.h instead whenever possible.

13 years agomapi: Add ABI-tag note.
Chia-I Wu [Thu, 16 Dec 2010 19:11:53 +0000 (03:11 +0800)]
mapi: Add ABI-tag note.

TLS requires kernel >= 2.4.20.  Per glapi.

13 years agoRefresh autogenerated file builtin_function.cpp.
Kenneth Graunke [Sat, 18 Dec 2010 03:28:47 +0000 (19:28 -0800)]
Refresh autogenerated file builtin_function.cpp.

NOTE: The 7.9 and 7.10 branches will need their builtins refreshed too.
Rather than cherry-picking this commit, run 'make builtins'.

13 years agoglsl/builtins: Compute the correct value for smoothstep(vec, vec, vec).
Kenneth Graunke [Sat, 18 Dec 2010 03:25:37 +0000 (19:25 -0800)]
glsl/builtins: Compute the correct value for smoothstep(vec, vec, vec).

These mistakenly computed 't' instead of t * t * (3.0 - 2.0 * t).

Also, properly vectorize the smoothstep(float, float, vec) variants.

NOTE: This is a candidate for the 7.9 and 7.10 branches.

13 years agogallivm: Cleanup util_format_xxx_fetch_xxx call generation.
José Fonseca [Fri, 17 Dec 2010 20:08:35 +0000 (20:08 +0000)]
gallivm: Cleanup util_format_xxx_fetch_xxx call generation.

No need to register function prototypes in the module now that we call
the C function pointer directly -- less LLVM objects lying around.

Limited testing with lp_test_format.

13 years agoglsl: Expose a public glsl_type::void_type const pointer.
Kenneth Graunke [Mon, 13 Dec 2010 19:19:38 +0000 (11:19 -0800)]
glsl: Expose a public glsl_type::void_type const pointer.

This is analogous to glsl_type::int_type and all the others.

13 years agor300g: finally fix the texture corruption on r3xx-r4xx
Marek Olšák [Fri, 17 Dec 2010 07:59:32 +0000 (08:59 +0100)]
r300g: finally fix the texture corruption on r3xx-r4xx

Even though a bound texture stays bound when calling set_fragment_sampler_views,
it must be assigned a new cache region depending on the occupancy of other
texture units.

This fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=28800

Thanks to Álmos <aaalmosss@gmail.com> for finding the bug in the code.

NOTE: This is a candidate for both the 7.9 and 7.10 branches.

13 years agoRemove OES_compressed_paletted_texture from the ES2 extension list.
Kenneth Graunke [Fri, 17 Dec 2010 01:40:00 +0000 (17:40 -0800)]
Remove OES_compressed_paletted_texture from the ES2 extension list.

We don't support it.

13 years agosoftpipe: remove sp_tex_tile_cache_border_color()
Brian Paul [Fri, 17 Dec 2010 01:17:20 +0000 (18:17 -0700)]
softpipe: remove sp_tex_tile_cache_border_color()

With swizzling done at the end of texture sampling, we can greatly
simplify swizzling of the border color.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32460

13 years agosoftpipe: fix depth texture sampling regression
Brian Paul [Fri, 17 Dec 2010 00:38:16 +0000 (17:38 -0700)]
softpipe: fix depth texture sampling regression

We need to keep using the pipe_get_tile_swizzle() even though there's
no swizzling because we need to explicitly pass in the surface format.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32459

13 years agogallivm: fix copy&paste error from previous commit
Brian Paul [Thu, 16 Dec 2010 21:29:15 +0000 (14:29 -0700)]
gallivm: fix copy&paste error from previous commit

Fixes piglit regression, http://bugs.freedesktop.org/show_bug.cgi?id=32452

NOTE: This is a candidate for the 7.10 branch

13 years agor600c : inline vertex format is not updated in an app, switch to use vfetch constants...
richard [Thu, 16 Dec 2010 20:52:55 +0000 (15:52 -0500)]
r600c : inline vertex format is not updated in an app, switch to use vfetch constants. For the 7.9 and 7.10 branches as well.

13 years agointel: Support glCopyTexImage() from XRGB8888 to ARGB8888.
Eric Anholt [Wed, 15 Dec 2010 20:10:03 +0000 (12:10 -0800)]
intel: Support glCopyTexImage() from XRGB8888 to ARGB8888.

The only mismatch between the two is that we have to clear the
destination's alpha to 1.0.  Fixes WOW performance on my Ironlake,
from a few frames a second to almost playable.

13 years agointel: Try to sanely check that formats match for CopyTexImage.
Eric Anholt [Wed, 15 Dec 2010 19:54:38 +0000 (11:54 -0800)]
intel: Try to sanely check that formats match for CopyTexImage.

Before, we were going off of a couple of known (hopeful) matches
between internalFormats and the cpp of the read buffer.  Instead, we
can now just look at the gl_format of the two to see if they match.
We should avoid bad blits that might have been possible before, but
also allow different internalFormats to work without having to
enumerate each one.

13 years agointel: Drop commented intel_flush from copy_teximage.
Eric Anholt [Wed, 15 Dec 2010 19:46:37 +0000 (11:46 -0800)]
intel: Drop commented intel_flush from copy_teximage.

The blit that follows appears in the command stream so it's serialized
with previous rendering.  Any queued vertices in the tnl layer were
already flushed up in mesa/main/.

13 years agointel: Update renderbuffers before looking up CopyTexImage's read buffer.
Eric Anholt [Wed, 15 Dec 2010 19:37:45 +0000 (11:37 -0800)]
intel: Update renderbuffers before looking up CopyTexImage's read buffer.

Not fixing a particular bug, just noticed by code inspection.

13 years agogallivm: work around LLVM 2.6 bug when calling C functions
Brian Paul [Thu, 16 Dec 2010 17:13:02 +0000 (10:13 -0700)]
gallivm: work around LLVM 2.6 bug when calling C functions

Create a constant int pointer to the C function, then cast it to the
function's type.  This avoids using trampoline code which seem to be
inadvertantly freed by LLVM in some situations (which leads to segfaults).
The root issue and work-around were found by José.

NOTE: This is a candidate for the 7.10 branch

13 years agodraw: s/varient/variant/
Brian Paul [Thu, 16 Dec 2010 15:50:42 +0000 (08:50 -0700)]
draw: s/varient/variant/

13 years agosvga: s/varient/variant/
Brian Paul [Thu, 16 Dec 2010 15:50:30 +0000 (08:50 -0700)]
svga: s/varient/variant/

13 years agoi965g: s/varient/variant/
Brian Paul [Thu, 16 Dec 2010 15:47:37 +0000 (08:47 -0700)]
i965g: s/varient/variant/

13 years agoi915g: s/varient/variant/
Brian Paul [Thu, 16 Dec 2010 15:46:35 +0000 (08:46 -0700)]
i915g: s/varient/variant/

13 years agosoftpipe: s/varient/variant
Brian Paul [Thu, 16 Dec 2010 15:44:12 +0000 (08:44 -0700)]
softpipe: s/varient/variant

13 years agost/mesa: s/varient/variant
Brian Paul [Thu, 16 Dec 2010 15:43:21 +0000 (08:43 -0700)]
st/mesa: s/varient/variant

13 years agoi965: Set the alternative floating point mode on gen6 VS and WM.
Eric Anholt [Wed, 15 Dec 2010 23:15:02 +0000 (15:15 -0800)]
i965: Set the alternative floating point mode on gen6 VS and WM.

This matches how we did the math instructions pre-gen6, though it
applies to non-math as well.

Fixes vp1-LIT test 2 (degenerate case: 0 ^ 0 -> 1)

13 years agoi915: Fix INTEL_DEBUG=wm segmentation fault
Shuang He [Wed, 15 Dec 2010 03:16:49 +0000 (11:16 +0800)]
i915: Fix INTEL_DEBUG=wm segmentation fault

The program should be disassembled after it's uploaded

13 years agosvga, glhd: Remove incorrect assert and add note
Jakob Bornecrantz [Wed, 15 Dec 2010 11:17:26 +0000 (12:17 +0100)]
svga, glhd: Remove incorrect assert and add note

Stride can be lower then the size of the attribute.
But should probably be aligned to component size atleast for floats.

13 years agosvga: Minor debug text fix
Jakob Bornecrantz [Thu, 16 Dec 2010 03:05:59 +0000 (04:05 +0100)]
svga: Minor debug text fix

13 years agosvga: Remove debug print in winsys
Jakob Bornecrantz [Thu, 16 Dec 2010 02:00:16 +0000 (03:00 +0100)]
svga: Remove debug print in winsys

13 years agosvga: Correct spelling in swtnl backend
Jakob Bornecrantz [Thu, 16 Dec 2010 02:42:56 +0000 (03:42 +0100)]
svga: Correct spelling in swtnl backend

13 years agosvga: Fix newline at EOF
Jakob Bornecrantz [Wed, 15 Dec 2010 11:14:33 +0000 (12:14 +0100)]
svga: Fix newline at EOF

13 years agosvga: Add Galahad and Softpipe to scons build
Jakob Bornecrantz [Wed, 15 Dec 2010 11:13:54 +0000 (12:13 +0100)]
svga: Add Galahad and Softpipe to scons build

13 years agowrapper: Flush pipe on unmap
Jakob Bornecrantz [Thu, 16 Dec 2010 06:24:32 +0000 (07:24 +0100)]
wrapper: Flush pipe on unmap

For drivers that does DMA transfers instead of mapping directly

13 years agowrapper: Fix width and height given to map and remove uneeded fields
Jakob Bornecrantz [Wed, 15 Dec 2010 11:17:06 +0000 (12:17 +0100)]
wrapper: Fix width and height given to map and remove uneeded fields

13 years agoi915g: Ignore color0 writes all cbufs tgsi property
Jakob Bornecrantz [Sat, 25 Dec 2010 14:01:09 +0000 (14:01 +0000)]
i915g: Ignore color0 writes all cbufs tgsi property

13 years agost/egl: Fix eglChooseConfig when configs is NULL.
Chia-I Wu [Sun, 26 Dec 2010 15:34:57 +0000 (23:34 +0800)]
st/egl: Fix eglChooseConfig when configs is NULL.

When configs is NULL, the app wants to know the number of matching
configs.

13 years agoswrast: Clean up header file inclusion in ss_vb.h.
Vinson Lee [Sun, 26 Dec 2010 04:53:27 +0000 (20:53 -0800)]
swrast: Clean up header file inclusion in ss_vb.h.

13 years agoswrast: Clean up header file inclusion in ss_triangle.h.
Vinson Lee [Sun, 26 Dec 2010 04:48:29 +0000 (20:48 -0800)]
swrast: Clean up header file inclusion in ss_triangle.h.

13 years agoswrast: Clean up header file inclusion in s_texfilter.h.
Vinson Lee [Sun, 26 Dec 2010 04:28:17 +0000 (20:28 -0800)]
swrast: Clean up header file inclusion in s_texfilter.h.

13 years agoswrast: Clean up header file inclusion in s_texcombine.h.
Vinson Lee [Sun, 26 Dec 2010 04:12:06 +0000 (20:12 -0800)]
swrast: Clean up header file inclusion in s_texcombine.h.

13 years agoswrast: Clean up header file inclusion in s_masking.h.
Vinson Lee [Sun, 26 Dec 2010 04:03:33 +0000 (20:03 -0800)]
swrast: Clean up header file inclusion in s_masking.h.

13 years agonvfx: Remove unused variable.
Vinson Lee [Sun, 26 Dec 2010 03:09:54 +0000 (19:09 -0800)]
nvfx: Remove unused variable.

Fixes this GCC warning.
nvfx_vbo.c: In function 'nvfx_idxbuf_emit':
nvfx_vbo.c:410: warning: unused variable 'eng3d'

13 years agonvfx: restore BEGIN_RING usage
Xavier Chantry [Sat, 25 Dec 2010 15:39:01 +0000 (16:39 +0100)]
nvfx: restore BEGIN_RING usage

Michel Hermier reported libdrm segfault (and kernel crash) on nv40 using
gallium :
http://www.mail-archive.com/nouveau@lists.freedesktop.org/msg06563.html

It turns out these were caused by some missing WAIT_RING (or wrong
computation of the WAIT_RING sizes). Unlike all other libdrm_nouveau users,
nvfx gallium tried to use a mininum calls of WAIT_RING, one WAIT_RING could
apply to many methods for different code paths and spread across several
functions. This made it too tricky to find out what the missing or wrong
WAIT_RING was.

By restoring BEGIN_RING, we force one WAIT_RING per method, and it's much
easier to check if the free size required in the pushbuffer is correct.  As
curro said, "let's keep it simple for the maintainers until the big
bottlenecks are gone"

Benchmarked on nv35 with openarena, nexuiz and ut2004 and no performance
regression.

The core of this patch was made with Coccinelle, with minor manual fixes
made on top.

Tested-by: Michel Hermier <hermier@frugalware.org>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
13 years agointel: Only do frame throttling at glFlush time when using frontbuffer.
Eric Anholt [Sat, 25 Dec 2010 16:57:22 +0000 (08:57 -0800)]
intel: Only do frame throttling at glFlush time when using frontbuffer.

This is the hack for input interactivity of frontbuffer rendering
(like we do for backbuffer at intelDRI2Flush()) by waiting for the n-2
frame to complete before starting a new one.  However, for an
application doing multiple contexts or regular rebinding of a single
context, this would end up lockstepping the CPU to the GPU because
every unbind was considered the end of a frame.

Improves WOW performance on my Ironlake by 48.8% (+/- 2.3%, n=5)

13 years agor300g: simplify buffer_transfer_inline_write
Marek Olšák [Sat, 25 Dec 2010 13:48:34 +0000 (14:48 +0100)]
r300g: simplify buffer_transfer_inline_write

13 years agor300g: simplify the code for buffer uploads
Marek Olšák [Sat, 25 Dec 2010 13:46:45 +0000 (14:46 +0100)]
r300g: simplify the code for buffer uploads

13 years agor300g: user index buffers are always aligned
Marek Olšák [Sat, 25 Dec 2010 13:39:35 +0000 (14:39 +0100)]
r300g: user index buffers are always aligned

13 years agor300g: increase the size of upload buffers
Marek Olšák [Sat, 25 Dec 2010 13:39:07 +0000 (14:39 +0100)]
r300g: increase the size of upload buffers

13 years agoswrast: Clean up header file inclusion in s_logic.h.
Vinson Lee [Sat, 25 Dec 2010 04:43:35 +0000 (20:43 -0800)]
swrast: Clean up header file inclusion in s_logic.h.

13 years agoswrast: Clean up header file inclusion in s_fragprog.h.
Vinson Lee [Sat, 25 Dec 2010 04:34:53 +0000 (20:34 -0800)]
swrast: Clean up header file inclusion in s_fragprog.h.

13 years agoswrast: Clean up header file inclusion in s_span.h.
Vinson Lee [Sat, 25 Dec 2010 04:17:18 +0000 (20:17 -0800)]
swrast: Clean up header file inclusion in s_span.h.

13 years agoswrast: Clean up header file inclusion in s_fog.h.
Vinson Lee [Sat, 25 Dec 2010 04:11:44 +0000 (20:11 -0800)]
swrast: Clean up header file inclusion in s_fog.h.

13 years agoswrast: Clean up header file inclusion in s_depth.h.
Vinson Lee [Sat, 25 Dec 2010 04:06:11 +0000 (20:06 -0800)]
swrast: Clean up header file inclusion in s_depth.h.

13 years agoswrast: Clean up header file inclusion in s_blend.h.
Vinson Lee [Sat, 25 Dec 2010 03:55:42 +0000 (19:55 -0800)]
swrast: Clean up header file inclusion in s_blend.h.

13 years agoswrast: Clean up header file inclusion in s_atifragshader.h.
Vinson Lee [Sat, 25 Dec 2010 03:47:54 +0000 (19:47 -0800)]
swrast: Clean up header file inclusion in s_atifragshader.h.

13 years agoswrast: Clean up header file inclusion in s_alpha.h.
Vinson Lee [Sat, 25 Dec 2010 03:30:38 +0000 (19:30 -0800)]
swrast: Clean up header file inclusion in s_alpha.h.

13 years agoswrast: Clean up header file inclusion in s_accum.h.
Vinson Lee [Sat, 25 Dec 2010 03:25:30 +0000 (19:25 -0800)]
swrast: Clean up header file inclusion in s_accum.h.

13 years agoswrast: Clean up header file inclusion in s_aatriangle.h.
Vinson Lee [Sat, 25 Dec 2010 02:48:00 +0000 (18:48 -0800)]
swrast: Clean up header file inclusion in s_aatriangle.h.

13 years agoswrast: Clean up header file inclusion in s_aaline.h.
Vinson Lee [Sat, 25 Dec 2010 02:35:10 +0000 (18:35 -0800)]
swrast: Clean up header file inclusion in s_aaline.h.

13 years agost/mesa: Clean up header file inclusion in st_mesa_to_tgsi.h.
Vinson Lee [Sat, 25 Dec 2010 02:27:55 +0000 (18:27 -0800)]
st/mesa: Clean up header file inclusion in st_mesa_to_tgsi.h.

13 years agost/mesa: Clean up header file inclusion in st_gen_mipmap.h.
Vinson Lee [Sat, 25 Dec 2010 02:06:20 +0000 (18:06 -0800)]
st/mesa: Clean up header file inclusion in st_gen_mipmap.h.

13 years agodocs/egl: Update egl.html.
Chia-I Wu [Fri, 24 Dec 2010 18:45:13 +0000 (02:45 +0800)]
docs/egl: Update egl.html.

Various updates and a new section about packaging.

13 years agor300g/swtcl: re-enable LLVM
Marek Olšák [Fri, 24 Dec 2010 17:16:16 +0000 (18:16 +0100)]
r300g/swtcl: re-enable LLVM

Based on a patch from Drill <drill87@gmail.com>.

NOTE: This is a candidate for the 7.10 branch.

13 years agor600g: r600_blit_uncompress_depth() can't fail.
Henri Verbeet [Fri, 24 Dec 2010 10:36:50 +0000 (11:36 +0100)]
r600g: r600_blit_uncompress_depth() can't fail.

13 years agor600g: Get rid of r600_blit_uncompress_depth_ptr.
Henri Verbeet [Fri, 24 Dec 2010 10:36:50 +0000 (11:36 +0100)]
r600g: Get rid of r600_blit_uncompress_depth_ptr.

13 years agomapi: Move mapi_func typedef to entry.h.
Chia-I Wu [Fri, 24 Dec 2010 09:26:08 +0000 (17:26 +0800)]
mapi: Move mapi_func typedef to entry.h.

Make it clear that entry.h does not depend on stub.h.

13 years agomapi: Define MAPI_TMP_DEFINES only when needed.
Chia-I Wu [Fri, 24 Dec 2010 08:04:14 +0000 (16:04 +0800)]
mapi: Define MAPI_TMP_DEFINES only when needed.

Since struct mapi_table is opaque, MAPI_TMP_DEFINES is not needed in
table.h.

13 years agomapi: Add and use entry_get_public.
Chia-I Wu [Fri, 24 Dec 2010 07:06:41 +0000 (15:06 +0800)]
mapi: Add and use entry_get_public.

Given a dispatch slot, entry_get_public returns the address of the
corresponding public entry point.  There may be more than one of them.
But since they are all equivalent, it is fine to return any one of them.

With entry_get_public, the address of any public entry point can be
calculated at runtime when an assembly dispatcher is used.  There is no
need to have a mapping table in such case.  This omits the unnecessary
relocations from the binary.

13 years agomapi: Make struct mapi_stub opaque.
Chia-I Wu [Fri, 24 Dec 2010 05:49:01 +0000 (13:49 +0800)]
mapi: Make struct mapi_stub opaque.

Add accessors for struct mapi_stub and make it opaque.

13 years agomapi: Allow blocks to be disabled from the output.
Chia-I Wu [Thu, 16 Dec 2010 17:31:43 +0000 (01:31 +0800)]
mapi: Allow blocks to be disabled from the output.

For example, a printer may ask not to output noop dispatch table.

13 years agomapi: Fix hidden entries.
Chia-I Wu [Fri, 10 Dec 2010 16:26:32 +0000 (00:26 +0800)]
mapi: Fix hidden entries.

Hidden entries are just like normal entries except that they are not
exported.  Since it is not always possible to hide them, and two hidden
aliases can share the same entry, the name of hidden aliases are mangled
to '_dispatch_stub_<slot>'.

13 years agomapi: Add "handcode" attribute to the script.
Chia-I Wu [Tue, 7 Dec 2010 05:33:11 +0000 (13:33 +0800)]
mapi: Add "handcode" attribute to the script.

Entries with handcode attribute will be handled normally, except no
entry point will be generated for them.

13 years agomapi: Minor ABIPrinter refactoring.
Chia-I Wu [Fri, 10 Dec 2010 15:57:36 +0000 (23:57 +0800)]
mapi: Minor ABIPrinter refactoring.

Split out function name generation from _c_decl to _c_function, and use
it everywhere.  Add an optional 'export' argument to _cdecl.  It is
prepended to the returned string.

13 years agomapi: Store alias entry instead of alias name.
Chia-I Wu [Tue, 14 Dec 2010 19:33:30 +0000 (03:33 +0800)]
mapi: Store alias entry instead of alias name.

An entry can hold more info than plain name.

13 years agor600g: hack around property unknown issues.
Dave Airlie [Fri, 24 Dec 2010 07:33:41 +0000 (17:33 +1000)]
r600g: hack around property unknown issues.

should fix https://bugs.freedesktop.org/show_bug.cgi?id=32619

Need to add proper support for properties later.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor300g: turn back on rv530 hiz.
Dave Airlie [Fri, 24 Dec 2010 05:44:36 +0000 (15:44 +1000)]
r300g: turn back on rv530 hiz.

still needs RADEON_HYPERZ=y env var.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor300g: hyperz fixing typo.
Dave Airlie [Fri, 24 Dec 2010 05:41:30 +0000 (15:41 +1000)]
r300g: hyperz fixing typo.

Really no idea why I didn't see this before, but these values were opposite
the register spec.

this seems to fix rv530 HiZ on my laptop, will reenable in next commit.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agomesa: Assert format is not MESA_FORMAT_COUNT in _mesa_format_to_type_and_comps.
Vinson Lee [Fri, 24 Dec 2010 02:16:59 +0000 (18:16 -0800)]
mesa: Assert format is not MESA_FORMAT_COUNT in _mesa_format_to_type_and_comps.

The case of format being MESA_FORMAT_COUNT should never occur.

13 years agoi965: use align1 access mode for instructions with execSize=1 in VS
Xiang, Haihao [Fri, 24 Dec 2010 01:34:50 +0000 (09:34 +0800)]
i965: use align1 access mode for instructions with execSize=1 in VS

All operands must be 16-bytes aligned in aligh16 mode. This fixes l_xxx.c
in oglconform.

13 years agoi965: fix register region description
Xiang, Haihao [Fri, 24 Dec 2010 01:24:08 +0000 (09:24 +0800)]
i965: fix register region description

This fixes
 brw_eu_emit.c:179: validate_reg: Assertion `width == 1' failed.

13 years agor600g: Rearrange print order of outputs of R600_ERR.
Vinson Lee [Fri, 24 Dec 2010 01:25:32 +0000 (17:25 -0800)]
r600g: Rearrange print order of outputs of R600_ERR.