profile/ivi/mesa.git
15 years agointel: fallback for intelEmitCopyBlit.
Xiang, Haihao [Fri, 24 Oct 2008 07:55:32 +0000 (15:55 +0800)]
intel: fallback for intelEmitCopyBlit.

Use _mesa_copy_rect instead of BLT operation if dri_bufmgr_check_aperture_space
still fails after flushing batchbuffer. Partial fix for #17964.

15 years agomesa: version 43 of glext.h
Brian Paul [Thu, 23 Oct 2008 17:23:36 +0000 (11:23 -0600)]
mesa: version 43 of glext.h

15 years agomesa: version 21 of glxext.h
Brian Paul [Thu, 23 Oct 2008 17:21:32 +0000 (11:21 -0600)]
mesa: version 21 of glxext.h

15 years agomesa: remove calls to _mesa_adjust_image_for_convolution(), use texImage fields
Brian Paul [Thu, 23 Oct 2008 16:49:51 +0000 (10:49 -0600)]
mesa: remove calls to _mesa_adjust_image_for_convolution(), use texImage fields

The texImage->Width/Height fields will have the post-convolution width/height.

15 years agomesa: move convolution image adjustment code for glCopyTexSubImage1/2/3D()
Brian Paul [Wed, 22 Oct 2008 13:53:26 +0000 (07:53 -0600)]
mesa: move convolution image adjustment code for glCopyTexSubImage1/2/3D()

Do it after initial error checking, after we know the texture's internal format.

15 years agomesa: some re-org of glCopyTexSubImage1/2/3D() error checking
Brian Paul [Wed, 22 Oct 2008 13:48:37 +0000 (07:48 -0600)]
mesa: some re-org of glCopyTexSubImage1/2/3D() error checking

15 years agomesa: in textore.c, only adjust image for convolution if image is a color format
Brian Paul [Wed, 22 Oct 2008 13:36:33 +0000 (07:36 -0600)]
mesa: in textore.c, only adjust image for convolution if image is a color format

Makes things consistant with the code in teximage.c.
We only want to apply convolution to color formats (not depth/index formats)

15 years agoglx: updated comment
Kristof Ralovich [Tue, 21 Oct 2008 14:20:24 +0000 (08:20 -0600)]
glx: updated comment

15 years agoi915: fix carsh in i830_emit_state. (bug #17766)
Xiang, Haihao [Tue, 21 Oct 2008 02:30:39 +0000 (10:30 +0800)]
i915: fix carsh in i830_emit_state. (bug #17766)

15 years agoglxswapcontrol: added -fullscreen option
Brian Paul [Thu, 16 Oct 2008 20:21:17 +0000 (14:21 -0600)]
glxswapcontrol: added -fullscreen option

15 years agoglxgears: for fullscreen, disable window borders the right way
Brian Paul [Thu, 16 Oct 2008 20:16:41 +0000 (14:16 -0600)]
glxgears: for fullscreen, disable window borders the right way

15 years agofix span issue with really old ddx and non-tcl r100 chips
Roland Scheidegger [Thu, 16 Oct 2008 14:23:47 +0000 (16:23 +0200)]
fix span issue with really old ddx and non-tcl r100 chips

15 years agomesa: fix error codes in _mesa_GetObjectParameterivARB(), bug 17861
Brian Paul [Thu, 16 Oct 2008 14:23:28 +0000 (08:23 -0600)]
mesa: fix error codes in _mesa_GetObjectParameterivARB(), bug 17861

15 years agoUpdate DRI2 implementation according to new specification.
Kristian Høgsberg [Sun, 12 Oct 2008 00:41:14 +0000 (20:41 -0400)]
Update DRI2 implementation according to new specification.

15 years agoRevert pointless reindents to avoid merge conflicts.
Kristian Høgsberg [Wed, 15 Oct 2008 03:07:42 +0000 (23:07 -0400)]
Revert pointless reindents to avoid merge conflicts.

Why are we reindenting code that's work in progress...

15 years agoglx: indent -br -i3 -npcs --no-tabs glxclient.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:14:33 +0000 (15:14 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxclient.h

15 years agoglx: indent -br -i3 -npcs --no-tabs glcontextmodes.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:13:21 +0000 (15:13 +0200)]
glx: indent -br -i3 -npcs --no-tabs glcontextmodes.h

15 years agoglx: indent -br -i3 -npcs --no-tabs glxextensions.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:10:59 +0000 (15:10 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxextensions.c

15 years agoglx: indent -br -i3 -npcs --no-tabs glxextensions.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:07:23 +0000 (15:07 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxextensions.h

15 years agoglx: indent -br -i3 -npcs --no-tabs xfont.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:04:31 +0000 (15:04 +0200)]
glx: indent -br -i3 -npcs --no-tabs xfont.c

15 years agoglx: indent -br -i3 -npcs --no-tabs xf86dristr.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:03:54 +0000 (15:03 +0200)]
glx: indent -br -i3 -npcs --no-tabs xf86dristr.h

15 years agoglx: indent -br -i3 -npcs --no-tabs XF86dri.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:03:13 +0000 (15:03 +0200)]
glx: indent -br -i3 -npcs --no-tabs XF86dri.c

15 years agoglx: indent -br -i3 -npcs --no-tabs xf86dri.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:02:55 +0000 (15:02 +0200)]
glx: indent -br -i3 -npcs --no-tabs xf86dri.h

