Vinson Lee [Thu, 14 Jan 2010 06:58:07 +0000 (22:58 -0800)]
swrast: Remove unnecessary header from s_atifragshader.c.
Vinson Lee [Thu, 14 Jan 2010 06:45:54 +0000 (22:45 -0800)]
swrast: Remove unnecessary header from s_bitmap.c.
Vinson Lee [Thu, 14 Jan 2010 06:43:16 +0000 (22:43 -0800)]
swrast: Remove unnecessary headers from s_copypix.c.
Vinson Lee [Thu, 14 Jan 2010 06:36:01 +0000 (22:36 -0800)]
swrast: Remove unnecessary header from s_depth.c.
Vinson Lee [Thu, 14 Jan 2010 06:30:04 +0000 (22:30 -0800)]
swrast: Remove unnecessary header from s_drawpix.c.
Vinson Lee [Thu, 14 Jan 2010 06:20:44 +0000 (22:20 -0800)]
swrast: Remove unnecessary header from s_feedback.c.
Thomas Hellstrom [Wed, 13 Jan 2010 16:40:41 +0000 (17:40 +0100)]
st/dri: Make sure we always request a fake front.
This should be the correct, but sub-optimal way to handle things on
pre-1.7 servers. For servers that automatically adds a fake front
we should never request the fake front and handle the reply differently.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
José Fonseca [Wed, 13 Jan 2010 13:40:09 +0000 (13:40 +0000)]
svga: Fix compile_vs error code.
It could erroneously return PIPE_OK in some circumstances.
Make compile_fs code identical.
Vinson Lee [Wed, 13 Jan 2010 07:54:15 +0000 (23:54 -0800)]
swrast: Remove unnecessary header from s_fragprog.c.
Vinson Lee [Wed, 13 Jan 2010 05:59:58 +0000 (21:59 -0800)]
swrast: Remove unnecessary header in s_lines.c.
Vinson Lee [Wed, 13 Jan 2010 05:51:19 +0000 (21:51 -0800)]
swrast: Remove unnecessary header from s_points.c.
Vinson Lee [Wed, 13 Jan 2010 05:41:09 +0000 (21:41 -0800)]
swrast: Remove unnecessary header from s_readpix.c.
Vinson Lee [Wed, 13 Jan 2010 04:36:33 +0000 (20:36 -0800)]
swrast: Remove unnecessary header from s_texcombine.c.
Vinson Lee [Wed, 13 Jan 2010 04:14:36 +0000 (20:14 -0800)]
tnl: Remove unnecessary header from t_context.c.
Vinson Lee [Wed, 13 Jan 2010 04:02:44 +0000 (20:02 -0800)]
tnl: Remove unnecessary headers from t_draw.c.
Vinson Lee [Wed, 13 Jan 2010 03:55:24 +0000 (19:55 -0800)]
tnl: Remove unnecessary header from t_pipeline.c.
Vinson Lee [Wed, 13 Jan 2010 03:49:19 +0000 (19:49 -0800)]
tnl: Remove unnecessary header from t_rasterpos.c.
Vinson Lee [Wed, 13 Jan 2010 03:45:25 +0000 (19:45 -0800)]
tnl: Remove unnecessary header from t_vb_program.c.
Vinson Lee [Wed, 13 Jan 2010 01:07:24 +0000 (17:07 -0800)]
vbo: Remove unnecessary headers from vbo_exec.c.
Vinson Lee [Wed, 13 Jan 2010 00:55:36 +0000 (16:55 -0800)]
vbo: Remove unnecessary header from vbo_exec_array.c.
Vinson Lee [Wed, 13 Jan 2010 00:37:30 +0000 (16:37 -0800)]
vbo: Remove unnecessary header from vbo_exec_draw.c.
Vinson Lee [Tue, 12 Jan 2010 08:50:05 +0000 (00:50 -0800)]
vbo: Remove unnecessary headers from vbo_save.c.
Vinson Lee [Tue, 12 Jan 2010 07:53:13 +0000 (23:53 -0800)]
vbo: Remove unnecessary header from vbo_save_loopback.c.
Vinson Lee [Tue, 12 Jan 2010 06:46:30 +0000 (22:46 -0800)]
vbo: Remove unnecessary header from vbo_split_copy.c.
Vinson Lee [Tue, 12 Jan 2010 05:04:16 +0000 (21:04 -0800)]
x86: Remove unnecessary header from x86_xform.c.
Vinson Lee [Tue, 12 Jan 2010 04:24:57 +0000 (20:24 -0800)]
progs/xdemos: Remove unnecessary header from corender.c.
Vinson Lee [Tue, 12 Jan 2010 04:21:50 +0000 (20:21 -0800)]
progs/trivial: Remove unnecessary headers from tri-fbo-tex.c.
Vinson Lee [Tue, 12 Jan 2010 04:15:59 +0000 (20:15 -0800)]
progs/trivial: Remove unnecessary header from tri-fbo-tex-mip.c.
Vinson Lee [Tue, 12 Jan 2010 03:57:46 +0000 (19:57 -0800)]
progs/tests: Remove duplicate included header in vparray.c.
Vinson Lee [Tue, 12 Jan 2010 03:56:04 +0000 (19:56 -0800)]
progs/tests: Add newline to end of printf in vparray.c.
Vinson Lee [Tue, 12 Jan 2010 03:52:22 +0000 (19:52 -0800)]
progs/redbook: Remove unnecessary header from aapoly.c.
Vinson Lee [Tue, 12 Jan 2010 03:42:55 +0000 (19:42 -0800)]
progs/glsl: Remove duplicate included header from shtest.c.
Vinson Lee [Tue, 12 Jan 2010 03:29:26 +0000 (19:29 -0800)]
progs/demos: Remove unnecessary header from morph3d.c.
Brian Paul [Tue, 12 Jan 2010 03:18:50 +0000 (20:18 -0700)]
Revert "util: Build u_bitmask.o when using make."
This reverts commit
01eff0e6d23f90650de7c563f74a1aec3de112a6.
u_bitmask.c was already in the C_SOURCES list.
Vinson Lee [Tue, 12 Jan 2010 03:15:54 +0000 (19:15 -0800)]
progs/tests: Silence fprintf format warning.
Vinson Lee [Tue, 12 Jan 2010 03:03:18 +0000 (19:03 -0800)]
progs/demos: Remove unnecessary header from isosurf.c.
Zack Rusin [Mon, 11 Jan 2010 23:27:59 +0000 (18:27 -0500)]
st/xorg: move exaMoveInPixmap before trying to fetch it
as Michel suggested, this is a cleaner way of fixing crashes caused
by exaGetPixmapDriverPrivate returning null since the data hasn't
been moved yet.
Zack Rusin [Mon, 11 Jan 2010 23:03:49 +0000 (18:03 -0500)]
st/xorg: fix a rare video crash
sometimes dst isn't present if a window is in a middle of a resize, stop
crashing in those cases and just ignore a frame.
Jakob Bornecrantz [Wed, 6 Jan 2010 16:31:46 +0000 (17:31 +0100)]
Revert "pipebuffer: Multi-threading fixes for fencing."
This reverts commit
5b64d94390e4805e1634f0c8b5e3156e12b8b872.
Thomas Hellstrom [Mon, 11 Jan 2010 20:32:13 +0000 (21:32 +0100)]
Revert "st/dri: no need to request fake front buffer, only handle it being returned"
This reverts commit
1336989ec60fff7bd590fefd28945a0e5dc536e3.
The commit breaks frontbuffer rendering and the possibility to do
on-demand frontbuffer requests on all Xservers prior to 1.7.
The commit should be conditioned on a dri2 version check.
I've submitted a patch to Xserver to bump dri2 minor, and it's acked by Ian.
To be able to check the version from within the state tracker, we will
probably need another dri2 extension function that returns the server
version. The protocol has support for it.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Thomas Hellstrom [Mon, 11 Jan 2010 20:00:59 +0000 (21:00 +0100)]
util: Build u_bitmask.o when using make.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Vinson Lee [Mon, 11 Jan 2010 08:24:39 +0000 (00:24 -0800)]
progs/demos: Remove unnecessary header from fbotexture.c.
Dave Airlie [Mon, 11 Jan 2010 03:21:47 +0000 (13:21 +1000)]
radeon: fix prediction for r100 inline vert/elt emits.
On r100 we emit the indices inline so we need to account
for that in the emission size.
Dave Airlie [Mon, 11 Jan 2010 03:21:02 +0000 (13:21 +1000)]
radeon: fix bug in realloc code.
This bug was fixed in libdrm ages ago, port to non-kms
Vinson Lee [Mon, 11 Jan 2010 00:09:41 +0000 (16:09 -0800)]
glu/sgi: Initialize members of class Mesher.
Vinson Lee [Sun, 10 Jan 2010 23:55:52 +0000 (15:55 -0800)]
glu/sgi: Initialize members of class Slicer.
Vinson Lee [Sun, 10 Jan 2010 11:03:14 +0000 (03:03 -0800)]
glu/sgi: Include missing header file.
Vinson Lee [Sun, 10 Jan 2010 09:57:13 +0000 (01:57 -0800)]
progs/demos: Check upper bounds of input in manywin.c.
Vinson Lee [Sun, 10 Jan 2010 08:40:46 +0000 (00:40 -0800)]
progs/demos: Bounds check input to fire.c.
Vinson Lee [Sun, 10 Jan 2010 08:14:33 +0000 (00:14 -0800)]
glu/sgi: Initialize members of class Renderhints.
Vinson Lee [Sun, 10 Jan 2010 07:55:05 +0000 (23:55 -0800)]
glu/sgi: Initialize members of class StoredVertex.
Vinson Lee [Sun, 10 Jan 2010 07:53:54 +0000 (23:53 -0800)]
glu/sgi: Include missing header file.
Vinson Lee [Sun, 10 Jan 2010 07:25:49 +0000 (23:25 -0800)]
glu/sgi: Initialize member of class O_pwlcurve.
Vinson Lee [Sat, 9 Jan 2010 07:08:57 +0000 (23:08 -0800)]
progs/tests: Silence 'missing initializer' warnings.
Vinson Lee [Sat, 9 Jan 2010 06:10:52 +0000 (22:10 -0800)]
progs/glsl: Silence uninitialized variable warning.
Vinson Lee [Sat, 9 Jan 2010 06:02:21 +0000 (22:02 -0800)]
progs/demos: Add missing initializers in engine.c.
Vinson Lee [Sat, 9 Jan 2010 05:43:54 +0000 (21:43 -0800)]
r300g: Silence unused variable warnings.
Vinson Lee [Sat, 9 Jan 2010 04:22:17 +0000 (20:22 -0800)]
tgsi: Silence uninitialized variable warnings.
Jakob Bornecrantz [Tue, 5 Jan 2010 16:51:02 +0000 (17:51 +0100)]
util: Add u_bitmask to make build
Dan Nicholson [Fri, 8 Jan 2010 13:59:55 +0000 (05:59 -0800)]
mesa: Ensure libmesagallium.a is finished building before descending
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Vinson Lee [Fri, 8 Jan 2010 09:13:46 +0000 (01:13 -0800)]
r300: Move initial declaration outside for loop.
Brian Paul [Thu, 7 Jan 2010 21:55:27 +0000 (14:55 -0700)]
docs: document Gallium SSE codegen for XPD bug fix
Brian Paul [Thu, 7 Jan 2010 21:49:12 +0000 (14:49 -0700)]
tgsi: fix SSE code emit for XPD
Rearrange things so that the writes to the dest registers happen
after we've fetched/used all src registers.
The problematic instruction was: XPD TEMP[2].xyz, TEMP[0], TEMP[2];
Note that the dst reg is also a src reg.
This fixes bad shading with progs/glsl/bump.c since Eric's changes to the
Mesa program optimizer in commit
d6690ce15fb8c7c6abf1bc0d847c1d2da2c33904.
The optimizer rearranges some registers so we occasionally wind up with
something like the above.
Brian Paul [Thu, 7 Jan 2010 15:22:37 +0000 (08:22 -0700)]
progs/fp: remove invalid tri-inv.c test
INV is not a valid instruction.
Vinson Lee [Thu, 7 Jan 2010 05:39:44 +0000 (21:39 -0800)]
progs/demos: Assert that input to malloc is valid.
Vinson Lee [Thu, 7 Jan 2010 02:18:49 +0000 (18:18 -0800)]
progs/xdemos: Check for string overflow.
Vinson Lee [Thu, 7 Jan 2010 02:08:17 +0000 (18:08 -0800)]
progs/xdemos: Check for string overflow.
Vinson Lee [Thu, 7 Jan 2010 01:51:08 +0000 (17:51 -0800)]
svga: Silence uninitialized variable warning.
Brian Paul [Thu, 7 Jan 2010 01:22:05 +0000 (18:22 -0700)]
meta: remove F suffix from _mesa_Ortho() params
_mesa_Ortho() takes GLdoubles.
Brian Paul [Thu, 7 Jan 2010 01:19:42 +0000 (18:19 -0700)]
docs: document a mipmap generation bug fix
Brian Paul [Thu, 7 Jan 2010 01:18:04 +0000 (18:18 -0700)]
meta: move destination vertex/projection setup out of _mesa_meta_GenerateMipmap
Based on a patch submitted by Pierre Willenbrock <pierre@pirsoft.de>
Brian Paul [Thu, 7 Jan 2010 01:12:42 +0000 (18:12 -0700)]
meta: set viewport and projection matrix in _mesa_meta_GenerateMipmap
This fixes mipmap levels being clipped to the last viewport.
Based on a patch submitted by Pierre Willenbrock <pierre@pirsoft.de>
Andre Maasikas [Tue, 22 Dec 2009 12:50:10 +0000 (14:50 +0200)]
r600: adjust after radeon mipmap changes in
7118db8700
R600_OUT_BATCH_RELOC doesn't really use offset so set it
in TEX_RESOURCE2
+ typo fix
Brian Paul [Thu, 7 Jan 2010 00:42:53 +0000 (17:42 -0700)]
tnl: set FOGC result to (f,0,0,1)
Fixed FDO bug 23397.
Vinson Lee [Wed, 6 Jan 2010 23:35:18 +0000 (15:35 -0800)]
progs/xdemos: Remove comma at end of enumerator list.
Vinson Lee [Wed, 6 Jan 2010 23:33:13 +0000 (15:33 -0800)]
progs/xdemos: Use temporary variables.
This was missed from the previous commit to glxheads.c.
Vinson Lee [Wed, 6 Jan 2010 23:25:42 +0000 (15:25 -0800)]
progs/glsl: Prevent possible string overflow.
Vinson Lee [Wed, 6 Jan 2010 22:55:02 +0000 (14:55 -0800)]
progs/xdemos: Prevent possible string overflow.
Pierre Ossman [Wed, 6 Jan 2010 17:42:49 +0000 (12:42 -0500)]
r600: float texture component ordering
The ordering of texture components was
backwards for the floating point textures.
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
Roel Kluin [Wed, 6 Jan 2010 16:27:42 +0000 (08:27 -0800)]
mesa: test index bounds before array element
Check whether the index is within bounds before accessing the array.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
Roel Kluin [Wed, 6 Jan 2010 16:20:28 +0000 (08:20 -0800)]
win32_menu: add missing parentheses in mapMenu()
`|' has higher precedence than `?'.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
Roel Kluin [Wed, 6 Jan 2010 16:07:00 +0000 (08:07 -0800)]
nv50: add missing parentheses in nv50_query_result()
NOUVEAU_BO_RD is defined (1 << 2), and `|' has higher precedence than `?'
so the second argument of nouveau_bo_map was always 0.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
Brian Paul [Wed, 6 Jan 2010 14:17:13 +0000 (07:17 -0700)]
i965: fix invalid assertion in emit_xpd(), again
José Fonseca [Tue, 5 Jan 2010 20:41:29 +0000 (20:41 +0000)]
pipebuffer: Multi-threading fixes for fencing.
I had this patch on my hard drive for long time. It doesn't fully
address SVGA multi-threading issues, but causes no regressions, so decided
to commit while it still applies cleanly.
Attention: merging this into master will cause issues due to recent
changes in reference counting to fix strict aliasing rules violation.
Brian Paul [Tue, 5 Jan 2010 22:53:01 +0000 (15:53 -0700)]
i965: fix invalid assertion in emit_xpd()
Invalid assertion found by Roel Kluin <roel.kluin@gmail.com>
Roel Kluin [Tue, 5 Jan 2010 21:40:40 +0000 (13:40 -0800)]
tdfx: condition always evaluates to false in SetupDoubleTexEnvVoodoo3()
This can never be true.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Brian Paul [Tue, 5 Jan 2010 18:40:24 +0000 (11:40 -0700)]
st/mesa: fix broken translation of negative register indexes
A src register's index can be negative if we're doing indirect
addressing into the constant buffer. Ex: MOV OUT[1], CONST[ADDR[0].x-3]
This fixes the piglit vp-arl-neg-array.vpfp test.
Before this change we were going out of bounds of the t->constants[]
array and getting garbage that later triggered an assertion.
Brian Paul [Tue, 5 Jan 2010 17:56:57 +0000 (10:56 -0700)]
ARB prog parser: regenerated parser file
Brian Paul [Tue, 5 Jan 2010 17:53:44 +0000 (10:53 -0700)]
ARB prog parser: fix parameter binding type
References to program local and enviroment parameters are put into the
unified program parameters list as PROGRAM_STATE_VAR entries which point
into the local or environment arrays. So the param_binding_type field
should be PROGRAM_STATE_VAR.
This fixes the piglit vpfp-generic vp-arl-env-array.vpfp and
vp-arl-local-array.vpfp test failures.
Brian Paul [Tue, 5 Jan 2010 17:03:16 +0000 (10:03 -0700)]
ARB prog parser: regenerated parser files
Brian Paul [Tue, 5 Jan 2010 17:01:20 +0000 (10:01 -0700)]
ARB prog parser: add allowSwizzle param to initialize_symbol_from_const()
We need to disable constant consolidation when building an array of
constants which might be indexed indirectly.
Fixes regression in piglit vpfp-generic vp-arl-constant-array.vpfp
test caused by earlier constant consolidation patch.
Brian Paul [Tue, 5 Jan 2010 16:59:39 +0000 (09:59 -0700)]
mesa: whitespace changes and comments
Brian Paul [Tue, 5 Jan 2010 16:57:41 +0000 (09:57 -0700)]
mesa: change constant search behaviour in _mesa_add_unnamed_constant()
Only search for an existing, matching constant if swizzleOut is non-null.
We need to be able to disable constant consolidation when building an
array of constants which will be indexed indirectly.
José Fonseca [Tue, 5 Jan 2010 17:56:26 +0000 (17:56 +0000)]
svga: Remove stale references to delete shader results.
To ensure that a new result that happens to have the same address
of the old one will be detected as a change.
José Fonseca [Tue, 5 Jan 2010 17:32:19 +0000 (17:32 +0000)]
svga: Rebind shaders when tokens change.
Even shader ID doesn't change. Otherwise the token change is not
effective.
This reverts regression from commit
cdb445f3a9285e2d8f042a07021ade78b94e0156. Regression could be seen in
Quake3's loading screen -- the upper right corner of the screen would
be black.
Brian Paul [Tue, 5 Jan 2010 16:14:48 +0000 (09:14 -0700)]
st/mesa: added PROGRAM_LOCAL_PARAM case in src_register()
Fixes piglit vpfp-generic arl.vpfp failure when using gallium.
Brian Paul [Mon, 4 Jan 2010 21:31:08 +0000 (14:31 -0700)]
mesa: bump version to 7.7.1-DEVEL
Brian Paul [Tue, 5 Jan 2010 02:05:31 +0000 (19:05 -0700)]
mesa: add missing _mesa_lock_texture() call
Eric Anholt [Tue, 29 Dec 2009 23:55:34 +0000 (15:55 -0800)]
i915: Use _MaxLevel on principle in texture setup.
It was OK before because we proceed to clamp the value to hardware
limits, but given that other use of MaxLevel has been a trap, let's
avoid it.
Eric Anholt [Mon, 4 Jan 2010 17:39:07 +0000 (09:39 -0800)]
intel: Fix CopyTexImage from tiled mipmap levels > 0.
Fixes piglit fbo-copyteximage.