profile/ivi/mesa.git
15 years agoi965: fix 1D texture borders with GL_CLAMP_TO_BORDER
Robert Ellison [Thu, 14 May 2009 02:40:23 +0000 (20:40 -0600)]
i965: fix 1D texture borders with GL_CLAMP_TO_BORDER

With 1D textures, GL_TEXTURE_WRAP_T should be ignored (only
GL_TEXTURE_WRAP_S should be respected).  But the i965 hardware
seems to follow the value of GL_TEXTURE_WRAP_T even when sampling
1D textures.

This fix forces GL_TEXTURE_WRAP_T to be GL_REPEAT whenever 1D
textures are used; this allows the texture to be sampled
correctly, avoiding "imaginary" border elements in the T direction.

This bug was demonstrated in the Piglit tex1d-2dborder test.
With this fix, that test passes.

15 years agoi965: send all warnings through _mesa_warning()
Robert Ellison [Thu, 14 May 2009 02:38:33 +0000 (20:38 -0600)]
i965: send all warnings through _mesa_warning()

One warning message:
   drm_i915_getparam: -22

was still being sent to fprintf().  This causes all Piglit tests to fail,
even with MESA_DEBUG=0.

Using _mesa_warning() to emit the message allows the general Mesa controls
for messages like this to be applied.

15 years agor300-gallium: Clean up outdated comments.
Corbin Simpson [Thu, 14 May 2009 00:24:47 +0000 (17:24 -0700)]
r300-gallium: Clean up outdated comments.

15 years agor300-gallium: Space accounting for textures.
Corbin Simpson [Thu, 14 May 2009 00:01:03 +0000 (17:01 -0700)]
r300-gallium: Space accounting for textures.

15 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Wed, 13 May 2009 17:33:52 +0000 (11:33 -0600)]
Merge branch 'mesa_7_5_branch'

15 years agointel: added null ptr check
Brian Paul [Wed, 13 May 2009 17:31:35 +0000 (11:31 -0600)]
intel: added null ptr check

Fixes segfault in context tear-down when glClear was never called.

15 years agodocs: GL_APPLE_vertex_array_object for Gallium drivers and Intel DRI drivers
Brian Paul [Wed, 13 May 2009 17:24:11 +0000 (11:24 -0600)]
docs: GL_APPLE_vertex_array_object for Gallium drivers and Intel DRI drivers

15 years agointel: enable GL_APPLE_vertex_array_object
Brian Paul [Wed, 13 May 2009 17:19:00 +0000 (11:19 -0600)]
intel: enable GL_APPLE_vertex_array_object

No special driver changes are needed for this extension.

15 years agost/mesa: enable GL_APPLE_vertex_array_object for gallium drivers
Brian Paul [Wed, 13 May 2009 17:15:00 +0000 (11:15 -0600)]
st/mesa: enable GL_APPLE_vertex_array_object for gallium drivers

15 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Wed, 13 May 2009 16:33:21 +0000 (10:33 -0600)]
Merge branch 'mesa_7_5_branch'

Conflicts:

src/mesa/main/arrayobj.c
src/mesa/main/arrayobj.h
src/mesa/main/context.c

15 years agointel: create a private gl_array_object for intel_clear_tris(), fix bug 21638
Brian Paul [Wed, 13 May 2009 16:28:00 +0000 (10:28 -0600)]
intel: create a private gl_array_object for intel_clear_tris(), fix bug 21638

gl_array_object encapsulates a set of vertex arrays (see the
GL_APPLE_vertex_array_object extension).
Create a private gl_array_object for drawing the quad for intel_clear_tris()
so we don't have to worry about the user's vertex array state.
This fixes the no-op glClear bug #21638 and removes the need to call
_mesa_PushClientAttrib() and _mesa_PopClientAttrib().

15 years agomesa: delete array objects before buffer objects during context tear-down
Brian Paul [Wed, 13 May 2009 15:47:13 +0000 (09:47 -0600)]
mesa: delete array objects before buffer objects during context tear-down

The former may point to the later.

15 years agomesa: clean-up vertex array object VBO unbinding and delete/refcounting
Brian Paul [Wed, 13 May 2009 15:32:53 +0000 (09:32 -0600)]
mesa: clean-up vertex array object VBO unbinding and delete/refcounting