15 years agoglx: kill old K&R syntax in XF86dri.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:58:33 +0000 (14:58 +0200)]
glx: kill old K&R syntax in XF86dri.c

15 years agoglx: indent -br -i3 -npcs --no-tabs vertarr.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:41:33 +0000 (14:41 +0200)]
glx: indent -br -i3 -npcs --no-tabs vertarr.c

15 years agoglx: indent -br -i3 -npcs --no-tabs singlepix.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:37:06 +0000 (14:37 +0200)]
glx: indent -br -i3 -npcs --no-tabs singlepix.c

15 years agoglx: indent -br -i3 -npcs --no-tabs single2.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:35:18 +0000 (14:35 +0200)]
glx: indent -br -i3 -npcs --no-tabs single2.c

15 years agoglx: indent -br -i3 -npcs --no-tabs renderpix.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:34:43 +0000 (14:34 +0200)]
glx: indent -br -i3 -npcs --no-tabs renderpix.c

15 years agoglx: indent -br -i3 -npcs --no-tabs render2.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:34:18 +0000 (14:34 +0200)]
glx: indent -br -i3 -npcs --no-tabs render2.c

15 years agoglx: indent -br -i3 -npcs --no-tabs pixelstore.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:33:28 +0000 (14:33 +0200)]
glx: indent -br -i3 -npcs --no-tabs pixelstore.c

15 years agoglx: indent -br -i3 -npcs --no-tabs pixel.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:32:52 +0000 (14:32 +0200)]
glx: indent -br -i3 -npcs --no-tabs pixel.c

15 years agoglx: indent -br -i3 -npcs --no-tabs packsingle.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:31:49 +0000 (14:31 +0200)]
glx: indent -br -i3 -npcs --no-tabs packsingle.h

15 years agoglx: indent -br -i3 -npcs --no-tabs packrender.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:29:23 +0000 (14:29 +0200)]
glx: indent -br -i3 -npcs --no-tabs packrender.h

