mesa.git
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.

13 years agomesa: Assert _mesa_DeleteFragmentShaderATI doesn't ever free static DummyShader.
Vinson Lee [Fri, 24 Dec 2010 00:43:15 +0000 (16:43 -0800)]
mesa: Assert _mesa_DeleteFragmentShaderATI doesn't ever free static DummyShader.

13 years agost/egl: Remove unnecessary header.
Vinson Lee [Fri, 24 Dec 2010 00:23:53 +0000 (16:23 -0800)]
st/egl: Remove unnecessary header.

13 years agolibgl-xlib: Remove unnecessary header.
Vinson Lee [Fri, 24 Dec 2010 00:19:11 +0000 (16:19 -0800)]
libgl-xlib: Remove unnecessary header.

13 years agor300g: Remove unnecessary header.
Vinson Lee [Fri, 24 Dec 2010 00:05:28 +0000 (16:05 -0800)]
r300g: Remove unnecessary header.

13 years agotgsi_text: just parse as an integer (value is a boolean).
Dave Airlie [Thu, 23 Dec 2010 23:28:14 +0000 (09:28 +1000)]
tgsi_text: just parse as an integer (value is a boolean).

fixes warning reported by vlee on irc.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agomapi: Remove unnecessary header.
Vinson Lee [Thu, 23 Dec 2010 23:25:38 +0000 (15:25 -0800)]
mapi: Remove unnecessary header.

13 years agointel: Remove unnecessary headers.
Vinson Lee [Thu, 23 Dec 2010 23:08:53 +0000 (15:08 -0800)]
intel: Remove unnecessary headers.

13 years agor300g: add support for color0 writes to all bound color buffers.
Dave Airlie [Sat, 18 Dec 2010 00:40:33 +0000 (10:40 +1000)]
r300g: add support for color0 writes to all bound color buffers.

Thanks to Marek Olšák for making my initial attempt actually work.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agomesa/st: set the color write cbuf property for fragColor writes
Dave Airlie [Sat, 18 Dec 2010 00:36:55 +0000 (10:36 +1000)]
mesa/st: set the color write cbuf property for fragColor writes

13 years agosoftpipe: add support for color writes all color bufs property
Dave Airlie [Sat, 18 Dec 2010 00:36:31 +0000 (10:36 +1000)]
softpipe: add support for color writes all color bufs property

13 years agogallium: add fragment shader property for color writes to all buffers. (v2)
Dave Airlie [Sat, 18 Dec 2010 00:34:35 +0000 (10:34 +1000)]
gallium: add fragment shader property for color writes to all buffers. (v2)

For GL fragColor semantics we need to tell the pipe drivers that the fragment
shader color result is to be replicated to all bound color buffers, this
adds the basic TGSI + documentation.

v2: fix missing comma pointed out by Tilman on mesa-dev.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agoi965: Remove unnecessary headers.
Vinson Lee [Thu, 23 Dec 2010 19:54:29 +0000 (11:54 -0800)]
i965: Remove unnecessary headers.

13 years agomesa: Fix #ifdef typo in _mesa_format_to_type_and_comps.
Vinson Lee [Thu, 23 Dec 2010 19:32:16 +0000 (11:32 -0800)]
mesa: Fix #ifdef typo in _mesa_format_to_type_and_comps.

According to the comment, the warning should be for debug builds.

13 years agor300g: use a simpler fallback for misaligned ushort indices with triangles
Marek Olšák [Wed, 22 Dec 2010 23:22:38 +0000 (00:22 +0100)]
r300g: use a simpler fallback for misaligned ushort indices with triangles

If 'start' is odd, render the first triangle with indices embedded
in the command stream, which adds 3 to 'start' and makes it even.
Then continue with the fast path.

13 years agor300g: add support for B2G3R3 texturing
Marek Olšák [Wed, 22 Dec 2010 12:28:55 +0000 (13:28 +0100)]
r300g: add support for B2G3R3 texturing

13 years agomesa: fix texel store functions for some float formats
Marek Olšák [Mon, 29 Nov 2010 04:24:18 +0000 (05:24 +0100)]
mesa: fix texel store functions for some float formats

These are copy-paste errors obviously.

