Ian Romanick
42d9409873
mesa: set version string to 7.6.1-rc4
2009-12-16 09:01:58 -08:00
Brian Paul
35ff190a9c
docs: document 7.6.1 BlueGene fixes
2009-12-16 08:17:43 -07:00
Brian Paul
138d639ec9
mesa: test for __blrts for CPU_TO_LE32()
...
See bug 25663.
2009-12-16 08:04:25 -07:00
Brian Paul
a43fc39585
mesa: no dlopen on BlueGene
...
See bug 25663.
2009-12-16 08:02:56 -07:00
Brian Paul
6f202b53b0
mesa: remove //-style comments
2009-12-16 07:58:54 -07:00
Brian Paul
ddfc2e7439
st/mesa: remove //-style comments
2009-12-16 07:58:54 -07:00
Vinson Lee
dc0a1ebc73
unichrome: Silence compiler warnings.
2009-12-15 17:39:30 -08:00
Vinson Lee
a60457b03b
sis: Silence compiler warnings.
2009-12-15 17:06:01 -08:00
Vinson Lee
7e3825abdb
savage: Silence compiler warnings.
2009-12-15 16:32:51 -08:00
Vinson Lee
ca02109e91
r128: Silence uninitialized variable warnings in r128_tris.c.
2009-12-15 13:12:12 -08:00
Vinson Lee
7430c3ac35
dri: Initialize variable in driBindContext.
2009-12-15 13:04:25 -08:00
Ian Romanick
f23d01e726
intel: Fallback to software if drawable size is > MaxRenderbufferSize
...
This prevents the mystery blank window if, for example, glxgears is
resized larger than 2048 wide on 915. Since the Intel drivers in Mesa
7.6 lack GTT mapped fallbacks, the performance is a slideshow at
best. On Mesa 7.7 and later the performance is much better.
2009-12-15 12:37:09 -08:00
Vinson Lee
987e9188d2
x86: ifdef out unused function cptr.
2009-12-15 12:32:48 -08:00
Matthew Bell
22d2547ad1
mesa: Add missing $(DESTDIR) support to src/gallium/winsys/xlib/Makefile
2009-12-14 21:58:19 -07:00
Vinson Lee
0a8d508854
progs/trivial: Silence compiler warnings.
2009-12-14 18:11:57 -08:00
Vinson Lee
6e5fe39f50
mga: Silence uninitialized variable warnings.
2009-12-14 17:30:15 -08:00
Vinson Lee
b18fa9f448
mach64: Silence uninitialized variable warnings.
2009-12-14 17:20:34 -08:00
Vinson Lee
6c9870b54c
i810: Silence uninitialized variable warnings in i180tris.c
2009-12-13 00:14:31 -08:00
Vinson Lee
555dc25c4c
swrast: Silence uninitialized variable warnings in s_triangle.c
2009-12-12 23:47:32 -08:00
Vinson Lee
aa44efb045
st/mesa: Silence uninitialized variables warnings in st_draw.c.
2009-12-12 22:17:16 -08:00
Vinson Lee
0aef54ba62
swrast: Silence uninitialized variable warnings in ss_tritmp.h.
2009-12-12 22:00:19 -08:00
Vinson Lee
89d85e8170
glut: Prevent potential double free in menuVisualSetup.
2009-12-12 21:46:13 -08:00
Vinson Lee
20590b9733
t_dd_dmatmp.h: Silence unused value warning in render_poly_elts.
2009-12-12 20:20:02 -08:00
Vinson Lee
cd1a09e3bb
glsl: Initialize member label of struct slang_operation to NULL.
2009-12-12 18:42:18 -08:00
Vinson Lee
f8d4ac56f7
softpipe: Initialize source in blend_quad.
2009-12-12 18:34:15 -08:00
Vinson Lee
7ea452dd35
t_dd_dmatmp2.h: Silence unused value warnings.
2009-12-12 16:56:07 -08:00
Vinson Lee
75e8dbb235
i915g: Silence unused value warning in intel_drm_get_device_id.
2009-12-12 16:24:25 -08:00
Vinson Lee
9dc018618d
t_dd_dmatmp.h: Silence unused value warnings in render_line_loop_elts.
2009-12-12 16:18:08 -08:00
Vinson Lee
af4e4a73f7
t_dd_dmatmp.h: Silence unused value warning in render_tri_fan_elts.
2009-12-12 16:02:09 -08:00
Vinson Lee
588e9f69c4
progs/trivial: Silence compiler warnings in tri-blend-min.c.
2009-12-12 15:47:17 -08:00
Vinson Lee
de9132f274
t_dd_dmatmp.h: Silence unused value warning in render_poly_verts.
2009-12-12 15:27:30 -08:00
Vinson Lee
1e444c9960
swrast: Initialize tex_coords in handle_sample_op.
2009-12-12 15:08:01 -08:00
Vinson Lee
c1d361bd0b
t_dd_dmatmp.h: Silence unused value warning in render_quads_verts.
2009-12-12 14:41:35 -08:00
Vinson Lee
786899f153
progs/trivial: Silence compiler warnings in tri-blend-max.c
2009-12-12 14:20:17 -08:00
Vinson Lee
7d529736b9
t_dd_dmatmp.h: Silence unused value warning in render_tri_fan_verts.
2009-12-12 13:39:39 -08:00
Vinson Lee
c2cee7741e
t_dd_dmatmp.h: Silence unused value warning in render_line_loop_verts.
2009-12-12 12:52:02 -08:00
Vinson Lee
15c6558a2e
progs/xdemos: Silence compiler warnings in glxinfo.c.
2009-12-12 02:06:51 -08:00
Vinson Lee
d5be33477e
progs/tests: Silence compiler warnings in vpeval.c.
2009-12-12 01:34:33 -08:00
Vinson Lee
44d6ab6de5
progs/tests: Silence compiler warnings in cva.c.
2009-12-12 01:11:56 -08:00
Vinson Lee
9e2eee4ab2
progs/redbook: Silence compiler warnings in aaindex.c.
2009-12-12 01:02:16 -08:00
Vinson Lee
81dcf8bdf2
t_dd_dmatmp.h: Silence unused value warning in render_line_loop_verts.
2009-12-12 00:33:42 -08:00
Brian Paul
7d41b4248b
docs: updated 7.6.1 relnotes with GLSL fixes
2009-12-11 09:41:34 -07:00
Brian Paul
d8f8eca9ef
mesa: remove unnecessary loop in _mesa_remove_output_reads()
2009-12-11 09:40:33 -07:00
Brian Paul
5076a4f53a
mesa: check dst reg in _mesa_find_free_register()
...
If a register was only being used as a destination (as will happen when
generated condition-codes) we missed its use. So we'd errantly return
a register index that was really in-use, not free.
Fixes bug 25579.
2009-12-11 09:16:27 -07:00
Aurelien Jarno
f7f1211b9b
sparc: additional preprocessor test for SPARC 64-bit
2009-12-11 08:46:54 -07:00
Vinson Lee
94fba49be9
mesa: Initialize variable in MatchInstruction.
2009-12-10 18:51:51 -08:00
Vinson Lee
e31df54754
mesa: Assign _mesa_lookup_parameter_index return value to GLint.
2009-12-10 18:32:33 -08:00
Vinson Lee
cb1dcb55f9
i915: Add missing break statement in i915_debug_packet.
2009-12-10 18:21:59 -08:00
Vinson Lee
d38ffed523
glsl: Increase size of array in_slang_lookup_constant from 4 to 16.
...
For some cases, _mesa_GetIntegerv reads up to params[15].
2009-12-10 17:52:31 -08:00
Vinson Lee
1cf60c9810
progs/samples: Byte swap individual members of struct _rawImageRec.
2009-12-10 15:41:13 -08:00
Vinson Lee
bc0509bba8
progs/util: Byte swap individual members of struct _rawImageRec.
2009-12-10 13:24:15 -08:00
Vinson Lee
51f52edaf1
glsl: Fix array out-of-bounds access by _slang_lookup_constant.
2009-12-10 12:37:10 -08:00
Vinson Lee
dcb4a37fc8
mesa: Fix array out-of-bounds access by _mesa_TexParameteriv.
2009-12-10 12:11:09 -08:00
Vinson Lee
b827578805
mesa: Fix array out-of-bounds access by _mesa_TexGend.
...
_mesa_TexGend calls _mesa_TexGenfv, which uses the params argument
as an array.
2009-12-09 17:59:23 -08:00
Vinson Lee
444d1f3910
mesa: Fix array out-of-bounds access by _mesa_Lighti.
...
_mesa_Lighti calls _mesa_Lightiv, which uses the params argument
as an array.
2009-12-09 17:34:50 -08:00
Vinson Lee
34528a34c4
mesa: Fix array out-of-bounds access by _mesa_Lightf.
2009-12-09 17:11:30 -08:00
Vinson Lee
348883076b
mesa: Fix array out-of-bounds access by _mesa_PointParameteri.
...
_mesa_PointParameteri calls _mesa_PointParameterfv, which uses the
params argument as an array.
2009-12-09 13:15:05 -08:00
Vinson Lee
6f2d51b81f
mesa: Fix array out-of-bounds access by _mesa_PointParameterf.
...
_mesa_PointParameterf calls _mesa_PointParameterfv, which uses the
params argument as an array.
2009-12-09 13:00:22 -08:00
Vinson Lee
637970aefd
mesa: Fix array out-of-bounds access by _mesa_LightModelf.
...
_mesa_LightModelf calls _mesa_LightModelfv, which uses the
params argument as an array.
2009-12-09 12:43:28 -08:00
Vinson Lee
a082d965de
glsl: Remove unused member x from struct slang_operation.
2009-12-09 11:26:24 -08:00
Brian Paul
3de8fff45d
mesa: fix baseLevel >= MAX_TEXTURE_LEVELS test
...
This fixes invalid array indexing when baseLevel == MAX_TEXTURE_LEVELS.
See bug 25528.
2009-12-09 08:30:05 -07:00
Andre Maasikas
33a120e476
r600: fix state size prediction after dc0777d3
2009-12-09 10:51:52 +02:00
Vinson Lee
af16c822a5
mesa: Fix array out-of-bounds access by _mesa_LightModeli.
...
_mesa_LightModeli calls _mesa_LightModeliv, which uses the
params argument as an array.
2009-12-08 18:26:05 -08:00
Vinson Lee
d33bf38d63
mesa: Fix array out-of-bounds access by _mesa_Fogf.
...
_mesa_Fogf calls _mesa_Fogfv, which uses the params argument
as an array.
2009-12-08 17:51:07 -08:00
Vinson Lee
3f7c2ac279
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.
...
_mesa_TexParameteri calls set_tex_parameteri, which uses the
params argument as an array.
2009-12-08 17:25:05 -08:00
Vinson Lee
7f146b3824
mesa: Fix array out-of-bounds access by _mesa_Fogi.
...
_mesa_Fogi calls _mesa_Fogfv, which uses the params argument
as an array.
2009-12-08 16:08:41 -08:00
Vinson Lee
a1d46fbea0
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.
...
_mesa_TexParameteri calls set_tex_parameterf, which uses the
params argument as an array.
2009-12-08 15:42:13 -08:00
Vinson Lee
d88f3b9468
mesa: Fix array out-of-bounds access by _mesa_TexParameterfv.
...
_mesa_TexParameterfv calls set_tex_parameteri, which uses the
params argument as an array.
2009-12-08 14:33:33 -08:00
Brian Paul
54b0ed8360
vbo: fix array index out of bounds error, and fix evaluator priorities
...
Fixes bug 25525.
Plus, the GL_NV_vertex_program evaluators alias and override the
convential evaluator maps, so set their state after the conventional
maps.
2009-12-08 15:03:22 -07:00
Vinson Lee
1de1deffce
i915g: Fix memory leak when pci id is unknown.
2009-12-08 00:43:38 -08:00
Vinson Lee
7e93e06781
i915g: Add missing break statement in i915_debug_packet.
2009-12-08 00:37:35 -08:00
Vinson Lee
7f8e22aa29
rbug: Initialize variable in rbug_get_message.
...
Silences uninitialized variable warning.
2009-12-08 00:28:50 -08:00
Andre Maasikas
369669ff9a
r600: add support for TXB instruction
...
makes testing other things easier - does not hang the card
TODO: enable TEX dependency tracking in vertex programs
2009-12-08 10:02:23 +02:00
Andre Maasikas
dc0777d3e3
r600: reorder state for render_target and blend
...
First time around render targets are not enabled yet (done in
r700SendRenderTargetState) so blend state is not emitted for any targets.
Affects first glClear in some mesa tests.
As a quick fix reorder state emit so that target is set first
2009-12-08 09:41:10 +02:00
Vinson Lee
add6dfbba6
llvmpipe: Initialize variables in emit_instruction.
2009-12-07 19:04:07 -08:00
Vinson Lee
3e8b2fda21
progs/test: Initialize variable in prog_parameter.
...
Silences uninitialized variable compiler warning.
2009-12-07 18:40:37 -08:00
Ian Romanick
9dbd47fc6b
mesa: set version string to 7.6.1-rc3
2009-12-07 16:59:59 -08:00
Vinson Lee
7d84169865
progs/demos: Fix memory leak in projtex.c.
2009-12-07 12:31:08 -08:00
Vinson Lee
7005f7cd1a
st/egl: Fix memory leak in egl_tracker.c.
...
(cherry picked from commit 052b127842
)
2009-12-06 01:15:24 -08:00
Vinson Lee
c994f08eb1
dri: Fix potential null pointer dereference in driBindContext.
...
(cherry picked from commit 919898e92f
)
2009-12-06 01:01:55 -08:00
Vinson Lee
f622b649fb
dri: Fix potential null pointer deference in dri_put_drawable.
...
(cherry picked from commit 364070b1f2
)
2009-12-06 01:00:20 -08:00
Vinson Lee
76b3523d75
glx: Prevent potential null pointer deference in driCreateContext.
...
(cherry picked from commit 4b0b250aae
)
2009-12-06 00:56:20 -08:00
Vinson Lee
978b80c8e3
progs/tests: Add tests to Makefile.
...
(cherry picked from commit 76d2ec3a0a
)
2009-12-05 21:20:54 -08:00
Vinson Lee
3cd745515e
draw: Initialize variable in draw_pt.c.
...
(cherry picked from commit ea98e9820d
)
2009-12-05 15:11:41 -08:00
Vinson Lee
b2953ee1a6
mesa: Fix array out-of-bounds access by _mesa_TexGenf.
...
_mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument
as an array.
(cherry picked from commit ca5a7aadb4
)
2009-12-05 13:00:35 -08:00
Vinson Lee
d74cd04e61
mesa: Fix array out-of-bounds access by _mesa_TexGeni.
...
_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument
as an array.
(cherry picked from commit d55fb7c835
)
2009-12-05 12:59:34 -08:00
Vinson Lee
ca8a2150c7
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.
...
_mesa_TexParameterf calls set_tex_parameterf, which uses the params
argument as an array.
(cherry picked from commit 270d36da14
)
2009-12-05 12:50:56 -08:00
Vinson Lee
4071d065c2
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.
...
_mesa_TexParameterf calls set_tex_parameteri, which uses the params
argument as an array.
(cherry picked from commit a201dfb6bf
)
2009-12-05 12:47:40 -08:00
Vinson Lee
1446f30875
progs/samples: Fix memory leak if malloc fails in rgbtoppm.c.
2009-12-05 01:43:29 -08:00
Vinson Lee
412aeeed1c
progs/samples: Fix memory leak if fopen fails in rgbtoppm.c.
2009-12-05 01:38:14 -08:00
Vinson Lee
6212c8103a
progs/samples: Add rgbtoppm to Makefile.
2009-12-05 01:28:47 -08:00
Vinson Lee
2cd2341ce8
progs/tests: Removed unused variable from texdown.c.
2009-12-05 01:23:05 -08:00
Vinson Lee
d642edd2d1
progs/vpglsl: Assign glGetUniformLocationARB return value to GLint.
...
The return type of glGetUniformLocationARB is GLint, not GLuint.
2009-12-05 01:11:26 -08:00
Vinson Lee
8d2f3434c5
progs/fp: Redraw upon keypress.
2009-12-04 23:31:39 -08:00
Vinson Lee
fe8e18bcd4
mesa: Fix array out-of-bounds access in _mesa_TexEnvf.
...
_mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument
as an array.
(cherry picked from commit a11d60d14c
)
2009-12-04 17:48:30 -08:00
Vinson Lee
4fb5ae7233
progs/util: Fix memory leak if fread returns 0 in CompileShaderFile.
...
(cherry picked from commit 11905da883
)
2009-12-04 17:35:00 -08:00
Vinson Lee
5683d7d43f
progs/util: Fix memory leak if fail to load/compile shader
...
Signed-off-by: Brian Paul <brianp@vmware.com >
(cherry picked from commit c475079ef2
)
2009-12-04 17:32:48 -08:00
Vinson Lee
e5bc2a19bd
progs/fp: Add tri-inv.c to Makefile.
2009-12-04 17:29:53 -08:00
Coleman Kane
225bc70b77
r300g: use $(MAKE) variable
...
Fixes bug 24501
2009-12-04 08:45:04 -07:00
Brian Paul
ca7cd3ade0
progs/xdemos: fix some visual/fbconfig logic in glxinfo.c
...
The fbAttribSingle/Double arrays had wrong GLX_DOUBLEBUFFER values.
We only need to use the glXChooseFBConfig() code when glXChooseVisual()
fails (but I don't know when that would happen).
Other recent commits errantly removed some code in this area too.
2009-12-04 08:09:57 -07:00
Brian Paul
fb83fa26c4
docs: a few more fixes for 7.6.1
2009-12-04 08:09:07 -07:00
Alex Deucher
8d8fd9776e
radeon: fix polygon stipple
...
fixes fdo bug 25354
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-12-04 09:52:37 -05:00
Vinson Lee
c74afe0c46
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
...
(cherry picked from commit 808f037660
)
2009-12-04 00:14:31 -08:00
Vinson Lee
8df551c46b
glu/sgi: Fix memory leak in gluBuild1DMipmapLevelsCore.
...
(cherry picked from commit 94bcb9f1a4
)
2009-12-04 00:14:05 -08:00
Vinson Lee
ea487c6d0b
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
...
(cherry picked from commit 0d89f3dc7f
)
2009-12-04 00:13:25 -08:00
Vinson Lee
7b5eba453e
glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
...
(cherry picked from commit f895abbd97
)
2009-12-04 00:12:49 -08:00
Vinson Lee
7ed749c062
glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
...
(cherry picked from commit 326b66d724
)
2009-12-04 00:11:58 -08:00
Vinson Lee
80a3944a4d
glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
...
(cherry picked from commit 5b925b7daa
)
2009-12-04 00:11:02 -08:00
Vinson Lee
6c1fc2b2a5
glu/sgi: Fix memory leak in gluScaleImage3D.
...
(cherry picked from commit b611f639b4
)
2009-12-04 00:10:22 -08:00
Vinson Lee
fe38c16021
glu/sgi: Fix memory leak in gluScaleImage.
...
(cherry picked from commit a9c540f5de
)
2009-12-04 00:09:22 -08:00
Vinson Lee
d23bb22f62
glu: Fix memory leak in __gl_meshMakeEdge.
...
(cherry picked from commit d3b4c99c70
)
2009-12-04 00:07:51 -08:00
Vinson Lee
12a440abfb
progs/xdemos: Silence unused value warnings in sharedtex_mt.c.
...
(cherry picked from commit 8556fad751
)
2009-12-04 00:04:38 -08:00
Vinson Lee
4bf96ebdae
progs/xdemos: Fix memory leak in pbdemo.c.
...
(cherry picked from commit e0857962b9
)
2009-12-04 00:03:14 -08:00
Vinson Lee
ba3fedf246
progs/xdemos: Add missing break statement in offset.c.
...
(cherry picked from commit 4ab8dbe593
)
2009-12-04 00:01:20 -08:00
Vinson Lee
8350648401
progs/xdemos: Remove duplicate code in glxinfo.c.
...
(cherry picked from commit a4720a1a32
)
2009-12-03 23:59:47 -08:00
Vinson Lee
7324c22024
progs/xdemos: Fix memory leak in glxinfo.c.
...
(cherry picked from commit f080567f4c
)
2009-12-03 23:59:11 -08:00
Vinson Lee
68d206fafa
progs/xdemos: Add assert in corender.c.
...
(cherry picked from commit 66a4ec14c3
)
2009-12-03 23:22:47 -08:00
Vinson Lee
69ed1147a8
progs/vp: Fix memory leak in vp-tris.c.
...
(cherry picked from commit 760cf71572
)
2009-12-03 23:20:18 -08:00
Vinson Lee
efb582fde7
progs/tests: Fix memory leak in texdown.c if malloc fails.
...
(cherry picked from commit e3cfd78969
)
2009-12-03 23:17:26 -08:00
Vinson Lee
b210739aad
progs/redbook: Fix memory leak in quadric.c.
...
(cherry picked from commit 47b5f584a6
)
2009-12-03 23:12:59 -08:00
Vinson Lee
b1a87a3e0b
progs/glsl: Fix memory leak in deriv.c.
...
(cherry picked from commit 0e783c7d03
)
2009-12-03 22:54:35 -08:00
Vinson Lee
25fd168f03
progs/glsl: Change tangentAttrib from GLuint to GLint in bump.c.
...
tangentAtrrib is assigned the result of glGetAttribLocation.
The assertion 'assert(tangentAtrrib >= 0)' would be a no-op if
tangentAttrib is a GLuint.
(cherry picked from commit b8dcb79c53
)
2009-12-03 22:51:43 -08:00
Vinson Lee
b803abbaad
progs/demos: Fix memory leak in ray.c.
...
(cherry picked from commit 6b480dc21d
)
2009-12-03 22:49:18 -08:00
Vinson Lee
5820dae4ec
progs/demos: Fix memory leak in projtex.c.
...
(cherry picked from commit ee555e3d69
)
2009-12-03 22:44:55 -08:00
Vinson Lee
fc5f07de1a
progs/demos: Fix memory leak in ipers.c.
...
(cherry picked from commit a1afe303de
)
2009-12-03 22:38:44 -08:00
Vinson Lee
d245a951f3
progs/demos: Fix memory leak in fslight.c.
...
(cherry picked from commit aef3218f0b
)
2009-12-03 22:36:37 -08:00
Vinson Lee
905e12f3cc
gallium/util: Initialize variables in u_pack_color.h.
...
(cherry picked from commit 36e2074b63
)
2009-12-03 17:55:59 -08:00
Vinson Lee
56de7e222e
progs/trivial: Redraw upon keypress.
...
(cherry picked from commit 9553a42f63
)
2009-12-03 17:27:24 -08:00
Vinson Lee
34a0b22a74
progs/trivial: Redraw upon keypress.
...
(cherry picked from commit 3790c6a13b
)
2009-12-03 17:25:00 -08:00
Vinson Lee
9e29242331
progs/glsl: Redraw upon keypress.
...
(cherry picked from commit 881f55236a
)
2009-12-03 17:17:24 -08:00
Vinson Lee
a0ac8fc7d8
progs/util: Exit RawImageGetData early if malloc fails.
...
Prevents a null pointer deference later on.
(cherry picked from commit e26135a744
)
2009-12-03 17:14:08 -08:00
Vinson Lee
0a6acecb35
progs/util: Fix memory leak if malloc fails in RawImageOpen.
...
(cherry picked from commit d36cb2396c
)
2009-12-03 17:08:48 -08:00
Vinson Lee
305d4f147e
progs/util: Fix memory leak if fopen fails in RawImageOpen.
...
(cherry picked from commit d9508e8df9
)
2009-12-03 17:03:26 -08:00
Vinson Lee
772e004781
progs/util: Fix memory leak if malloc fails in tkRGBImageLoad.
...
(cherry picked from commit 786d539511
)
2009-12-03 16:57:17 -08:00
Vinson Lee
f1172c4030
progs/util: Fix memory leak if LoadRGBImage fails.
...
(cherry picked from commit 041cd0e110
)
2009-12-03 16:24:03 -08:00
Vinson Lee
84de1672d3
progs/util: Fix memory if LoadRGBMipmaps2 fails.
...
(cherry picked from commit 28b8e4bcd7
)
2009-12-03 16:15:22 -08:00
Vinson Lee
4ca8e1680e
progs/util: Fix memory leak if LoadYUVImage fails.
...
(cherry picked from commit 0e790ac353
)
2009-12-03 16:03:22 -08:00
Vinson Lee
d6a993135f
progs/fp: Redraw upon keypress.
...
(cherry picked from commit cde6643724
)
2009-12-03 15:59:56 -08:00
Vinson Lee
005242f166
prog/tests: Fix MSVC build.
...
Signed-off-by: Brian Paul <brianp@vmware.com >
(cherry picked from commit 9c3197ef0a
)
2009-12-03 15:53:13 -08:00
Vinson Lee
d3208678c2
progs/tests: fix MSVC build.
...
Signed-off-by: Brian Paul <brianp@vmware.com >
(cherry picked from commit a8ed066858
)
2009-12-03 15:50:36 -08:00
Vinson Lee
97cbf4943a
progs/tests: Fix MSVC build.
...
(cherry picked from commit 50e113e375
)
2009-12-03 15:45:18 -08:00
Vinson Lee
a99bf51bc8
progs/tests: Fix MSVC build.
...
(cherry picked from commit 952bf63e2c
)
2009-12-03 15:35:10 -08:00
José Fonseca
28474e1225
progs/tests: Use rand() instead of random().
...
Forgot these on previous commit.
(cherry picked from commit 166957abeb
)
2009-12-03 15:34:38 -08:00
José Fonseca
bb6e3af939
progs/tests: Use rand() instead of random().
...
More portable. Same implementation on Linux.
(cherry picked from commit 699260b195
)
2009-12-03 15:32:45 -08:00
Vinson Lee
a38776419b
progs/tests: Fix MSVC build.
...
(cherry picked from commit f7455ad7af
)
2009-12-03 15:29:01 -08:00
Vinson Lee
791b754687
prog/tests: Fix MSVC build.
...
(cherry picked from commit 60b6c74583
)
2009-12-03 15:24:43 -08:00
Vinson Lee
89e747920f
prog/tests: Fix MSVC build.
...
(cherry picked from commit 96fd13c1a0
)
2009-12-03 15:15:12 -08:00
Vinson Lee
5a25adb646
progs/tests: fix MSVC build.
...
(cherry picked from commit 9c778a90ea
)
2009-12-03 15:11:25 -08:00
Vinson Lee
3910e88ebf
prog/tests: Fix MSVC build.
...
(cherry picked from commit ea862ec8ff
)
2009-12-03 15:05:44 -08:00
Alex Deucher
2b5618fc5b
r200: fix polygon stipple
...
fixes fdo bug 25354
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-12-03 11:20:40 -05:00
Vinson Lee
c3b7f93e02
scons: Add Mac OS to target platform list.
...
(cherry picked from commit 2c307c7750
)
2009-12-02 20:33:32 -08:00
Vinson Lee
235c0c8134
progs/vpglsl: Fix psiz-mul.glsl compilation error on Mac OS.
...
(cherry picked from commit b98db7bf69
)
2009-12-02 20:28:54 -08:00
Vinson Lee
0a107d36c2
progs/glsl: Fix trirast GLSL compilation errors on Mac OS.
...
(cherry picked from commit 4b3ec2acf2
)
2009-12-02 20:20:12 -08:00
Vinson Lee
b094683e7c
progs/glsl: Fix noise GLSL compilation error on Mac OS.
...
(cherry picked from commit 0d31990b47
)
2009-12-02 20:16:51 -08:00
Vinson Lee
592c8522a2
demos/glsl: Add missing break statement to noise test.
...
(cherry picked from commit 7dfea5c072
)
2009-12-02 20:16:41 -08:00
Vinson Lee
8f4d3613da
progs/glsl: Fix multinoise GLSL compilation errors on Mac OS.
...
(cherry picked from commit d4dc2e30da
)
2009-12-02 20:06:20 -08:00
Vinson Lee
9ed77d12b1
progs/glsl: Add missing break statement in multinoise.c.
...
(cherry picked from commit 43080e40aa
)
2009-12-02 20:06:11 -08:00
Vinson Lee
832593772d
progs/glsl: Fix mandelbrot GLSL compilation error on Mac OS.
...
(cherry picked from commit 04442841fb
)
2009-12-02 19:55:48 -08:00
Vinson Lee
2a5cd95e24
progs/glsl: Include local headers before installed headers during compilation.
...
Fixes compilation errors on platforms with insufficient older installed
GL headers.
(cherry picked from commit d17af7d1e1
)
2009-12-02 19:39:25 -08:00
Brian Paul
ccea09cd3a
progs/glsl: minor Makefile clean-ups
...
(cherry picked from commit 4df2f7af5e
)
2009-12-02 19:39:11 -08:00
Vinson Lee
67a0628ab2
progs: Ignore Mac OS dSYM directories.
...
(cherry picked from commit a420056750
)
2009-12-02 15:22:34 -08:00
Brian Paul
908a3e56cc
cell: added tex_usage param to xm_surface_buffer_create()
2009-12-02 09:31:26 -07:00
Brian Paul
ba97b98842
progs/demos: remove unused glFogCoordPointer_ext var
2009-12-01 12:23:07 -07:00
Tom Fogal
b9f4a0bd2b
Simplify hackery added to fix AIX build.
...
Borrow an idiom from the GNU build system which can handle `for'
loops over empty lists.
2009-12-01 10:27:27 -08:00
Ian Romanick
d8da270a2b
intel: Remove GL_NV_point_sprite from extension list
...
i830 does not (and cannot!) support the any of the non-default
GL_POINT_SPRITE_R_MODE_NV settings. i915 and i965 could, but
currently do not. In both cases it would require mucking about with
the fragment shader.
2009-12-01 10:25:44 -08:00
Ian Romanick
910aaed4da
mesa: set version string to 7.6.1-rc2
2009-11-30 17:55:21 -08:00
Ian Romanick
587a52e95b
i915: Actually put i915PointParameterfv in the driver function table. Duh.
2009-11-30 12:43:12 -08:00
Ian Romanick
533b766007
i915: Fallback bit define missed on previous commit
2009-11-29 17:49:55 -08:00
Ian Romanick
718f31b830
i915: Round point sizes instead of truncate.
2009-11-29 17:43:38 -08:00
Ian Romanick
d8d49716cf
i915: Enable point sprite coordinate generation
...
Support still isn't completely correct, but it's better. piglit
point-sprite now passes. However, glean's pointSprite test fails. In
that test the texture on the sprite is somehow inverted as though
GL_POINT_SPRITE_COORD_ORIGIN were set to GL_LOWER_LEFT. i915 hardware
shouldn't be able to do that!
I believe there are also problems when not all texture units have
GL_COORD_REPLACE set. The hardware enable seems to be all or nothing.
Fixes bug #25313 .
2009-11-29 17:40:02 -08:00
Ian Romanick
0528f40e3b
Improve implementation of GL_POINT_SPRITE_COORD_ORIGIN errors
...
This enum is only supported for OpenGL 2.0. If a driver supports
OpenGL 1.4 and GL_ARB_point_sprite, using this enum should generate an
error. This is important because, for example, i915 and i830 can
support GL_ARB_point_sprite, but they cannot support
GL_POINT_SPRITE_COORD_ORIGIN.
This commit just removes the check for NV_point_sprite, which is
completely wrong, and add some comments describing what the code
should do. I don't see an easy way to check for version >= 2.0 from
inside Mesa. Perhaps we should add an extension
GL_MESA_point_sprite_20 (like Intel's old GL_EXT_packed_pixels_12) to
indicate that this added bit of functionality is available.
Also note that glean's pointSprite test only checks for
GL_ARB_point_sprite before trying to use
GL_POINT_SPRITE_COORD_ORIGIN. Naturally, that fails on
non-2.0 implementations (i.e., Mac OS X on GMA 950).
2009-11-25 16:31:28 -08:00
Dave Airlie
e4c5fe52c9
radeon: fix context destroy needing lock for flushing.
...
Thanks to Intel code which I've just stolen pretty much as usual.
This fixes fdo bug 22851 which is a dri1 regression since rewrite.
Tested by: fpiobaf (Fabio) on #radeon
Signed-off-by: Dave Airlie <airlied@redhat.com >
2009-11-25 20:29:56 +10:00
Ian Romanick
b12ca6b87b
i915: Initialize Length and Offset fields when mapping a buffer object
...
This fixes an assertion failure in _mesa_MapBufferARB.
Fixes bugzilla #25253 .
2009-11-23 23:14:49 -08:00
Ian Romanick
da0883114b
shaderutil: Fix detection of shaders
...
Check for versions >= 2.0 (because some drivers return 3.0), and return
GL_FALSE if shaders are not detected.
2009-11-23 18:33:50 -08:00
Jakob Bornecrantz
a11750218f
autoconf: Fix case for not having package
...
(cherry picked from commit 5c4bdbd825
)
2009-11-23 20:09:36 +01:00
Michel Dänzer
601edbef17
Fix the DRI swrast driver for big endian platforms.
...
Too bad I didn't realize earlier how easy this could be...
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=22767 .
2009-11-23 19:56:37 +01:00
Brian Paul
3128d65fd7
docs: document fixes for AIX
2009-11-19 09:35:01 -07:00
Tom Fogal
7593bcb6ec
gl: added mangled glXGetProcAddressARB define
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-19 09:33:32 -07:00
Tom Fogal
8f24e863c3
progs: Fix quoting issue with empty set of PROGRAM_DIRS.
...
Quotes are important to make sure the argument to test -n really
is the empty string, but that requires stringifying PROGRAM_DIRS.
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-19 09:26:39 -07:00
Tom Fogal
4e6e2462ea
mesa: define 32bit byteswap for AIX.
...
Fixes `xlib' driver build on AIX.
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-19 09:18:51 -07:00
Brian Paul
5117725fd0
docs: removed VC6/7 project files
2009-11-19 09:07:34 -07:00
Brian Paul
e16b59df42
docs: update news file for 7.6.1 release
2009-11-19 09:07:17 -07:00
Brian Paul
2a1505b42e
docs: remove VC6/7 project file info
2009-11-19 09:01:48 -07:00
Brian Paul
cba614bd88
mesa: omit VC6, VC7 project files from tarballs
...
Only VC8 project file is known to work.
2009-11-19 09:00:16 -07:00
Brian Paul
3bcf2d49f3
windows: remove old VC6 project files directory
...
Very out of date, according to Karl Schultz.
2009-11-19 08:57:39 -07:00
Alex Deucher
fe5c46546e
r600: disable compressed texture support
...
It's not implemented yet. fixes fdo bug 24047
2009-11-18 11:51:20 -05:00
Alex Deucher
c5add6a468
docs: Add note about r600
2009-11-18 11:32:55 -05:00
Alex Deucher
13b5a624b1
Revert "radeon: Fix legacy bo not to reuse dma buffers before refcount is 1."
...
This reverts commit 284a7af274
.
This breaks kde desktop effects. See fdo bug 24131
2009-11-18 11:27:36 -05:00
Brian Paul
027abddf4f
mesa: set version string to 7.6.1-rc1
2009-11-18 08:08:25 -07:00
Brian Paul
d449c07b8b
xorg/st: fixup builds against later dpms headers.
...
(cherry picked from master, commit e9d6ab72be
)
2009-11-18 08:07:56 -07:00
Brian Paul
2b3ea2be90
docs: i965 clipping fix
2009-11-17 15:53:27 -07:00
Eric Anholt
514544f373
i965: Fix Ironlake shadow comparisons.
...
The cube map array index arg is always present.
2009-11-12 11:41:39 -08:00
Eric Anholt
5f305b1db9
i965: Fix VBO last-valid-offset setup on Ironlake.
...
Instead of doing math based on the (broken for VBO && offset != 0)
input->count number, just use the BO size. Fixes assertion failure in ETQW.
2009-11-12 11:41:39 -08:00
Roland Scheidegger
ab12e764ba
i965: fix EXT_provoking_vertex support
...
This didn't work for quad/quadstrips at all, and for all other primitive types
it only worked when they were unclipped.
Fix up the former in gs stage (could probably do without these changes and
instead set QuadsFollowProvokingVertexConvention to false), and the rest in
clip stage.
2009-11-11 17:57:56 -08:00
Eric Anholt
1220aba99b
i965: Fix VS constant buffer value loading.
...
Previously, we'd load linearly from ParameterValues[0] for the constants,
though ParameterValues[1] may not equal ParameterValues[0] + 4. Additionally,
the STATE_VAL type paramters didn't get updated.
Fixes piglit vp-constant-array-huge.vpfp and ET:QW object locations.
Bug #23226 .
2009-11-10 14:44:40 -08:00
Eric Anholt
e5ffb9f5ea
i965: Unalias src/dst registers for SGE and friends.
...
Fixes piglit vp-sge-alias test, and the googleearth ground shader. \o/
Bug #22228
(cherry picked from commit 56ab92bad8
)
2009-11-10 14:44:39 -08:00
Eric Anholt
23a4a6727e
i965: Allow use of PROGRAM_LOCAL constants in ARB_vp.
...
Fixes piglit arl.vp.
(cherry picked from commit d52d78b4bc
)
2009-11-10 14:44:39 -08:00
Alex Deucher
74ef3207d8
r600: don't emit htile regs
...
These are needed for HiZ which is not currently used and
the _BASE reg requires a reloc which is not currently supported
in the drm.
2009-11-09 12:27:27 -05:00
Ian Romanick
2cda507fa1
prog parse: Handle GL_VERTEX_PROGRAM_ARB in glLoadProgramNV
2009-11-07 15:54:33 -08:00
Ian Romanick
6d2ceda780
prog parse: Handle GL_VERTEX_PROGRAM_NV in glProgramStringARB
...
Handle both NV vertex programs and NV vertex state programs passed to
glProgramStringARB.
2009-11-07 15:54:33 -08:00
Ian Romanick
289db82b2d
prog parse: Handle GL_FRAGMENT_PROGRAM_ARB in glLoadProgramNV
2009-11-07 15:54:32 -08:00
Ian Romanick
7452877cf6
prog parse: Handle GL_FRAGMENT_PROGRAM_NV in glProgramStringARB
2009-11-07 15:54:32 -08:00
Ian Romanick
26d2ce0a09
GLX: Change GLX client vendor string to "Mesa Project and SGI"
...
This change allows a certain closed-source browser plug-in to work
with open-source drivers.
2009-11-06 14:52:49 -08:00
Ian Romanick
9348ac03ce
ARB prog parser: Regenerate parser from previous commits.
2009-11-06 10:46:23 -08:00
Ian Romanick
d8e256f923
ARB prog parser: Release old program string in _mesa_parse_arb_{fragment,vertex}_program
...
The program structure passed to _mesa_parse_arb_program is just a
place holder. The stings that actually need to be released are only
known to the functions calling _mesa_parse_arb_program, so they should
be freed there.
2009-11-06 10:46:22 -08:00
Ian Romanick
301a9b7e28
ARB prog parser: Release strings returned from the lexer that don't need to be kept
2009-11-06 10:46:22 -08:00
Ian Romanick
1c7337d46e
Revert "ARB prog parser: Fix epic memory leak in lexer / parser interface"
...
This reverts commit 93dae6761b
.
This change was completely broken when the parser uses multiple
strings in a single production. It would be nice if bug fixes could
initially land somewhere other than the stable branch.
2009-11-06 10:46:22 -08:00
Brian Paul
63191bd244
xmesa: pass pixmap to clip_for_xgetimage()
...
The code was assuming ctx->DrawBuffer == ctx->ReadBuffer.
Passing the pixmap is simpler and better.
Fixes a potential segfault.
2009-11-05 16:48:52 -07:00
Brian Paul
7c623905bc
mesa: added cast to silence warning
2009-11-04 17:58:43 -07:00
Brian Paul
1c3f7ab74c
vbo: fix out-of-bounds array access
...
The exec->vtx.inputs[] array was being written past its end. This was
clobbering the following vbo_exec_context::eval state. Probably not noticed
since evaluators and immediate mode rendering don't happen at the same time.
Fixed the loop in vbo_exec_vtx_init().
Changed the size of the vbo_exec_context::vtx.arrays[] array.
Added a bunch of debug-build assertions.
Issue found by Vinson Lee.
2009-11-04 17:51:28 -07:00
Brian Paul
bc4ad7c2ae
mesa: fix broken pack_histogram() case for GLhalf
2009-11-04 17:42:30 -07:00
Brian Paul
76aa0c0fd3
mesa: silence warning from gcc 4.4.1
2009-11-04 17:42:01 -07:00
Vinson Lee
60c328db2d
progs/tests: Fix MSVC build.
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-04 15:56:14 -07:00
Alan Hourihane
f1b91ccc08
Fix YTILE spantmp functions
2009-11-04 15:26:38 +00:00
Vinson Lee
51f7763c00
glslcompiler: Fix Mac OS build.
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-04 07:14:55 -07:00
Brian Paul
6eb71519f7
mesa: (GLint64) casts in get.c to silence Visual Studio warnings
...
Revised version of a patch from Karl Schultz.
2009-11-03 16:13:24 -07:00
Brian Paul
c5106339d3
docs: fix 7.6 build with Visual Studio
2009-11-03 16:12:02 -07:00
Karl Schultz
804d367a47
windows: updated VC8 project file
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-03 16:09:29 -07:00
Karl Schultz
077eb0d81c
windows: remove old entrypoints from mesa.def file
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-03 16:08:46 -07:00
Karl Schultz
e713a95c96
mesa: added GLAPIENTRY keywords for sync object functions
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-03 16:05:12 -07:00
Marek Olšák
a0cd2b7029
st/mesa: clip pixels in draw_stencil_pixels to avoid crash
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-03 09:48:04 -07:00
Brian Paul
e60ebebb39
st/mesa: don't use util_blit_pixels_writemask() for depth or depth/stencil
...
util_blit_pixels_writemask() only works for color formats at this time.
Also, it might never work for depth/stencil surfaces since we can't get
handle stencil values in a fragment shader.
Fixes glCopyTexSubImage(GL_DEPTH_COMPONENT).
2009-11-03 09:48:04 -07:00
Brian Paul
0197348641
st/mesa: fix tests for depth and depth/stencil texture formats
2009-11-03 09:48:04 -07:00
Vinson Lee
e055665752
glx: Fix memory leak if XF86DRICreateDrawable() fails
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-02 12:35:47 -07:00
Chow Loong Jin
35506dec67
Add --with-dri-searchpath argument
...
* Add an extra argument to configure which allows for specifying
different DRI driver search paths to libGL (FDO #24766 )
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com >
2009-10-30 06:00:13 -07:00
Brian Paul
02b9fb9c80
progs/tests: fixes for drawbuffers.c
...
Disable GL_DEPTH_TEST before glDrawPixels.
Show color buffer 0 on left, color buffer 1 on right.
2009-10-29 14:46:35 -06:00
Brian Paul
635ea87374
progs/tests: added test for GL_EXT_texture_compression_s3tc support
2009-10-28 21:50:51 -06:00
Vinson Lee
96128fdf2f
mesa: Fix memory leak if we run out of memory
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-10-28 17:59:49 -06:00
Vinson Lee
c0a61c8442
intel: Fix memory leak in case of renderbuffer bad format
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-10-28 13:09:44 -06:00
Brian Paul
0219cd0961
mesa: remove unneeded #includes
2009-10-28 11:13:21 -06:00
Brian Paul
5e3b2baae7
mesa: include imports.h to silence warning
2009-10-28 11:11:30 -06:00
Vinson Lee
a7d0665c00
intel: Fix memory leak in event of mip tree allocation failure
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-10-28 11:10:14 -06:00
Ian Romanick
93dae6761b
ARB prog parser: Fix epic memory leak in lexer / parser interface
...
Anything that matched IDENTIFIER was strdup'ed and returned to the
parser. However, almost every case of IDENTIFIER in the parser just
dropped the returned string on the floor. Every swizzle string, every
option string, every use of a variable, etc. leaked memory.
Create a temporary buffer in the parser state (string_dumpster and
dumpster_size). Return strings from the lexer to the parser in the
buffer. Grow the buffer as needed. When the parser needs to keep a
string (i.e., delcaring a new variable), let it make a copy then.
The only leak that valgrind now detects is /occasionally/ the copy of
the program string in gl_program::String is leaked. I'm not seeing
how. :(
2009-10-27 17:06:18 -07:00
Ian Romanick
8df9587d68
ARB prog parser: Don't leak program string
...
The program string is kept in the program object. On the second call
into glProgramStringARB the previous kept string would be leaked.
2009-10-27 17:06:18 -07:00
Ian Romanick
0f255d1956
ARB prog parser: Don't leak symbol table header structures
2009-10-27 17:06:18 -07:00
Eric Anholt
2643a7ba29
intel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).
...
Bug #24435
(cherry picked from commit d56125a298
)
2009-10-27 16:59:03 -07:00
Brian Paul
b7eea8c616
intel: added region draw_x/y offsets in x/y_tile_swizzle() funcs
...
This fixes the second part of bug 23552.
2009-10-27 17:35:30 -06:00
Brian Paul
498fcfd315
progs/tests: added new blitfb.c test
...
Tests glBlitFramebuffer() between two texture/renderbuffer surfaces.
In particular, blit from level[1] of a cube map face to a 2D texture.
Used to find/fix bug in intel do_copy_texsubimage().
See commit aef1ab1073f3e30d699b99dae17518ed48b57c72
2009-10-27 16:46:20 -06:00
Brian Paul
22575abdec
intel: fix src offset bug in do_copy_texsubimage()
...
Use src->draw_offset intead of zero. Zero usually worked, except when
the src renderbuffer is actually a texture mipmap level higher than zero.
Fixes progs/test/blitfb.c test.
2009-10-27 16:46:20 -06:00
Brian Paul
517ae7a3b6
glsl: fix memory leak
...
A slightly modified version of a patch from Vinson Lee.
2009-10-27 16:29:15 -06:00
Eric Anholt
70b17db918
i915: Fix driver for the miptree x/y offset changes.
...
Bug #24734 .
2009-10-27 10:27:15 -07:00
Brian Paul
43dc91f8bb
i965: be clear that the Fallback field is a boolean, not a bitfield
2009-10-27 09:31:53 -06:00
Brian Paul
f9e334cb32
Revert "i965: fix hacked Fallback usage in brw_prepare_vertices()"
...
This reverts commit 8810b8f671
.
It turns out the i965 driver uses the intel->Fallback field as a boolean,
not as a bitmask. The intelFallback() function is a no-op in the i965
driver. It would have been nice if there were some comments about this.
I'll fix that next...
2009-10-27 09:31:53 -06:00
Vinson Lee
42732611d3
draw: Fix memory leak.
...
This would only be hit if we got and invalid index_size.
2009-10-27 09:14:29 -06:00
Brian Paul
0a47631849
docs: document Intel glBitmap fixes
2009-10-26 10:58:47 -06:00
Brian Paul
48dad9c93f
intel: fix GL state bugs in intel_texture_bitmap()
...
Need to push texture state and polygon state too.
Fixes rendering glitches seen in progs/demos/engine when changing
the rendering mode (wireframe, texture modes).
This makes bitmap rendering a little slower, unfortunately.
2009-10-26 10:44:22 -06:00
Brian Paul
dc8b139aa2
mesa: remove FBO texture depth/stencil test
...
The texture format should not be checked until validation time since
the format might be changed by a subsequent glTexImage() call.
2009-10-23 18:22:41 -06:00
Brian Paul
0acb057ad1
mesa: fix broken _mesa_str_checksum()
2009-10-23 16:36:15 -06:00
Eric Anholt
2d17dbfb53
intel: Keep track of x,y offsets in miptrees and use them for blitting.
...
By just using offsets, we confused the hardware's tiling calculations,
resulting in failures in miptree validation and blit clears.
Fixes piglit fbo-clearmipmap.
Bug #23552 . (automatic mipmap generation)
2009-10-23 14:12:24 -07:00
Brian Paul
b01937a3c9
progs/tests: print requested/internal format info
2009-10-23 14:52:10 -06:00
Brian Paul
96d7d66dff
docs: document updated GL extension header files
2009-10-23 14:49:47 -06:00
Brian Paul
5c0dc902e7
gl: updated wglext.h to version 17
2009-10-23 14:49:26 -06:00
Brian Paul
559da98c2b
gl: updated glxext.h to version 25
2009-10-23 14:49:26 -06:00
Brian Paul
9df9696f6d
gl: updated glext.h to version 56
2009-10-23 14:49:20 -06:00
Brian Paul
ff3f09a7fe
docs: document cell, glGetTexLevelParameter() fixes
2009-10-23 14:45:44 -06:00
Brian Paul
cd62b4f00a
mesa: fix GL_TEXTURE_INTERNAL_FORMAT query for compressed formats
...
Need to return the actual compressed format when the user originally
requested a generic compressed format.
2009-10-23 14:45:44 -06:00
Brian Paul
9528dc6ed8
mesa: added _mesa_compressed_format_to_glenum()
...
Maps a compressed MESA_FORMAT_x to correspding GLenum. Needed for
querying a texture's actual format when a generic format was originally
requested.
2009-10-23 14:45:44 -06:00
Brian Paul
5e4f5e41a4
mesa: change s3tc vs. fxt1 priority when choosing compressed formats
2009-10-23 14:45:44 -06:00
Ian Romanick
dd24501665
ARB prog parser: Fix parameter array size comparison
...
Array indexes are invalid when >= the maximum, but array sizes are
only in valid when > the maximum. This prevented programs from
declaring a single maximum size array.
See the piglit vp-max-array test.
2009-10-22 19:20:15 -07:00
Brian Paul
55058652b8
intel: flush old context before binding new context
...
Per the GLX spec, when changing rendering contexts, the old context
should first be flushed.
2009-10-22 18:33:26 -06:00
Brian Paul
5e6a6a2719
glx: don't destroy context immediately if it's currently bound
...
According to the GLXDestroyContext() man page, the context should not
immediately be destroyed if it's bound to some thread. Wait until it's
unbound to really delete it. The code for doing the later part is
already present in MakeContextCurrent() so no change was needed there.
2009-10-22 18:20:28 -06:00
Brian Paul
4837e01bcd
mesa: code refactoring- new _mesa_finish(), _mesa_flush()
2009-10-22 18:16:10 -06:00
Brian Paul
61a96a2ac7
progs/xdemos: fix command line flag typo
2009-10-22 17:11:59 -06:00
Brian Paul
8810b8f671
i965: fix hacked Fallback usage in brw_prepare_vertices()
...
Setting intel->Fallback = 1 clobbered any fallback state that was already
set. Not sure where this hack originated (the git history is a little
convoluted). Define and use a new BRW_FALLBACK_DRAW bit instead. This
shouldn't break anything and could potentially fix some bugs (but no
specific ones are known).
2009-10-22 16:52:59 -06:00
Brian Paul
c24466c34e
intel: define INTEL_FALLBACK_DRIVER for drivers
2009-10-22 16:52:59 -06:00
Brian Paul
ea659f8917
intel: Fallback field is a bitmask, use GLbitfield
2009-10-22 16:52:59 -06:00
Brian Paul
f9bbbe5803
i965: remove unused brw_context::tmp_fallback field
2009-10-22 16:52:59 -06:00
Brian Paul
2f7abf5c04
i965: remove unused BRW_FALLBACK_TEXTURE bit
...
The value was probably wrong too.
It was the same as INTEL_FALLBACK_DRAW_BUFFER.
2009-10-22 16:52:59 -06:00
Andre Maasikas
869e20bcb7
r600: set barrier for tex inst if dst is used earlier, might overwrite it otherwise
2009-10-22 09:45:11 +03:00
Andre Maasikas
a88c9296cb
r600: need to export something from PS
...
Also avoids empty shader for "END" - seems to be somewhat valid fp
Maybe this can be done differently in the future (fake FRAG_RESULT_COLOR
already in Map_Fragment_Program() or is there a way to program the chip
to not hang in case of no exports.
2009-10-22 09:44:03 +03:00
Andre Maasikas
b86302283b
r600: add beginnings of ARL instruction
2009-10-22 09:42:42 +03:00
Brian Paul
5283a3fb25
progs/trivial: check if GL_ARB_occlusion_query is supported
2009-10-20 16:22:03 -06:00
Marc Dietrich
4b2cf92ad9
cell: fix compilation on cell
...
s/LERP/LRP/
2009-10-20 11:17:12 -06:00
Vinson Lee
ca940a73a7
mesa: Fix Mac OS build.
...
strtod_l needs the xlocale.h header on Mac OS. It's possible other
non-Linux OSes would need this header too.
2009-10-20 10:43:49 -06:00
Mathias Fröhlich
16e21191e2
r300: fix texture size handling with size > 2048
...
The in kernel texture check fails because of both
bit11 flags being set on 16x16 textures. It tuns out
that these bits are still set and not cleared in the
pp_txpitch field of the texture. The attached patch
at least helps for this case on my machine. It clears
the bit 11 from the pitch field if the texture is smaller
and masks out that hight bits on the conventional width
and height field.
Fixes bug 24584
2009-10-19 11:47:21 -04:00
Robert Noland
8123180ea6
r600: Fix size calculation for 24 bit depth
...
size was being calculated based on 3 bytes per pixel with 24 bit depth
instead of 4 bytes. This caused corruption in the bottom 25% of objects.
This finishes fixing the menu/text corruption in compiz/kde4.
Signed-off-by: Robert Noland <rnoland@2hip.net >
2009-10-19 11:09:10 -04:00
Maciej Cencora
3594b53c01
r300: fix vertex program parameters limits
2009-10-16 20:21:17 +02:00
Brian Paul
946bc9aa42
docs: document GLSL float parsing bug fix
2009-10-16 07:38:39 -06:00
Brian Paul
89b31c9619
mesa: use C locale for _mesa_strtod()
...
_mesa_strtod() is used for shader/program parsing where the decimal
point character is always '.' Use strtod_l() with a "C" locale to
ensure correct string->double conversion when the actual locale uses
another character such as ',' for the decimal point.
Fixes bug 24531.
2009-10-16 07:36:50 -06:00
Owen Taylor
3f30b0709b
Use the right pitch when rendering to a texture
...
We need to get the pitch from the texture level we are rendering to,
rather than just using the base texel width.
2009-10-15 11:33:08 -04:00
Robert Noland
16c6a3b71e
r600: FRAG_ATTRIB_WPOS and FRAG_ATTRIB_FOGC appear to be supported.
...
Report unsupported attributes while I'm here.
Signed-off-by: Robert Noland <rnoland@2hip.net >
2009-10-15 11:29:52 -04:00
Robert Noland
a176b1c5d8
r600: cleanup in r600_cs_process_relocs().
...
Signed-off-by: Robert Noland <rnoland@2hip.net >
2009-10-15 11:29:45 -04:00
Robert Noland
e5d6450c2c
radeon: return EINVAL for 0 length buffers.
...
Signed-off-by: Robert Noland <rnoland@2hip.net >
2009-10-15 11:29:35 -04:00
Andre Maasikas
22a0029a68
r600: fix tfp1 bo size
...
Setting the wrong bo size resulting in an incomplete
read cache flush when reading the texture. This fixes the
compiz text corruption.
[agd5f: take hw pitch alignment into account]
2009-10-15 11:24:49 -04:00
Andre Maasikas
a3fec14101
r600: implement ProgramStringNotify
...
need this to properly test with piglit/glean vert/fragprog tests
copied mostly from r300, many thanks to osiris, nha, airlied, others...
2009-10-15 11:22:18 -04:00
Andre Maasikas
606becc7f3
r600: LIT dst.y gets value from src.x
...
seems I overlooked this when removing hardcoded swizzles for this
one previously
2009-10-15 11:21:15 -04:00
Andre Maasikas
74c31e5d05
r600: DPH adds w comp of second operand, so set first one to 1 instead
2009-10-15 11:20:04 -04:00
Andre Maasikas
95851d8cb2
r600: fixup KIL instruction a bit
...
- KILLGT takes 2 arguments
- arb KIL has no dst register
- add TODO about clause ending but currently piglit fp-kil passes and
does not hang the card
2009-10-15 11:18:53 -04:00
Andre Maasikas
bf68e54a4d
r600: use CB_TARGET_MASK instead of CB_SHADER_MASK for setting color mask
...
makes blend functions work better
Signed-off-by: Dave Airlie <airlied@linux.ie >
2009-10-15 11:17:09 -04:00
Andre Maasikas
5101215a64
r600: user correct alpha blend factor
...
Signed-off-by: Dave Airlie <airlied@linux.ie >
2009-10-15 11:16:53 -04:00
Andre Maasikas
f7285bdffc
r600: clear position enable bit when when wpos is not used by FP
...
Makes doom3 alot nicer..
2009-10-15 11:16:41 -04:00
Brian Paul
6f8b4d9e36
mesa: regenerated lex.yy.c w/ _mesa_strtod()
2009-10-15 08:59:13 -06:00
Neil Roberts
269f16cd96
mesa: Use _mesa_strtod in the lexer for assembly shaders
...
See bug 24531.
2009-10-15 08:57:07 -06:00
Brian Paul
31f7e8efb2
progs/Makefile: remove extra quoting
...
This reverts part of commit 115edf24a9
and
fixes the error: "/bin/sh: line 0: test: too many arguments".
2009-10-14 09:37:53 -06:00
Tom Fogal
115edf24a9
Fix build when PROGRAM_DIRS is empty.
...
SUBDIRS just takes PROGRAM_DIRS value. If PROGRAM_DIRS gets set
to the empty string (as can happen when building only OSMesa), a
'for' loop will lack anything to iterate over, causing a parse
error.
This fixes the issue by making sure SUBDIRS is the null string
when PROGRAM_DIRS is, and wrapping the for loops in if's, causing
them only to execute if there are directories to iterate over.
2009-10-13 16:22:09 -06:00
Tom Fogal
9282edfaa0
ac: Fix AIX shared library builds.
...
AIX uses ".a" for both static and shared library extensions.
2009-10-13 16:22:06 -06:00
Eric Anholt
f3be27c0cf
i965: Fix the last valid address setting for the index buffer.
...
Again, last valid address, not first invalid address. Fixes regression
in 255e5be265
that the kernel now catches
and caused piglit draw_elements_base_vertex to fail.
2009-10-11 11:21:03 -07:00
Eric Anholt
a82da7fa26
i965: Fix the bounds emitted in the vertex buffer packets.
...
It's the address of the last valid byte, not the address of the first
invalid byte.
This should also fix problems with rendering with the new sanity checks in
the kernel.
2009-10-11 11:21:03 -07:00
Brian Paul
768481ed40
softpipe: revert 564df9dc5f
...
This change silenced valgrind warnings but broke progs/tests/drawbuffers.
The problem is we don't know the surface's state when we start caching it
(it may or may not be initialized/cleared/etc). So "clearing" it here was
presumptuous. Leaving the code in place (but disabled) for reference and
when using valgrind.
Fixes bug 24401
2009-10-10 09:18:14 -06:00
Alex Deucher
194ede4bf9
radeon: fix scissor regression
...
fixes fdo bug 24248
2009-10-09 15:44:32 -04:00
Brian Paul
2738681e84
docs: fix aux buffer bug 24426
2009-10-09 13:23:07 -06:00
Brian Paul
6164f1fe79
st/mesa: create aux buffers according to visual
...
Fixes bug 24426 for gallium.
2009-10-09 13:22:15 -06:00
Brian Paul
ce64e063a8
mesa: fix incorrect assertion in _mesa_add_aux_renderbuffers()
...
Fixes bug 24426.
2009-10-09 13:22:00 -06:00
Brian Paul
f7fb30f03b
mesa: regenerated gl_mangle.h file
2009-10-08 09:19:42 -06:00
Brian Paul
ee3fbe7067
gallium/xlib: call XQueryExtension() in glXQueryExtension()
...
See bug 24321.
2009-10-07 14:43:27 -06:00
Brian Paul
9f002e4aaa
mesa/xlib: call XQueryExtension() in glXQueryExtension()
...
See bug 24321.
2009-10-07 14:42:16 -06:00
Brian Paul
7dd2c0afd6
mesa: don't need to free textures, VBOs, etc. in _mesa_meta_free()
...
They're freed by the normal context deallocation code.
Fixes Blender crash, bug 24185.
2009-10-07 14:07:49 -06:00
Nicolai Hähnle
9fde81bb20
shader_api: Fix bounds checking of glUniform and glUniformMatrix
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2009-10-07 20:36:23 +02:00
Nicolai Hähnle
ae351599f1
prog_parameter: Document the fact that Size may be > 4
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-07 20:33:55 +02:00
Brian Paul
cdcd9da480
docs: fix glXQueryDrawable() bugs
2009-10-07 09:41:38 -06:00
Brian Paul
c3eef6021a
mesa/xlib: fix glXQueryDrawable() bugs, see bug 24320
2009-10-07 09:41:38 -06:00
Brian Paul
0526100a5c
gallium/xlib: fix glXQueryDrawable() bugs, see bug 24320
2009-10-07 09:41:38 -06:00
Brian Paul
f36425b569
progs/xdemos: test glXQueryDrawable()
2009-10-07 09:41:38 -06:00
Brian Paul
846a6b0695
progs/xdemos: fix swapped parameters to CreatePbuffer()
2009-10-07 09:41:38 -06:00
Brian Paul
edbaa717b4
swrast: s/GLfloat/GLuint/ in bzero()
2009-10-07 08:07:53 -06:00
Brian Paul
14f21c7850
swrast: add missing returns
2009-10-07 08:05:28 -06:00
Vinson Lee
4b3cbecb3a
progs/test: Fix MSVC build.
2009-10-07 07:54:31 -06:00
Brian Paul
e3fff3daf0
mesa/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
...
A little better than leaving the values undefined, I think.
See bug 24321.
2009-10-07 07:45:59 -06:00
Brian Paul
f9904edf53
gallium/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
...
A little better than leaving the values undefined, I think.
See bug 24321.
2009-10-07 07:45:59 -06:00
Brian Paul
79892e7976
intel: use driReadDrawable in do_copy_texsubimage()
2009-10-05 14:26:16 -06:00
Brian Paul
3b7ec94c0d
intel: use driReadDrawable, not driDrawable in do_blit_readpixels()
2009-10-05 14:25:36 -06:00
Brian Paul
3b29dcbb5e
intel: remove a buffer equality test in _mesa_make_current()
...
Before, if we called glXMakeCurrent() to change a context's window binding
while an FBO was bound, we weren't updating the intel->driDrawable and
intel->driReadDrawable fields. This could cause us to dereference a null
pointer elsewhere.
2009-10-05 14:07:29 -06:00
Brian Paul
a8768bbc9d
mesa: fix return value when clipping {Read,Draw}Pixels height <= 0
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
(cherry picked from master, commit 7aeaca33c3
)
2009-10-05 11:10:31 -06:00
Jon TURNEY
a15d9ca9cc
Fix building of GLSL demos which use M_PI
...
Some <math.h> files do not define M_PI, in which case, provide our own definition
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk >
2009-10-05 11:07:23 -06:00
Michel Dänzer
43750f1575
Use _mesa_select_tex_image() rather than hardcoding face 0.
...
Fixes crash loading a map in sauerbraten with
hwmipmap 1
in ~/.sauerbraten/config.cfg.
2009-10-05 12:31:51 +02:00
Frederic Crozat
3856c3cc46
r200: remove subpixel offset from viewport
...
Fixes bug fdo 20340 for r200.
2009-10-04 17:50:16 -04:00
Nicolai Hähnle
bbe384c86a
r300: Workaround problem on R500 with very large fragment programs
...
The non-KMS interface is to blame here. In theory, a proper fix
could be produced that works for the KMS interface only, but it
require cleaning a lot of mess. Easier to just do it right in r300g.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-03 01:39:13 +02:00
Brian Paul
c01a77d304
docs: document default texture binding fix
2009-10-02 09:58:16 -06:00
Brian Paul
e1bddd159f
mesa: fix incorrect default texture binding in unbind_texobj_from_texunits()
...
If we deleted a currently bound texture, we were always reverting the texture
binding to the default 1D texture rather than the proper default texture.
2009-10-02 09:57:00 -06:00
Brian Paul
85ee0ef9a7
gallium/xlib: use bitwise-and to test GLX_RGBA_BIT in choose_visual()
...
The parameter is a bitmask.
2009-10-02 07:52:29 -06:00
Brian Paul
584b0879ac
xlib: use bitwise-and to test GLX_RGBA_BIT in choose_visual()
...
The parameter is a bitmask.
2009-10-02 07:51:19 -06:00
Brian Paul
abc12d0636
gallium/xlib: return GLX_RGBA_BIT or GLX_COLOR_INDEX_BIT in get_config()
...
This reverts part of commit a6b84aef4a
2009-10-02 07:47:49 -06:00
Brian Paul
389021220d
gallium: replace // comments with /* */
2009-10-02 07:31:42 -06:00
Brian Paul
337480e1f8
gallium: remove // comment and extra whitespace
2009-10-02 07:26:28 -06:00
Brian Paul
167ffa9e03
mesa: fix memory leak when generating mipmaps for compressed textures
2009-10-01 14:55:13 -06:00
Brian Paul
0574954238
mesa: fix mem leaks
2009-10-01 14:52:28 -06:00
Brian Paul
0f291f2efe
gallium/util: silence uninitialized var warning
2009-10-01 14:52:10 -06:00
Brian Paul
63064cf7c3
mesa: add missing return when out of memory
2009-10-01 14:51:43 -06:00
Brian Paul
7b568614a2
mesa: fix potential uninitialized memory reads
2009-10-01 14:51:26 -06:00
Brian Paul
9b27a0d063
glsl: fix mem leak
2009-10-01 14:50:45 -06:00
Brian Paul
b3e41e0d5e
st/mesa: check for null before asserts, fix possible mem leak
2009-10-01 14:49:39 -06:00
Brian Paul
b154497bef
st/mesa: silence hidden parameter warning
2009-10-01 14:49:04 -06:00
Brian Paul
495628bc5c
st/mesa: fix non-mipmap lastLevel calculation.
...
reviewed by Brian Paul.
(cherry picked from master, commit ae2daacbac
)
2009-10-01 13:34:49 -06:00
Vinson Lee
18883cdf23
mesa: Return -FLT_MAX instead of 0 for LG2(0).
...
lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0
for LG2(0).
2009-10-01 13:33:20 -06:00
Brian Paul
521e4b9b7e
glx: fix glXQueryContext(GLX_RENDER_TYPE)
...
The renderType parameter to CreateContext() was never used. Also, it
was often passed as zero. Now when it's zero we check if the context
is RGBA or CI mode and set it accordingly.
Fixes bug 24211.
2009-09-30 15:15:10 -06:00
Eric Anholt
49fbdd18ed
i965: Fix massive memory allocation for streaming texture usage.
...
Once we've freed a miptree, we won't see any more state cache requests
that would hit the things that pointed at it until we've let the miptree
get released back into the BO cache to be reused. By leaving those
surface state and binding table pointers that pointed at it around, we
would end up with up to (500 * texture size) in memory uselessly consumed
by the state cache.
Bug #20057
Bug #23530
2009-09-30 11:27:27 -07:00
Brian Paul
b77469871a
docs: document GLSL sqrt(0) fix
2009-09-29 19:05:04 -06:00
Brian Paul
322bc403bc
glsl: regenerated file
2009-09-29 18:59:37 -06:00
Brian Paul
65765c9f2c
glsl: rewrite sqrt(x) intrinsic to handle x=0
...
Since sqrt() is basically implemented in terms of RSQ/RCP we'll do a
divide by zero if x=0 and wind up with unpredictable results.
Now use CMP instruction to test for x<=0 and return zero in that case.
2009-09-29 18:57:13 -06:00
Brian Paul
3c794e45b0
glsl: add support for CMP instruction
2009-09-29 18:51:49 -06:00
Brian Paul
5f1faf4a21
docs: fixed glXQueryContext(GLX_RENDER_TYPE)
2009-09-29 12:18:41 -06:00
Brian Paul
a6b84aef4a
gallium/xlib: fix GLX_RENDER_TYPE query
...
Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.
2009-09-29 12:17:20 -06:00
Brian Paul
86ee448047
mesa/xlib: fix GLX_RENDER_TYPE query
...
Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.
2009-09-29 12:16:20 -06:00
Brian Paul
ef9cd84521
glx: indentation fixes
2009-09-29 09:58:47 -06:00
Brian Paul
69a3043f41
mesa: bump version to 7.6.1
2009-09-29 09:36:06 -06:00
Brian Paul
2d400d43bf
docs: initial 7.6.1 release notes
2009-09-29 09:34:47 -06:00
Brian Paul
9b5541617f
mesa: work-around glXCopyContext() bug in _mesa_copy_texture_state()
...
See bug 24217.
2009-09-29 09:32:40 -06:00
Brian Paul
564df9dc5f
softpipe: initialize the clear_flags bitvector in sp_create_tile_cache()
...
This silences tons of valgrind warnings in programs that don't call
glClear(), such as progs/demos/gamma.
2009-09-29 08:51:00 -06:00
Brian Paul
fbddc75aa2
softpipe: Grab a ref when the fb is set.
...
Nasty bug when the surface is freed and another is allocated right on
top of it. The next time we set the fb state SP thinks it's the same
surface and doesn't flush, and when the flush eventually happens the
surface belongs to a completely different texture.
(cherry picked from commit a77226071f
)
Conflicts:
src/gallium/drivers/softpipe/sp_context.c
2009-09-29 08:21:54 -06:00
Brian Paul
6829ef7460
docs: update news.html file with 7.5.2 and 7.6 release
2009-09-28 13:20:15 -06:00
Ian Romanick
d39fd9f641
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
...
Conflicts:
src/mesa/main/version.h
2009-09-28 12:02:39 -07:00
Ian Romanick
18f3afbe88
docs: 7.5.2 md5 sums
2009-09-28 11:41:23 -07:00
Ian Romanick
b807d49f18
Prep for 7.5.2 release
2009-09-28 11:33:52 -07:00
Ian Romanick
86cd188f94
docs: 7.6 md5 sums
2009-09-28 11:29:25 -07:00
Ian Romanick
f0dc378705
Prep for 7.6 release
2009-09-28 11:22:54 -07:00
Brian Paul
eeb7e04da6
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
2009-09-28 09:59:59 -06:00
Robert Noland
d09941c8cc
Fix build on non GLIBC platforms (FreeBSD at least)
...
Build was broken by commit 9666529b5a
I'm not certain that this is entirely the correct fix since the demo
from bug #23774 seemed to work before the commit that broke the build.
Signed-off-by: Robert Noland <rnoland@2hip.net >
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-09-28 09:48:45 -06:00
Brian Paul
fc613848e6
docs: list additional 7.5.2 bug fixes
2009-09-28 09:43:42 -06:00
Brian Paul
c7d0f0b46c
docs: document gallium mipmap generation fix
2009-09-28 09:38:50 -06:00
Brian Paul
c7fddaf612
st/mesa: fix st_generate_mipmap() issues
...
The main issue is we didn't always have a gallium texture object with
enough space to store the to-be-generated mipmap levels. When that's
the case, allocate a new gallium texture and use st_texure_finalize()
to copy images from the old texture to the new one.
We also had the baseLevel parameter to st_render_mipmap() wrong.
2009-09-28 09:37:16 -06:00
Brian Paul
e3a6f57ad6
st/mesa: fix/simplify st_texture_object::lastLevel calculation
...
Don't compute the st_texture_object::lastLevel field based on the texture
filters. Use the _MaxLevel value that core Mesa computes for us.
When called from the GenerateMipmap path, we'll use the lastLevel field
as-is.
2009-09-28 09:35:08 -06:00
Brian Paul
41d0606b7f
gallium/util: add sanity check assertions
2009-09-28 09:35:04 -06:00
Michel Dänzer
151e0c0aea
intel: Handle GL_RGB8 for glCopyTex(Sub)Image.
...
Avoids an unnecessary fallback.
2009-09-25 21:00:28 +02:00
Vinson Lee
46da1f2c9b
mesa: move declaration before code
2009-09-25 08:51:57 -06:00
Eric Anholt
126d62edd1
i915: Fix GetBufferSubData in the case of a system-memory BO.
...
Bug #23760 (crashes in wine)
2009-09-24 20:04:42 -07:00