Eric Anholt [Mon, 3 Jan 2011 02:12:29 +0000 (18:12 -0800)]
mesa: Also report the number of renderbuffer alpha bits for GL_LUMINANCE_ALPHA.
Noticed by code inspection.
Eric Anholt [Mon, 3 Jan 2011 02:11:34 +0000 (18:11 -0800)]
mesa: Also report renderbuffer red/green size for GL_RED and GL_RG.
Noticed by code inspection.
Eric Anholt [Mon, 3 Jan 2011 01:58:07 +0000 (17:58 -0800)]
mesa: Use the common logic for "is this baseformat a color format?"
When figuring out whether a renderbuffer should be used to set the
visual bits of an FBO, we were missing important baseformats like
GL_RED, GL_RG, and GL_LUMINANCE.
Eric Anholt [Mon, 3 Jan 2011 02:01:39 +0000 (18:01 -0800)]
mesa: Allow color renderbuffers besides just RGB and RGBA.
We did so already for textures to do ARB_fbo's
GL_ALPHA/GL_LUMINANCE/etc. support and for ARB_texture_rg's GL_RED and
GL_RG, but this path was missed.
Eric Anholt [Mon, 3 Jan 2011 01:57:47 +0000 (17:57 -0800)]
mesa: Update comment about the list of BaseFormats for gl_formats.
Eric Anholt [Mon, 3 Jan 2011 01:04:57 +0000 (17:04 -0800)]
intel: Handle forced swrast clears before other clear bits.
Fixes a potential segfault on a non-native depthbuffer, and possible
accidental swrast fallback on extra color buffers.
Brian Paul [Mon, 3 Jan 2011 20:57:13 +0000 (13:57 -0700)]
st/mesa: fix renderbuffer pointer check in st_Clear()
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=30694
NOTE: This is a candidate for the 7.9 and 7.10 branches.
Brian Paul [Mon, 3 Jan 2011 20:52:12 +0000 (13:52 -0700)]
mesa: s/GLuint/gl_buffer_index/
Brian Paul [Mon, 3 Jan 2011 20:47:55 +0000 (13:47 -0700)]
st/mesa: 80-column wrapping
Brian Paul [Mon, 3 Jan 2011 20:42:05 +0000 (13:42 -0700)]
st/mesa: 80-column wrapping
Chia-I Wu [Mon, 3 Jan 2011 17:05:22 +0000 (01:05 +0800)]
autoconf: Fix --with-driver=xlib --enable-openvg.
st/egl should be enabled with --enable-openvg even the driver is xlib or
osmesa. Also, GLX_DIRECT_RENDERING should not be defined because libdrm
is not checked.
Chia-I Wu [Mon, 3 Jan 2011 16:53:19 +0000 (00:53 +0800)]
docs: Add an example for EGL_DRIVERS_PATH.
EGL_DRIVERS_PATH can be set to test EGL without installation.
Dave Airlie [Sun, 2 Jan 2011 20:02:43 +0000 (06:02 +1000)]
radeon: fix build on non-KMS systems.
Reported on irc by adamk.
Kenneth Graunke [Sat, 1 Jan 2011 20:29:24 +0000 (12:29 -0800)]
glsl: Really remove unused "instructions" parameter.
I forgot about this file, and it didn't show up until I tried to do
"make builtins" from a clean build.
Kenneth Graunke [Sat, 1 Jan 2011 20:01:09 +0000 (12:01 -0800)]
glsl: Remove unused "instructions" parameter.
I think was used long ago, when we actually read the builtins into the
shader's instruction stream directly, rather than creating a separate
shader and linking the two. It doesn't seem to serve any purpose now.
Brian Paul [Fri, 31 Dec 2010 23:37:41 +0000 (16:37 -0700)]
mapi: add missing newline in error message
Brian Paul [Fri, 31 Dec 2010 16:14:19 +0000 (09:14 -0700)]
egl: add missing case in _eglError()
Henri Verbeet [Wed, 22 Dec 2010 07:28:39 +0000 (08:28 +0100)]
st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().
Vinson Lee [Thu, 30 Dec 2010 09:54:35 +0000 (01:54 -0800)]
util: Add forward declarations in u_index_modify.h.
Vinson Lee [Thu, 30 Dec 2010 09:51:27 +0000 (01:51 -0800)]
tgsi: Clean up header file inclusion in tgsi_text.h.
Vinson Lee [Thu, 30 Dec 2010 09:49:26 +0000 (01:49 -0800)]
graw: Include p_shader_tokens.h for tgsi_token struct.
Vinson Lee [Thu, 30 Dec 2010 09:40:53 +0000 (01:40 -0800)]
tgsi: Clean up header file inclusion in tgsi_sanity.h.
Vinson Lee [Thu, 30 Dec 2010 09:26:47 +0000 (01:26 -0800)]
x86: Clean up header file inclusion in mmx.h.
Vinson Lee [Thu, 30 Dec 2010 09:05:33 +0000 (01:05 -0800)]
tnl: Clean up header file inclusion in t_vertex.h.
Vinson Lee [Thu, 30 Dec 2010 08:57:03 +0000 (00:57 -0800)]
vbo: Clean up header file inclusion in vbo.h.
Vinson Lee [Thu, 30 Dec 2010 08:50:56 +0000 (00:50 -0800)]
tnl: Clean up header file inclusion in t_vp_build.h.
Vinson Lee [Thu, 30 Dec 2010 08:46:13 +0000 (00:46 -0800)]
tnl: Clean up header file inclusion in tnl.h.
Marek Olšák [Wed, 29 Dec 2010 03:52:55 +0000 (04:52 +0100)]
util: add a way to store translated indices to a user memory in u_index_modify
I am about to use the upload buffer in r300g instead.
Marek Olšák [Wed, 29 Dec 2010 03:04:32 +0000 (04:04 +0100)]
r300g: support user buffers as constant buffers
Eric Anholt [Wed, 29 Dec 2010 01:19:10 +0000 (17:19 -0800)]
i965: Do lowering of array indexing of a vector in the FS.
Fixes a regression in ember since switching to the native FS backend,
and the new piglit tests glsl-fs-vec4-indexing-{2,3} for catching this.
Eric Anholt [Tue, 28 Dec 2010 21:55:14 +0000 (13:55 -0800)]
i965: Fix regression in FS comparisons on original gen4 due to gen6 changes.
Fixes 26 piglit cases on my GM965.
Eric Anholt [Tue, 28 Dec 2010 05:08:59 +0000 (21:08 -0800)]
i965: Factor out the ir comparision to BRW_CONDITIONAL_* code.
Vinson Lee [Tue, 28 Dec 2010 07:20:35 +0000 (23:20 -0800)]
glcpp: Add negative tests for redefintions with valueless macros.
Dave Airlie [Tue, 28 Dec 2010 06:52:19 +0000 (16:52 +1000)]
tgsi_dump: fix assert due to missing property name.
Marek Olšák [Tue, 28 Dec 2010 03:52:36 +0000 (04:52 +0100)]
r300g: rename aos to vertex arrays
Marek Olšák [Mon, 27 Dec 2010 15:15:24 +0000 (16:15 +0100)]
r300g: mark vertex arrays as dirty after a buffer_offset change
We shouldn't hit this bug in theory.
NOTE: This is a candidate for the 7.10 branch.
Zhenyu Wang [Tue, 28 Dec 2010 03:03:45 +0000 (11:03 +0800)]
i965: Fix occlusion query on sandybridge
Clear target query buffer fixed occlusion query on sandybridge.
https://bugs.freedesktop.org/show_bug.cgi?id=32167
Zhenyu Wang [Tue, 28 Dec 2010 01:21:20 +0000 (09:21 +0800)]
Revert "i965: upload multisample state for fragment program change"
This reverts commit
de6fd527a545f8344e074312544517d05573fb72.
Revert this workaround as it seems the real trouble is caused by
lineloop, which doesn't require GS convert on sandybridge actually.
Kenneth Graunke [Mon, 27 Dec 2010 23:44:52 +0000 (15:44 -0800)]
i965: Internally enable GL_NV_blend_square on ES2.
Hopefully should fix bug #32520.
Xiang, Haihao [Mon, 27 Dec 2010 08:39:08 +0000 (16:39 +0800)]
i965: don't spawn GS thread for LINELOOP on Sandybridge
LINELOOP is converted to LINESTRIP at the beginning of the 3D pipeline.
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=32596
Kenneth Graunke [Mon, 27 Dec 2010 08:40:26 +0000 (00:40 -0800)]
i965: Flatten if-statements beyond depth 16 on pre-gen6.
Gen4 and Gen5 hardware can have a maximum supported nesting depth of 16.
Previously, shaders with control flow nested 17 levels deep would
cause a driver assertion or segmentation fault.
Gen6 (Sandybridge) hardware no longer has this restriction.
Fixes fd.o bug #31967.
Kenneth Graunke [Mon, 27 Dec 2010 08:22:38 +0000 (00:22 -0800)]
glsl: Support if-flattening beyond a given maximum nesting depth.
This adds a new optional max_depth parameter (defaulting to 0) to
lower_if_to_cond_assign, and makes the pass only flatten if-statements
nested deeper than that.
By default, all if-statements will be flattened, just like before.
This patch also renames do_if_to_cond_assign to lower_if_to_cond_assign,
to match the new naming conventions.
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.
Jakob Bornecrantz [Thu, 16 Dec 2010 03:05:59 +0000 (04:05 +0100)]
svga: Minor debug text fix
Jakob Bornecrantz [Thu, 16 Dec 2010 02:00:16 +0000 (03:00 +0100)]
svga: Remove debug print in winsys
Jakob Bornecrantz [Thu, 16 Dec 2010 02:42:56 +0000 (03:42 +0100)]
svga: Correct spelling in swtnl backend
Jakob Bornecrantz [Wed, 15 Dec 2010 11:14:33 +0000 (12:14 +0100)]
svga: Fix newline at EOF
Jakob Bornecrantz [Wed, 15 Dec 2010 11:13:54 +0000 (12:13 +0100)]
svga: Add Galahad and Softpipe to scons build
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
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
Jakob Bornecrantz [Sat, 25 Dec 2010 14:01:09 +0000 (14:01 +0000)]
i915g: Ignore color0 writes all cbufs tgsi property
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.
Vinson Lee [Sun, 26 Dec 2010 04:53:27 +0000 (20:53 -0800)]
swrast: Clean up header file inclusion in ss_vb.h.
Vinson Lee [Sun, 26 Dec 2010 04:48:29 +0000 (20:48 -0800)]
swrast: Clean up header file inclusion in ss_triangle.h.
Vinson Lee [Sun, 26 Dec 2010 04:28:17 +0000 (20:28 -0800)]
swrast: Clean up header file inclusion in s_texfilter.h.
Vinson Lee [Sun, 26 Dec 2010 04:12:06 +0000 (20:12 -0800)]
swrast: Clean up header file inclusion in s_texcombine.h.
Vinson Lee [Sun, 26 Dec 2010 04:03:33 +0000 (20:03 -0800)]
swrast: Clean up header file inclusion in s_masking.h.
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'
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>
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)
Marek Olšák [Sat, 25 Dec 2010 13:48:34 +0000 (14:48 +0100)]
r300g: simplify buffer_transfer_inline_write
Marek Olšák [Sat, 25 Dec 2010 13:46:45 +0000 (14:46 +0100)]
r300g: simplify the code for buffer uploads
Marek Olšák [Sat, 25 Dec 2010 13:39:35 +0000 (14:39 +0100)]
r300g: user index buffers are always aligned
Marek Olšák [Sat, 25 Dec 2010 13:39:07 +0000 (14:39 +0100)]
r300g: increase the size of upload buffers
Vinson Lee [Sat, 25 Dec 2010 04:43:35 +0000 (20:43 -0800)]
swrast: Clean up header file inclusion in s_logic.h.
Vinson Lee [Sat, 25 Dec 2010 04:34:53 +0000 (20:34 -0800)]
swrast: Clean up header file inclusion in s_fragprog.h.
Vinson Lee [Sat, 25 Dec 2010 04:17:18 +0000 (20:17 -0800)]
swrast: Clean up header file inclusion in s_span.h.
Vinson Lee [Sat, 25 Dec 2010 04:11:44 +0000 (20:11 -0800)]
swrast: Clean up header file inclusion in s_fog.h.
Vinson Lee [Sat, 25 Dec 2010 04:06:11 +0000 (20:06 -0800)]
swrast: Clean up header file inclusion in s_depth.h.
Vinson Lee [Sat, 25 Dec 2010 03:55:42 +0000 (19:55 -0800)]
swrast: Clean up header file inclusion in s_blend.h.
Vinson Lee [Sat, 25 Dec 2010 03:47:54 +0000 (19:47 -0800)]
swrast: Clean up header file inclusion in s_atifragshader.h.
Vinson Lee [Sat, 25 Dec 2010 03:30:38 +0000 (19:30 -0800)]
swrast: Clean up header file inclusion in s_alpha.h.
Vinson Lee [Sat, 25 Dec 2010 03:25:30 +0000 (19:25 -0800)]
swrast: Clean up header file inclusion in s_accum.h.
Vinson Lee [Sat, 25 Dec 2010 02:48:00 +0000 (18:48 -0800)]
swrast: Clean up header file inclusion in s_aatriangle.h.
Vinson Lee [Sat, 25 Dec 2010 02:35:10 +0000 (18:35 -0800)]
swrast: Clean up header file inclusion in s_aaline.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.
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.
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.
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.
Henri Verbeet [Fri, 24 Dec 2010 10:36:50 +0000 (11:36 +0100)]
r600g: r600_blit_uncompress_depth() can't fail.
Henri Verbeet [Fri, 24 Dec 2010 10:36:50 +0000 (11:36 +0100)]
r600g: Get rid of r600_blit_uncompress_depth_ptr.
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.
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.
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.
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.
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.
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>'.
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.
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.
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.
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>
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>
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>
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.
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.
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.
Vinson Lee [Fri, 24 Dec 2010 01:25:32 +0000 (17:25 -0800)]
r600g: Rearrange print order of outputs of R600_ERR.
Vinson Lee [Fri, 24 Dec 2010 00:43:15 +0000 (16:43 -0800)]
mesa: Assert _mesa_DeleteFragmentShaderATI doesn't ever free static DummyShader.
Vinson Lee [Fri, 24 Dec 2010 00:23:53 +0000 (16:23 -0800)]
st/egl: Remove unnecessary header.
Vinson Lee [Fri, 24 Dec 2010 00:19:11 +0000 (16:19 -0800)]
libgl-xlib: Remove unnecessary header.