13 years agost/mesa: do not require all texture formats to be renderable
Marek Olšák [Wed, 22 Dec 2010 00:58:52 +0000 (01:58 +0100)]
st/mesa: do not require all texture formats to be renderable

This is a bandaid on the problem that if some formats were not renderable
(like luminance_alpha), st/mesa fell back to some RGBA format, so basically
some non-renderable formats were actually not used at all. This is only
a problem with hardware drivers, softpipe can render to anything.

Instead, require only RGB8/RGBA8 to be renderable.

13 years agost/mesa: use the formats RGB233, ARGB2101010, AL44, AL1616, A16, L16, I16
Marek Olšák [Wed, 22 Dec 2010 00:44:30 +0000 (01:44 +0100)]
st/mesa: use the formats RGB233, ARGB2101010, AL44, AL1616, A16, L16, I16

13 years agogallium: add new formats L16A16_UNORM, A16_UNORM, I16_UNORM, B2G3R3_UNORM
Marek Olšák [Tue, 21 Dec 2010 04:43:52 +0000 (05:43 +0100)]
gallium: add new formats L16A16_UNORM, A16_UNORM, I16_UNORM, B2G3R3_UNORM

13 years agomesa: implement new texture format I16
Marek Olšák [Wed, 22 Dec 2010 00:12:20 +0000 (01:12 +0100)]
mesa: implement new texture format I16

13 years agomesa: implement new texture format L16
Marek Olšák [Wed, 22 Dec 2010 00:11:13 +0000 (01:11 +0100)]
mesa: implement new texture format L16

13 years agomesa: implement new texture format A16
Marek Olšák [Tue, 21 Dec 2010 23:32:33 +0000 (00:32 +0100)]
mesa: implement new texture format A16

13 years agomesa: implement new texture format AL44
Marek Olšák [Tue, 21 Dec 2010 22:46:32 +0000 (23:46 +0100)]
mesa: implement new texture format AL44

Radeon GPUs can do this. R600 can even do render-to-texture.
Packing and extracting aren't implemented, but we shouldn't hit them (I think).
Tested with swrast, softpipe, and r300g.

13 years agomesa: implement new texture format ARGB2101010
Marek Olšák [Tue, 21 Dec 2010 17:54:50 +0000 (18:54 +0100)]
mesa: implement new texture format ARGB2101010

Radeon GPUs do support GL_RGB10_A2.

13 years agost/mesa: if Z32 is unsupported, prefer Z24 to Z16
Marek Olšák [Tue, 21 Dec 2010 04:50:58 +0000 (05:50 +0100)]
st/mesa: if Z32 is unsupported, prefer Z24 to Z16

13 years agost/mesa: use RGBA16 for RGB12 and RGB16
Marek Olšák [Tue, 21 Dec 2010 04:45:46 +0000 (05:45 +0100)]
st/mesa: use RGBA16 for RGB12 and RGB16

To provide enough precision if a user wants it.

13 years agost/mesa: use DXT SRGB formats for COMPRESSED_SRGB
Marek Olšák [Tue, 21 Dec 2010 05:41:59 +0000 (06:41 +0100)]
st/mesa: use DXT SRGB formats for COMPRESSED_SRGB

And also check if the formats are supported to return something meaningful
if compression cannot be used.

13 years agoi965: Keep around a copy of the VS constant surface dumping code.
Eric Anholt [Thu, 23 Dec 2010 06:48:24 +0000 (22:48 -0800)]
i965: Keep around a copy of the VS constant surface dumping code.

Just like everywhere else, I never trust my constant uploads to
correctly put constants in the right places, even though that's so
rarely where the issue is.

13 years agoi965: Correct the dp_read message descriptor setup on g4x.
Eric Anholt [Thu, 23 Dec 2010 06:46:12 +0000 (22:46 -0800)]
i965: Correct the dp_read message descriptor setup on g4x.

It's mostly like gen4 message descriptor setup, except that the sizes
of type/control changed to be like gen5.  Fixes 21 piglit cases on
gm45, including the regressions in bug #32311 from increased VS
constant buffer usage.

13 years agoi965: upload multisample state for fragment program change
Zhenyu Wang [Thu, 23 Dec 2010 08:30:20 +0000 (16:30 +0800)]
i965: upload multisample state for fragment program change

This makes conformance tests stable on sandybridge D0 to track
multisample state before SF/WM state.