Don't really delete vertex array objects until the refcount hits zero.
At that time, unbind any pointers to VBOs.
(cherry picked from commit 32b851c80792623195069d7a41a5808cff3b2f6f)

15 years agomesa: reference counting for gl_array_object
Brian Paul [Wed, 13 May 2009 15:27:31 +0000 (09:27 -0600)]
mesa: reference counting for gl_array_object

Every kind of object that can be shared by multiple contexts should be
refcounted.
(cherry picked from commit 1030bf0ded2a88a5e27f7a4d393c11cfde3d3c5a)

15 years agoi965: enable additional code in emit_fb_write()
Brian Paul [Tue, 12 May 2009 20:08:52 +0000 (14:08 -0600)]
i965: enable additional code in emit_fb_write()

Not 100% sure this is right, but the invalid assertion is fixed...

15 years agoi965: increase BRW_EU_MAX_INSN
Brian Paul [Tue, 12 May 2009 20:07:51 +0000 (14:07 -0600)]
i965: increase BRW_EU_MAX_INSN

15 years agoi965: comment
Brian Paul [Tue, 12 May 2009 15:16:27 +0000 (09:16 -0600)]
i965: comment

15 years agor300-gallium: add missing semicolon
Joakim Sindholt [Tue, 12 May 2009 20:01:59 +0000 (22:01 +0200)]
r300-gallium: add missing semicolon

Yeah, that was stupid

15 years agor300-gallium: duplicate tokens in create_fs_state
Joakim Sindholt [Tue, 12 May 2009 19:41:48 +0000 (21:41 +0200)]
r300-gallium: duplicate tokens in create_fs_state

This was all phoenix64's idea. Credit goes to him

15 years agoprogs/trivial: update .gitignore with new binaries
Joakim Sindholt [Tue, 12 May 2009 17:38:17 +0000 (19:38 +0200)]
progs/trivial: update .gitignore with new binaries

15 years agointel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.
Eric Anholt [Sun, 10 May 2009 17:08:32 +0000 (10:08 -0700)]
intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.

15 years agointel: Map write-only buffer objects through the GTT when possible.
Eric Anholt [Sun, 10 May 2009 16:45:43 +0000 (09:45 -0700)]
intel: Map write-only buffer objects through the GTT when possible.

This looks to be a win of a few percent in cairogears with new vbo code,
thanks to not polluting caches.

15 years agoi915: Fix driver after HW glGenerateMipmap commit.
Eric Anholt [Tue, 12 May 2009 17:03:08 +0000 (10:03 -0700)]
i915: Fix driver after HW glGenerateMipmap commit.

15 years agoswrast: update/restore the opt_sample_rgb/rgba_2d() functions
Brian Paul [Tue, 12 May 2009 15:05:31 +0000 (09:05 -0600)]
swrast: update/restore the opt_sample_rgb/rgba_2d() functions

15 years agoglXChooseVisual: Only consider fbconfig if we can get the corresponding visual.
Michel Dänzer [Tue, 12 May 2009 06:01:22 +0000 (08:01 +0200)]
glXChooseVisual: Only consider fbconfig if we can get the corresponding visual.

This can fail, e.g. when XLIB_SKIP_ARGB_VISUALS=1 is set.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524794 and
http://bugs.freedesktop.org/show_bug.cgi?id=21600 .

15 years agoTest either GL_FRONT_LEFT or GL_FRONT for front-buffer rendering
Ian Romanick [Tue, 28 Apr 2009 17:08:57 +0000 (10:08 -0700)]
Test either GL_FRONT_LEFT or GL_FRONT for front-buffer rendering

For non-stereo visuals, which is all we support, we treat
GL_FRONT_LEFT as GL_FRONT.  However, they are technically different,
and they have different enum values.  Test for either one to determine
if we're in front-buffer rendering mode.

This fix was suggested by Pierre Willenbrock.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 2085cf24628be7cd297ab0f9ef5ce02bd5a006e2)

15 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Mon, 11 May 2009 22:27:50 +0000 (16:27 -0600)]
Merge branch 'mesa_7_5_branch'