15 years agoglx: indent -br -i3 -npcs --no-tabs indirect_window_pos.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:27:46 +0000 (14:27 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_window_pos.c

15 years agoglx: indent -br -i3 -npcs --no-tabs indirect_vertex_program.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:27:07 +0000 (14:27 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_vertex_program.c

15 years agoglx: indent -br -i3 -npcs --no-tabs indirect_vertex_array_priv.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:25:55 +0000 (14:25 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array_priv.h

15 years agoglx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:21:17 +0000 (14:21 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.h

15 years agoglx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:20:15 +0000 (14:20 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.c

15 years agoglx: indent -br -i3 -npcs --no-tabs indirect_transpose_matrix.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:19:24 +0000 (14:19 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_transpose_matrix.c

15 years agoglx: indent -br -i3 -npcs --no-tabs indirect_texture_compression.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:18:18 +0000 (14:18 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_texture_compression.c

15 years agoglx: indent -br -i3 -npcs --no-tabs glx_query.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:12:40 +0000 (14:12 +0200)]
glx: indent -br -i3 -npcs --no-tabs glx_query.c

15 years agoglx: indent -br -i3 -npcs --no-tabs glx_pbuffer.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:12:02 +0000 (14:12 +0200)]
glx: indent -br -i3 -npcs --no-tabs glx_pbuffer.c

15 years agoglx: indent -br -i3 -npcs --no-tabs glxhash.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:10:16 +0000 (14:10 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxhash.c

15 years agoglx: indent -br -i3 -npcs --no-tabs glxhash.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:10:06 +0000 (14:10 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxhash.h

15 years agoglx: indent -br -i3 -npcs --no-tabs glxext.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:08:45 +0000 (14:08 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxext.c

15 years agoglx: indent -br -i3 -npcs --no-tabs glxcurrent.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:07:07 +0000 (14:07 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxcurrent.c

15 years agoglx: indent -br -i3 -npcs --no-tabs glxcmds.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:06:30 +0000 (14:06 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxcmds.c

15 years agoglx: indent -br -i3 -npcs --no-tabs glcontextmodes.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:49:49 +0000 (13:49 +0200)]
glx: indent -br -i3 -npcs --no-tabs glcontextmodes.c

15 years agoglx: indent -br -i3 -npcs --no-tabs eval.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:48:07 +0000 (13:48 +0200)]
glx: indent -br -i3 -npcs --no-tabs eval.c

15 years agoglx: indent -br -i3 -npcs --no-tabs drisw_glx.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:47:37 +0000 (13:47 +0200)]
glx: indent -br -i3 -npcs --no-tabs drisw_glx.c

15 years agoglx: indent -br -i3 -npcs --no-tabs dri_glx.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:40:09 +0000 (13:40 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri_glx.c

15 years agoglx: indent -br -i3 -npcs --no-tabs dri_common.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:26:09 +0000 (13:26 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri_common.h

15 years agoglx: indent -br -i3 -npcs --no-tabs dri_common.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:25:28 +0000 (13:25 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri_common.c

15 years agoglx: indent -br -i3 -npcs --no-tabs dri2.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:18:41 +0000 (13:18 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri2.h

15 years agoglx: indent -br -i3 -npcs --no-tabs dri2_glx.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:17:32 +0000 (13:17 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri2_glx.c

15 years agoglx: indent -br -i3 -npcs --no-tabs dri2.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:16:28 +0000 (13:16 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri2.c

15 years agoglx: indent -br -i3 -npcs --no-tabs compsize.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:12:37 +0000 (13:12 +0200)]
glx: indent -br -i3 -npcs --no-tabs compsize.c

15 years agoglx: indent -br -i3 -npcs --no-tabs clientattrib.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:11:30 +0000 (13:11 +0200)]
glx: indent -br -i3 -npcs --no-tabs clientattrib.c

15 years agoglx: add a line of Emacs helping variables
RALOVICH, Kristóf [Sat, 11 Oct 2008 12:27:07 +0000 (14:27 +0200)]
glx: add a line of Emacs helping variables

15 years agoglx: No need to zero a local variable.
RALOVICH, Kristóf [Sat, 11 Oct 2008 11:09:50 +0000 (13:09 +0200)]
glx: No need to zero a local variable.

My previous commit e2060348630b59a446bac7f734fdde40033093ab introduced this.

15 years agoglx: make INIT_MESA_SPARC more robust
RALOVICH, Kristóf [Sat, 11 Oct 2008 10:56:32 +0000 (12:56 +0200)]
glx: make INIT_MESA_SPARC more robust

Embed the macro body into do { ... } while(0) .

15 years agoi915: Texture instructions use r/t/oC/oD register as texture coordinate.
Xiang, Haihao [Mon, 13 Oct 2008 05:04:04 +0000 (13:04 +0800)]
i915: Texture instructions use r/t/oC/oD register as texture coordinate.

Fix http://bugs.freedesktop.org/show_bug.cgi?id=16287.

15 years agointel: Add acceleration for glDrawPixels(GL_STENCIL_INDEX).
Eric Anholt [Fri, 26 Sep 2008 02:11:03 +0000 (19:11 -0700)]
intel: Add acceleration for glDrawPixels(GL_STENCIL_INDEX).

This is nasty because there's no way in GL to output data to the stencil
buffer directly, so we have to do a dance to wrap the depth/stencil buffer
in an ARGB renderbuffer.

Improves performance of several oglconform testcases by better than a factor
of 2.

15 years agomesa: fix asst. issues in _mesa_texstore_argb8888()
Brian Paul [Fri, 10 Oct 2008 22:30:43 +0000 (16:30 -0600)]
mesa: fix asst. issues in _mesa_texstore_argb8888()

If we shift bytes into the texel word (or use the PACK_COLOR_8888 macro),
we don't have to worry about big vs. little endian.  See comments about
texel formats in texformat.h.
Remove an unneeded/incorrect else-if clause that produced wrong results
on big-endian systems.

15 years agomesa: include needed header
Brian Paul [Fri, 10 Oct 2008 22:30:18 +0000 (16:30 -0600)]
mesa: include needed header

15 years agomesa: remove unneeded includes
Brian Paul [Fri, 10 Oct 2008 22:29:54 +0000 (16:29 -0600)]
mesa: remove unneeded includes

15 years agomesa: fix error codes in _mesa_GetObjectParameterivARB(), bug 17861
Brian Paul [Fri, 10 Oct 2008 22:26:15 +0000 (16:26 -0600)]
mesa: fix error codes in _mesa_GetObjectParameterivARB(), bug 17861

15 years agomesa: rename macro params to emphasize that there's no particular color ordering
Brian Paul [Fri, 10 Oct 2008 22:23:31 +0000 (16:23 -0600)]
mesa: rename macro params to emphasize that there's no particular color ordering

15 years agomesa: remove unneeded includes
Brian Paul [Fri, 10 Oct 2008 22:21:52 +0000 (16:21 -0600)]
mesa: remove unneeded includes

15 years agointel: GLSL 1.20 is broken in Mesa, so disable it in the i965 driver
Ian Romanick [Fri, 10 Oct 2008 18:47:43 +0000 (11:47 -0700)]
intel: GLSL 1.20 is broken in Mesa, so disable it in the i965 driver

15 years agoi965: Add missing intel_pixel_draw.c symlink to fix build.
Eric Anholt [Fri, 10 Oct 2008 16:43:15 +0000 (09:43 -0700)]
i965: Add missing intel_pixel_draw.c symlink to fix build.

15 years agoi965: Accelerate depth textures with border color.
Eric Anholt [Thu, 9 Oct 2008 18:45:58 +0000 (11:45 -0700)]
i965: Accelerate depth textures with border color.

The fallback was introduced to fix bug #16697, but made the test it was
fixing run excessively long.

15 years agoi965: Actually hook up the accelerated DrawPixels support.
Eric Anholt [Thu, 9 Oct 2008 17:23:47 +0000 (10:23 -0700)]
i965: Actually hook up the accelerated DrawPixels support.

15 years agoi915: Accelerate depth textures with border color.
Eric Anholt [Thu, 9 Oct 2008 06:34:38 +0000 (23:34 -0700)]
i915: Accelerate depth textures with border color.

The fallback was introduced to fix bug #16697, but made the test it was
fixing run excessively long.

15 years agomesa: vertex emit debug code (disabled)
Brian Paul [Wed, 8 Oct 2008 15:33:27 +0000 (09:33 -0600)]
mesa: vertex emit debug code (disabled)

15 years agomesa: fix vertex format/attribute bug
Brian Paul [Wed, 8 Oct 2008 15:28:10 +0000 (09:28 -0600)]
mesa: fix vertex format/attribute bug

If the tnl output attributes matches the swsetup input attributes we still
need to check if the desired vertex color type (float vs. chan) has changed
so that we use the right emit functions.

Fixes a conformance failure found with logicop test at pathlevel 3.

15 years agomesa: Pass the context to query object delete cb to avoid null dereference.
Eric Anholt [Wed, 8 Oct 2008 01:47:31 +0000 (18:47 -0700)]
mesa: Pass the context to query object delete cb to avoid null dereference.

15 years agoi965: Add ARB_occlusion_query support.
Eric Anholt [Tue, 7 Oct 2008 00:34:51 +0000 (17:34 -0700)]
i965: Add ARB_occlusion_query support.

15 years agointel: Push flushing for cliprects changes down into the cliprects changes.
Eric Anholt [Fri, 3 Oct 2008 23:20:00 +0000 (16:20 -0700)]
intel: Push flushing for cliprects changes down into the cliprects changes.

This lets us short-circuit when we're leaving the same cliprects in place,
which becomes quite common with metaops clears, and may be useful for some of
our FBO paths.

15 years agoi965: Fix a potential assertion failure.
Xiang, Haihao [Wed, 8 Oct 2008 01:30:12 +0000 (09:30 +0800)]
i965: Fix a potential assertion failure.

15 years agomesa: pass 'mask', not NULL to renderbuffer->Put functions
Brian Paul [Tue, 7 Oct 2008 22:52:47 +0000 (16:52 -0600)]
mesa: pass 'mask', not NULL to renderbuffer->Put functions

Fixes bug 17800.

15 years agomesa: fix convolve/convolution mix-ups
Brian [Mon, 6 Oct 2008 23:10:22 +0000 (17:10 -0600)]
mesa: fix convolve/convolution mix-ups

15 years agomesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE
Brian Paul [Mon, 6 Oct 2008 18:29:29 +0000 (12:29 -0600)]
mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE

15 years agomesa: adjust texcoords for swrast sprite points.
Brian Paul [Mon, 6 Oct 2008 17:34:01 +0000 (11:34 -0600)]
mesa: adjust texcoords for swrast sprite points.

Fixes glean pointSprite test w/ software rendering

15 years agomesa: fix static library construction
Brian Paul [Mon, 6 Oct 2008 16:58:16 +0000 (10:58 -0600)]
mesa: fix static library construction

If the .a is made of other .a files, extract the objects from the later.

15 years agomesa: updated _mesa_delete_query() comments
Brian Paul [Mon, 6 Oct 2008 15:32:33 +0000 (09:32 -0600)]
mesa: updated _mesa_delete_query() comments

15 years agomesa: add missing GLcontext param to _mesa_delete_query().
Brian Paul [Mon, 6 Oct 2008 15:26:45 +0000 (09:26 -0600)]
mesa: add missing GLcontext param to _mesa_delete_query().

Fixes vtk crash and others.

15 years agoi915: Refine the texture indirect lookup accounting.
Eric Anholt [Sun, 5 Oct 2008 01:20:35 +0000 (18:20 -0700)]
i915: Refine the texture indirect lookup accounting.

Without this, we would reject programs which sampled multiple times from
registers defined in the same phase (block of instructions with the same
texture indirection count), as each sample would count as a new phase
beginning.  Instead, keep track of which phases registers were written in,
and only bump phase when we're reading from one generated in this phase.

On the other hand, we failed to count oC or oD texture samples as being new
phases.

Bug #17865.

15 years agointel: Don't advertise unsupported extensions on pre-965 hardware
Ian Romanick [Fri, 3 Oct 2008 19:16:04 +0000 (12:16 -0700)]
intel: Don't advertise unsupported extensions on pre-965 hardware

Move GL_ARB_texture_non_power_of_two and GL_ATI_separate_stencil
from the generic extension list to the 965-specific list.  Neither
extension is supported on i830-class hardware, and
GL_ATI_separate_stencil is not supported on i915-class hardare.
GL_ARB_texture_non_power_of_two is supported on i915-class hardare and
is already in the i915-specific list.

15 years agoUnify ARB_depth_texture and SGIX_depth_texture
Ian Romanick [Wed, 1 Oct 2008 22:51:56 +0000 (15:51 -0700)]
Unify ARB_depth_texture and SGIX_depth_texture

The ARB extension is a superset of the older SGIX extension.  Any
hardware that can support the SGIX version can also support the ARB
version.  In Mesa, any driver that supports one also supports the
other.  This unification just simplifies some bits of code.

15 years agoi965: sampler default color ends up in texture cache, not instructions.
Eric Anholt [Wed, 1 Oct 2008 23:58:38 +0000 (16:58 -0700)]
i965: sampler default color ends up in texture cache, not instructions.

See volume 4, SAMPLER_BORDER_COLOR_STATE programming notes.

15 years agoi965: Fix overwriting of depth override for SetTexOffset.
Eric Anholt [Wed, 1 Oct 2008 21:14:06 +0000 (14:14 -0700)]
i965: Fix overwriting of depth override for SetTexOffset.

Fixes black borders around windows in compiz.  Bug #17233.

15 years agointel: Clean-up the extension string madness!
Ian Romanick [Tue, 30 Sep 2008 01:50:05 +0000 (18:50 -0700)]
intel: Clean-up the extension string madness!

- Sort extensions by ARB, then EXT, then vendor by name
- Remove redundant (only one of GL_{ARB,EXT,NV}_texture_rectangle) or
  duplicate extension strings

15 years agoGLSL: Implement GL_OBJECT_TYPE_ARB query
Ian Romanick [Mon, 29 Sep 2008 19:30:05 +0000 (12:30 -0700)]
GLSL: Implement GL_OBJECT_TYPE_ARB query

The GL_OBJECT_TYPE_ARB query is handled directly in
_mesa_GetObjectParamterivARB because it is only supported in the
extension version of the shanding language API.  glGetProgramiv and
glGetShaderiv should not accept this enum.

15 years agoGLSL: Implement _mesa_get_handle
Ian Romanick [Mon, 29 Sep 2008 19:27:00 +0000 (12:27 -0700)]
GLSL: Implement _mesa_get_handle

Implementing _mesa_get_handle in using
glGetIntegerv(GL_CURRENT_PROGRAM, ...) allows glGetHandleARB to work.

15 years agoGLSL: AttachShader returns INVALID_OPERATION for repeated attach
Ian Romanick [Mon, 29 Sep 2008 19:18:06 +0000 (12:18 -0700)]
GLSL: AttachShader returns INVALID_OPERATION for repeated attach

The GL_ARB_shader_objects spec says that glAttachShaderARB is supposed
to return GL_INVALID_OPERATION if a shader is attached to a program
where it is already attached.  _mesa_attach_shader perviously returned
without error in this case.

15 years agomesa: asst updates for VMS
Jouk Jansen [Mon, 29 Sep 2008 14:35:05 +0000 (08:35 -0600)]
mesa: asst updates for VMS

15 years agomesa: drop calloc from _mesa_get_fixed_func_vertex_program
Shunichi Fuji [Fri, 26 Sep 2008 09:55:13 +0000 (18:55 +0900)]
mesa: drop calloc from _mesa_get_fixed_func_vertex_program

Signed-off-by: Shunichi Fuji <palglowr@gmail.com>
15 years agoUse 3Dnow! x86-64 routines only on processors that support 3Dnow!
Ian Romanick [Mon, 29 Sep 2008 03:31:46 +0000 (20:31 -0700)]
Use 3Dnow! x86-64 routines only on processors that support 3Dnow!

Added an x86-64 CPUID function and use it to detect 3Dnow!  If 3Dnow!
is available, use _mesa_3dnow_transform_points4_3d_no_rot,
_mesa_3dnow_transform_points4_perspective,
_mesa_3dnow_transform_points4_2d_no_rot, and _mesa_3dnow_transform_points4_2d.

This fixes long standing bug #8724.

15 years agoRemove TNL-to-VP tracking from i965
Ian Romanick [Fri, 26 Sep 2008 00:19:47 +0000 (17:19 -0700)]
Remove TNL-to-VP tracking from i965

The i965 driver previously had it's own set of code to convert
fixed-function TNL state to a vertex program.  Core Mesa has code to
do this, so there is no reason to duplicate that effort in the driver.
In fact, this duplication leads to bugs when other aspects of the Mesa
infrastructure change.