13 years agoi965: Use MI_FLUSH_DW for blt ring flush on sandybridge
Zhenyu Wang [Thu, 23 Dec 2010 07:06:33 +0000 (15:06 +0800)]
i965: Use MI_FLUSH_DW for blt ring flush on sandybridge

Old MI_FLUSH command is deprecated on sandybridge blt.

13 years agost/mesa: Remove unnecessary header.
Vinson Lee [Thu, 23 Dec 2010 09:03:32 +0000 (01:03 -0800)]
st/mesa: Remove unnecessary header.

13 years agogallivm: Disable MMX-disabling code on llvm-2.9.
Vinson Lee [Thu, 23 Dec 2010 03:44:00 +0000 (19:44 -0800)]
gallivm: Disable MMX-disabling code on llvm-2.9.

The disable-mmx option was removed in llvm-2.9svn by revisions 122188
and 122189.

Fixes FDO bug 32564.

13 years agogallivm: Fix 'cast from pointer to integer of different size' warning.
Vinson Lee [Thu, 23 Dec 2010 00:48:19 +0000 (16:48 -0800)]
gallivm: Fix 'cast from pointer to integer of different size' warning.

Fixes this GCC warning.
lp_bld_const.h: In function 'lp_build_const_int_pointer':
lp_bld_const.h:137: warning: cast from pointer to integer of different size

13 years agoi915g: Remove unnecessary header.
Vinson Lee [Wed, 22 Dec 2010 08:57:52 +0000 (00:57 -0800)]
i915g: Remove unnecessary header.

13 years agollvmpipe: Remove unnecessary headers.
Vinson Lee [Wed, 22 Dec 2010 08:55:41 +0000 (00:55 -0800)]
llvmpipe: Remove unnecessary headers.

13 years agor300g: Remove unnecessary headers.
Vinson Lee [Wed, 22 Dec 2010 08:52:05 +0000 (00:52 -0800)]
r300g: Remove unnecessary headers.

13 years agosvga: Remove unnecessary header.
Vinson Lee [Wed, 22 Dec 2010 08:42:23 +0000 (00:42 -0800)]
svga: Remove unnecessary header.

13 years agost/vega: Remove unnecessary headers.
Vinson Lee [Wed, 22 Dec 2010 08:38:42 +0000 (00:38 -0800)]
st/vega: Remove unnecessary headers.

13 years agor600g: Remove the unused "pframebuffer" field from r600_pipe_context.
Henri Verbeet [Wed, 22 Dec 2010 08:18:05 +0000 (09:18 +0100)]
r600g: Remove the unused "pframebuffer" field from r600_pipe_context.

13 years agor600g: r600_new() and r600_delete() are unused.
Henri Verbeet [Wed, 22 Dec 2010 08:18:05 +0000 (09:18 +0100)]
r600g: r600_new() and r600_delete() are unused.

13 years agoi965: explicit tell header present for fb write on sandybridge
Zhenyu Wang [Wed, 22 Dec 2010 15:52:12 +0000 (10:52 -0500)]
i965: explicit tell header present for fb write on sandybridge

Determine header present for fb write by msg length is not right
for SIMD16 dispatch, and if there're more output attributes, header
present is not easy to tell from msg length. This explicitly adds
new param for fb write to say header present or not.

Fixes many cases' hang and failure in GL conformance test.

13 years agost/egl: Assorted fixes for dri2_display_get_configs.
Chia-I Wu [Wed, 22 Dec 2010 07:13:52 +0000 (15:13 +0800)]
st/egl: Assorted fixes for dri2_display_get_configs.

Set window_bit only when the visual id is greater than zero.  Correct
visual types.  Skip slow configs as they are not relevant.  Finally, do
not return duplicated configs.

13 years agor600g: remove useless switch statements
Alex Deucher [Wed, 22 Dec 2010 06:30:41 +0000 (01:30 -0500)]
r600g: remove useless switch statements

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
13 years agost/egl: Fix eglCopyBuffers.
Chia-I Wu [Wed, 22 Dec 2010 06:21:21 +0000 (14:21 +0800)]
st/egl: Fix eglCopyBuffers.

Flush before presenting.

13 years agost/egl: Plug pbuffer leaks.
Chia-I Wu [Wed, 22 Dec 2010 05:59:58 +0000 (13:59 +0800)]
st/egl: Plug pbuffer leaks.