Conflicts:

Makefile
src/mesa/main/version.h

15 years agost: do proper refcounting for framebuffer surfaces
Brian Paul [Mon, 11 May 2009 22:09:39 +0000 (16:09 -0600)]
st: do proper refcounting for framebuffer surfaces

15 years agotrivial: destroy window upon exit
Brian Paul [Mon, 11 May 2009 22:08:01 +0000 (16:08 -0600)]
trivial: destroy window upon exit

15 years agor300-gallium: unbreak build
Joakim Sindholt [Mon, 11 May 2009 19:44:49 +0000 (21:44 +0200)]
r300-gallium: unbreak build

15 years agor300-gallium: Setup surface in r300_surface_copy.
Corbin Simpson [Mon, 11 May 2009 17:09:59 +0000 (10:09 -0700)]
r300-gallium: Setup surface in r300_surface_copy.

I haven't tested, but this may unbreak surface copies.

15 years agor300-gallium: Cleanup some compile warnings.
Corbin Simpson [Mon, 11 May 2009 17:07:40 +0000 (10:07 -0700)]
r300-gallium: Cleanup some compile warnings.

15 years agor300-gallium: Cleanup PSC for HW TCL.
Corbin Simpson [Mon, 11 May 2009 16:57:57 +0000 (09:57 -0700)]
r300-gallium: Cleanup PSC for HW TCL.

Still dies in assert, but at least it's not my assert anymore. :3

15 years agoradeon-gallium: Forgot a typedef.
Corbin Simpson [Mon, 11 May 2009 16:55:28 +0000 (09:55 -0700)]
radeon-gallium: Forgot a typedef.

15 years agoradeon-gallium: Support new info ioctls in addition to classic getparams.
Corbin Simpson [Mon, 11 May 2009 16:04:15 +0000 (09:04 -0700)]
radeon-gallium: Support new info ioctls in addition to classic getparams.

This makes non-hybrid kernels like newttm from drm-next-radeon work
while avoiding breakage with Fedora/Ubuntu/etc.

15 years agomesa: updated comments for _mesa_generate_mipmap()
Brian Paul [Mon, 11 May 2009 16:02:18 +0000 (10:02 -0600)]
mesa: updated comments for _mesa_generate_mipmap()

15 years agoi965: handle extended swizzle terms (0,1) in get_src_reg()
Brian Paul [Mon, 11 May 2009 15:39:52 +0000 (09:39 -0600)]
i965: handle extended swizzle terms (0,1) in get_src_reg()

Fixes failed assertion in progs/glsl/twoside.c (but still wrong rendering).

15 years agomesa: better handling/printing of driver-specific opcodes, register files
Brian Paul [Mon, 11 May 2009 15:38:32 +0000 (09:38 -0600)]
mesa: better handling/printing of driver-specific opcodes, register files

Drivers such as i965 define extra instruction opcodes and register files.
Improve the program printing code to handle those opcodes/files better.

15 years agomesa: Fixed a texture memory leak
Brian Paul [Mon, 11 May 2009 15:46:56 +0000 (09:46 -0600)]
mesa: Fixed a texture memory leak