Unreference validated resources or remove unnecessary validations.

13 years agost/egl: Allow single-buffered pixmaps.
Chia-I Wu [Wed, 22 Dec 2010 05:47:50 +0000 (13:47 +0800)]
st/egl: Allow single-buffered pixmaps.

All single-buffered configs were ignored before to make sure
EGL_RENDER_BUFFER is settable for window surfaces.  It is better to
allow single-buffered configs and set EGL_WINDOW_BIT only for
double-buffered ones.  This way there can be single-buffered pixmaps.

13 years agor600g: drop unused code in evergreen.
Dave Airlie [Wed, 22 Dec 2010 05:58:29 +0000 (15:58 +1000)]
r600g: drop unused code in evergreen.

this code was pretty much duplicated, thanks to Henri Verbeet on irc for
pointing it out.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agost/egl: Remove native_config::samples.
Chia-I Wu [Wed, 22 Dec 2010 04:27:35 +0000 (12:27 +0800)]
st/egl: Remove native_config::samples.

Multisample buffers are never requested.

13 years agost/egl: Remove native_config::slow_config.
Chia-I Wu [Wed, 22 Dec 2010 04:22:42 +0000 (12:22 +0800)]
st/egl: Remove native_config::slow_config.

In direct rendering scenario, it is not needed until an EGLDisplay can
support both HW and SW pipe screens.

13 years agost/egl: Remove unnecessary egl_g3d_find_pixmap_config.
Chia-I Wu [Wed, 22 Dec 2010 04:19:12 +0000 (12:19 +0800)]
st/egl: Remove unnecessary egl_g3d_find_pixmap_config.

It was used to find a compatible config for a given pixmap.  Now that a
config is optional for pixmap surface creation, the function is not
needed.

13 years agost/egl: Make config optional for create_pixmap_surface.
Chia-I Wu [Wed, 22 Dec 2010 04:14:44 +0000 (12:14 +0800)]
st/egl: Make config optional for create_pixmap_surface.

eglCopyBuffers or EGL_KHR_image_pixmap require creating a pixmap surface
without a config.  Make it just work without relying on
is_pixmap_supported.

13 years agor600g: fix evergreen segfaults.
Dave Airlie [Wed, 22 Dec 2010 04:54:17 +0000 (14:54 +1000)]
r600g: fix evergreen segfaults.

evergreen was crashing running even gears here.

This is a 7.10 candidate if its broken the same.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor300g: fix precision issues with B10G10R10A2
Marek Olšák [Wed, 22 Dec 2010 01:22:09 +0000 (02:22 +0100)]
r300g: fix precision issues with B10G10R10A2

13 years agor300g: support B10G10R10A2 render targets only with DRM 2.8.0 or later versions
Marek Olšák [Tue, 21 Dec 2010 18:26:27 +0000 (19:26 +0100)]
r300g: support B10G10R10A2 render targets only with DRM 2.8.0 or later versions

13 years agoi965: Avoid using float type for raw moves, to work around SNB issue.
Eric Anholt [Tue, 21 Dec 2010 21:04:07 +0000 (13:04 -0800)]
i965: Avoid using float type for raw moves, to work around SNB issue.

The SNB alt-mode math does the denorm and inf reduction even for a
"raw MOV" like we do for g0 message header setup, where we are moving
values that aren't actually floats.  Just use UD type, where raw MOVs
really are raw MOVs.

Fixes glxgears since c52adfc2e1d130effea940e75690897eb5d3ceaa, but no
piglit tests had regressed(!)

13 years agor600g: avoid segfault
Jerome Glisse [Tue, 21 Dec 2010 15:49:53 +0000 (10:49 -0500)]
r600g: avoid segfault

Candidates 7.10

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
13 years agointel: Check for unsupported texture when finishing using as a render target
Chris Wilson [Tue, 21 Dec 2010 11:55:11 +0000 (11:55 +0000)]
intel: Check for unsupported texture when finishing using as a render target

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32541
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agost/mesa: Clean up header file inclusion in st_format.h.
Vinson Lee [Tue, 21 Dec 2010 09:25:04 +0000 (01:25 -0800)]
st/mesa: Clean up header file inclusion in st_format.h.