The current texture for any particular texture unit is given an additional
reference in update_texture_state(); but if the context is closed before
that texture can be released (which is quite frequent in normal use, unless
a program unbinds and deletes the texture and renders without it to force
a call to update_texture_state(), the memory is lost.

This affects general Mesa; but the i965 is particularly affected because
it allocates a considerable amount of additional memory for each allocated
texture.

(cherry picked from master, commit c230767d6956b63a2b101acb48f98823bb5dd31a)

15 years agomesa: added more gallium Makefiles to tarball list
Brian Paul [Sat, 9 May 2009 22:21:16 +0000 (16:21 -0600)]
mesa: added more gallium Makefiles to tarball list

15 years agogallium: replace lib with $(LIB_DIR)
Hanno Böck [Sat, 9 May 2009 22:17:37 +0000 (16:17 -0600)]
gallium: replace lib with $(LIB_DIR)

15 years agoradeon-gallium: Clean up some of the BO counting logic.
Corbin Simpson [Sat, 9 May 2009 07:43:05 +0000 (00:43 -0700)]
radeon-gallium: Clean up some of the BO counting logic.

15 years agor300-gallium: vs: Make imms work, cleanup some of the switches.
Corbin Simpson [Sat, 9 May 2009 07:38:07 +0000 (00:38 -0700)]
r300-gallium: vs: Make imms work, cleanup some of the switches.

15 years agor300-gallium: Start VS dumper.
Corbin Simpson [Sat, 9 May 2009 07:28:49 +0000 (00:28 -0700)]
r300-gallium: Start VS dumper.

15 years agor300-gallium: vs: Add SLT, clean up MAX.
Corbin Simpson [Sat, 9 May 2009 05:54:52 +0000 (22:54 -0700)]
r300-gallium: vs: Add SLT, clean up MAX.

This should be all the opcodes for basic TCL.

15 years agor300-gallium: vs: Add MAX.
Corbin Simpson [Sat, 9 May 2009 05:52:32 +0000 (22:52 -0700)]
r300-gallium: vs: Add MAX.

15 years agor300-gallium: vs: Add scalar setup, RSQ.
Corbin Simpson [Sat, 9 May 2009 05:46:12 +0000 (22:46 -0700)]
r300-gallium: vs: Add scalar setup, RSQ.

Icky icky icky icky. Icky icky, icky icky. Icky.

15 years agor300-gallium: vs: Add writemasks.
Corbin Simpson [Sat, 9 May 2009 05:45:56 +0000 (22:45 -0700)]
r300-gallium: vs: Add writemasks.

15 years agor300-gallium: Fix bad cast. Space accounting completely works now.
Corbin Simpson [Sat, 9 May 2009 05:05:18 +0000 (22:05 -0700)]
r300-gallium: Fix bad cast. Space accounting completely works now.

Boy, is my face red. :C

15 years agor300-gallium, radeon: BO handling fixes, some useful asserts.
Corbin Simpson [Sat, 9 May 2009 02:40:38 +0000 (19:40 -0700)]
r300-gallium, radeon: BO handling fixes, some useful asserts.

15 years agoradeon-gallium: Shut up Valgrind.
Corbin Simpson [Sat, 9 May 2009 00:09:32 +0000 (17:09 -0700)]
radeon-gallium: Shut up Valgrind.

15 years agor300-gallium, radeon: A couple cleanups.
Corbin Simpson [Fri, 8 May 2009 23:50:42 +0000 (16:50 -0700)]
r300-gallium, radeon: A couple cleanups.

Trying to track down goddamn bugs. :C

15 years agor300-gallium: Finish space accounting.
Corbin Simpson [Fri, 8 May 2009 22:28:09 +0000 (15:28 -0700)]
r300-gallium: Finish space accounting.

Still broken...

15 years agoi965: improve debug logging
Robert Ellison [Fri, 8 May 2009 20:51:11 +0000 (14:51 -0600)]
i965: improve debug logging

Looking for memory leaks that were causing crashes in my environment
in a situation where valgrind would not work, I ended up improving
the i965 debug traces so I could better see where the memory was
being allocated and where it was going, in the regions and miptrees
code, and in the state caches.  These traces were specific enough
that external scripts could determine what elements were not being
released, and where the memory leaks were.

I also ended up creating my own backtrace code in intel_regions.c,
to determine exactly where regions were being allocated and for what,
since valgrind wasn't working.  Because it was useful, I left it in,
but disabled and compiled out.  It can be activated by changing a flag
at the top of the file.

15 years agoi965: fix memory leak in context/renderbuffer region management
Robert Ellison [Fri, 8 May 2009 20:42:47 +0000 (14:42 -0600)]
i965: fix memory leak in context/renderbuffer region management

A temporary change to the intelMakeCurrent() function to make
it work with frame buffer objects causes the static regions
associated with the context (the front_region, back_region,
and depth_region) to take on an additional reference, with
no corresponding release.  This causes a memory leak if a
program repeatedly creates and destroys contexts.

The fix is the corresponding hack, to unreference these
regions when the context is deleted, but only if the
framebuffer objects are still present and the same
regions are still referenced within.

Both sets of code have comment blocks referring to each
other.

15 years agoi965: fix segfault on low memory conditions
Robert Ellison [Fri, 8 May 2009 20:40:38 +0000 (14:40 -0600)]
i965: fix segfault on low memory conditions

When out of memory (in at least one case, triggered by a longrunning
memory leak), this code will segfault and crash.  By checking for the
out-of-memory condition, the system can continue, and will report
the out-of-memory error later, a much preferable outcome.

15 years agomesa: Fixed a texture memory leak
Robert Ellison [Fri, 8 May 2009 17:13:57 +0000 (11:13 -0600)]
mesa: Fixed a texture memory leak

The current texture for any particular texture unit is given an additional
reference in update_texture_state(); but if the context is closed before
that texture can be released (which is quite frequent in normal use, unless
a program unbinds and deletes the texture and renders without it to force
a call to update_texture_state(), the memory is lost.

This affects general Mesa; but the i965 is particularly affected because
it allocates a considerable amount of additional memory for each allocated
texture.

15 years agointel: Add a metaops version of glGenerateMipmapEXT/SGIS_generate_mipmaps.
Eric Anholt [Fri, 8 May 2009 05:50:19 +0000 (22:50 -0700)]
intel: Add a metaops version of glGenerateMipmapEXT/SGIS_generate_mipmaps.

In addition to being HW accelerated, it avoids the incorrect
(black) rendering of the mipmaps that SW was doing in fbo-generatemipmap.
Improves the performance of the mipmap generation and drawing in
fbo-generatemipmap by 30%.

15 years agointel: Put the constant texcoords used in metaops into a vbo.
Eric Anholt [Fri, 8 May 2009 19:46:18 +0000 (12:46 -0700)]
intel: Put the constant texcoords used in metaops into a vbo.

Make this be its own function for setup/teardown of the binding of these
texcoords.  No performance difference in the engine demo (I just felt dirty
not using a VBO for this), and I think it should be more resilient to
interference from current GL state.

15 years agomesa: omit files that were removed from git
Brian Paul [Fri, 8 May 2009 21:07:22 +0000 (15:07 -0600)]
mesa: omit files that were removed from git

15 years agomesa: set version to 7.5-rc1
Brian Paul [Fri, 8 May 2009 21:04:12 +0000 (15:04 -0600)]
mesa: set version to 7.5-rc1

15 years agoi965: const qualifiers
Brian Paul [Fri, 8 May 2009 19:48:41 +0000 (13:48 -0600)]
i965: const qualifiers

15 years agomesa: raise MAX_VARYING (number of shader varying vars) to 16
Brian Paul [Fri, 8 May 2009 20:34:43 +0000 (14:34 -0600)]
mesa: raise MAX_VARYING (number of shader varying vars) to 16

16 is the limit for now because of various 32-bit bitfields.

15 years agomesa: assertions to check for too many vertex outputs or fragment inputs
Brian Paul [Fri, 8 May 2009 20:34:15 +0000 (14:34 -0600)]
mesa: assertions to check for too many vertex outputs or fragment inputs

15 years agoglsl: check number of varying variables against the limit
Brian Paul [Fri, 8 May 2009 20:32:19 +0000 (14:32 -0600)]
glsl: check number of varying variables against the limit

Link fails if too many varying vars.

15 years agomesa: issue warning for out of bounds array indexes
Brian Paul [Fri, 8 May 2009 18:44:38 +0000 (12:44 -0600)]
mesa: issue warning for out of bounds array indexes

15 years agoi965: don't use GRF regs 126,127 for WM programs
Brian Paul [Fri, 8 May 2009 18:43:58 +0000 (12:43 -0600)]
i965: don't use GRF regs 126,127 for WM programs

They seem to be used for something else and using them for shader temps
seems to lead to GPU lock-ups.
Call _mesa_warning() when we run out of temps.
Also, clean up some debug code.

15 years agoglsl: set vertex/fragment program Ids to aid with debugging
Brian Paul [Fri, 8 May 2009 18:18:44 +0000 (12:18 -0600)]
glsl: set vertex/fragment program Ids to aid with debugging

15 years agomesa: more shader debug code (disabled)
Brian Paul [Fri, 8 May 2009 18:17:11 +0000 (12:17 -0600)]
mesa: more shader debug code (disabled)

15 years agowgl: Grow the maximum number of pixel formats to cope with the new accum pixel formats.
José Fonseca [Fri, 8 May 2009 13:23:45 +0000 (14:23 +0100)]
wgl: Grow the maximum number of pixel formats to cope with the new accum pixel formats.

Fix a segfault when using softpipe.

15 years agomesa/st: keep surface_copy arguments positive
Keith Whitwell [Thu, 7 May 2009 18:48:06 +0000 (19:48 +0100)]
mesa/st: keep surface_copy arguments positive

The src/dest x,y, and w,h arguments of the pipe->surface_copy
function are unsigned and the drivers aren't expecting negative
(or extremly-large unsigned) values as inputs.  Trim the requests
at the state-tracker level before passing down.

15 years agomesa/st: remove redundant call to st_finish in CopyTexSubImage
Keith Whitwell [Thu, 7 May 2009 18:27:30 +0000 (19:27 +0100)]
mesa/st: remove redundant call to st_finish in CopyTexSubImage

Rendering should already have been flushed, any synchronization will
be done by the driver or memory manager.

15 years agowgl: Export pixelformats with accumulation bits.
José Fonseca [Thu, 7 May 2009 17:21:56 +0000 (18:21 +0100)]
wgl: Export pixelformats with accumulation bits.

15 years agomesa/st: cope with non-ibo index data in st_draw_feedback.c
Keith Whitwell [Thu, 7 May 2009 10:46:08 +0000 (11:46 +0100)]
mesa/st: cope with non-ibo index data in st_draw_feedback.c

Previously only non-indexed or indicies-in-a-vbo cases were handled in
this code.  This change adds the missing regular indices-in-memory
case.

15 years agoutil/upload: catch failures to map_range and return error
Keith Whitwell [Thu, 7 May 2009 08:24:37 +0000 (09:24 +0100)]
util/upload: catch failures to map_range and return error

Caller may be able to do something about this - eg flush and retry.

15 years agoscons: mingw is broken with -O1 and higher
Keith Whitwell [Thu, 7 May 2009 07:00:42 +0000 (08:00 +0100)]
scons: mingw is broken with -O1 and higher

15 years agostw: fix potential uninitialized use of curctx
Keith Whitwell [Wed, 6 May 2009 19:41:17 +0000 (20:41 +0100)]
stw: fix potential uninitialized use of curctx

15 years agowgl: Enforce a minimum 1x1 framebuffer size.
José Fonseca [Wed, 6 May 2009 18:58:08 +0000 (19:58 +0100)]
wgl: Enforce a minimum 1x1 framebuffer size.

15 years agowgl: Add assertion for missing function.
José Fonseca [Fri, 1 May 2009 17:53:51 +0000 (18:53 +0100)]
wgl: Add assertion for missing function.

15 years agowgl: Remove unused variable.
José Fonseca [Fri, 1 May 2009 17:53:17 +0000 (18:53 +0100)]
wgl: Remove unused variable.

15 years agomesa: Make _mesa_share_state thread safe.
José Fonseca [Fri, 1 May 2009 17:52:54 +0000 (18:52 +0100)]
mesa: Make _mesa_share_state thread safe.

15 years agowgl: Implement ShareLists.
José Fonseca [Fri, 1 May 2009 17:49:22 +0000 (18:49 +0100)]
wgl: Implement ShareLists.

15 years agoprogs/trivial: add test for vertex program invarient transform
Keith Whitwell [Tue, 5 May 2009 12:00:44 +0000 (13:00 +0100)]
progs/trivial: add test for vertex program invarient transform

15 years agomesa: more complete fix for transform_invarient glitches
Keith Whitwell [Tue, 5 May 2009 11:12:28 +0000 (12:12 +0100)]
mesa: more complete fix for transform_invarient glitches

Add a new flag mvp_with_dp4 in the context, and use that to switch
both ffvertex.c and programopt.c vertex transformation code to
either DP4 or MUL/MAD implementations.

15 years agomesa/main: set PREFER_DP4 to match position_invarient code
Keith Whitwell [Fri, 1 May 2009 17:20:42 +0000 (18:20 +0100)]
mesa/main: set PREFER_DP4 to match position_invarient code

This is a quick fix for z fighting in quake4 caused by the mismatch
between vertex transformation here and in the position_invarient code.
Full fix would be to make this driver-tunable and adjust both
position_invarient and ffvertex_prog.c code to respect driver
preferences.

15 years agowgl: Implemente SwapLayerBuffers.
José Fonseca [Fri, 1 May 2009 15:30:08 +0000 (16:30 +0100)]
wgl: Implemente SwapLayerBuffers.

15 years agoscons: Don't use deprecated Options.
José Fonseca [Fri, 1 May 2009 15:12:17 +0000 (16:12 +0100)]
scons: Don't use deprecated Options.

15 years agoutil: Limit the stack walk to avoid referencing undefined memory.
José Fonseca [Thu, 30 Apr 2009 12:10:58 +0000 (13:10 +0100)]
util: Limit the stack walk to avoid referencing undefined memory.

15 years agogallium/tgsi: hack around linker/archiver breakage
Keith Whitwell [Thu, 30 Apr 2009 12:09:34 +0000 (13:09 +0100)]
gallium/tgsi: hack around linker/archiver breakage

Add a dummy function which exists only so that tgsi_text_translate()
doesn't get magic-ed out of the libtgsi.a archive by the build system.
Don't remove unless you know this has been fixed - check on
mingw/scons builds as well.

15 years agoprogs/trivial: add vbo-noninterleaved test
Keith Whitwell [Thu, 30 Apr 2009 11:35:59 +0000 (12:35 +0100)]
progs/trivial: add vbo-noninterleaved test

15 years agowgl: Include alpha bits in pixel format's cColorBits field.
José Fonseca [Thu, 30 Apr 2009 11:24:08 +0000 (12:24 +0100)]
wgl: Include alpha bits in pixel format's cColorBits field.

15 years agogallium/draw: cope with unused vertex_elements
Keith Whitwell [Thu, 30 Apr 2009 09:59:19 +0000 (10:59 +0100)]
gallium/draw: cope with unused vertex_elements

15 years agotrivial: add line-flat.c
Keith Whitwell [Wed, 29 Apr 2009 13:21:41 +0000 (14:21 +0100)]
trivial: add line-flat.c

15 years agowgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.
José Fonseca [Tue, 28 Apr 2009 18:46:56 +0000 (19:46 +0100)]
wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.

15 years agopb: Save the stack backtrace when creating/mapping a debug buffer.
José Fonseca [Tue, 28 Apr 2009 17:53:52 +0000 (18:53 +0100)]
pb: Save the stack backtrace when creating/mapping a debug buffer.

15 years agopb: Dump the fenced buffer sizes.
José Fonseca [Tue, 28 Apr 2009 16:07:01 +0000 (17:07 +0100)]
pb: Dump the fenced buffer sizes.

15 years agomesa/st: keep surface_copy arguments positive
Keith Whitwell [Thu, 7 May 2009 18:48:06 +0000 (19:48 +0100)]
mesa/st: keep surface_copy arguments positive

The src/dest x,y, and w,h arguments of the pipe->surface_copy
function are unsigned and the drivers aren't expecting negative
(or extremly-large unsigned) values as inputs.  Trim the requests
at the state-tracker level before passing down.

15 years agomesa/st: remove redundant call to st_finish in CopyTexSubImage
Keith Whitwell [Thu, 7 May 2009 18:27:30 +0000 (19:27 +0100)]
mesa/st: remove redundant call to st_finish in CopyTexSubImage

Rendering should already have been flushed, any synchronization will
be done by the driver or memory manager.

15 years agowgl: Export pixelformats with accumulation bits.
José Fonseca [Thu, 7 May 2009 17:21:56 +0000 (18:21 +0100)]
wgl: Export pixelformats with accumulation bits.

15 years agomesa/st: cope with non-ibo index data in st_draw_feedback.c
Keith Whitwell [Thu, 7 May 2009 10:46:08 +0000 (11:46 +0100)]
mesa/st: cope with non-ibo index data in st_draw_feedback.c

Previously only non-indexed or indicies-in-a-vbo cases were handled in
this code.  This change adds the missing regular indices-in-memory
case.