Compare commits

..

49 Commits

Author SHA1 Message Date
Brice Goglin
7f8952d242 Prepare Changelog for upload 2009-12-11 18:36:40 +01:00
Brice Goglin
adae195cc1 Drop 07_sparc64_xform_asm.patch, applied upstream 2009-12-11 18:36:25 +01:00
Brice Goglin
3fa885911b New upstream release candidate 2009-12-11 18:33:34 +01:00
Brice Goglin
ebf57c6202 Merge branch 'mesa_7_6_branch' of git://anongit.freedesktop.org/mesa/mesa into debian-unstable
Conflicts:
	progs/tests/Makefile
	progs/tests/prog_parameter.c
2009-12-11 18:31:38 +01: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
Brice Goglin
1f47135544 Build r600_dri.so 2009-12-11 15:54:32 +01:00
Brice Goglin
ac180fa6a7 fix sparc64 FTBFS 2009-12-11 07:52:39 +01: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
33 changed files with 494 additions and 86 deletions

325
ChangeLog
View File

@@ -1,3 +1,328 @@
commit 7d41b4248bee1d926646ef5fdff07da4f9026589
Author: Brian Paul <brianp@vmware.com>
Date: Fri Dec 11 09:41:34 2009 -0700
docs: updated 7.6.1 relnotes with GLSL fixes
commit d8f8eca9efaf2f537cf9218e4dd1d742e19ffc76
Author: Brian Paul <brianp@vmware.com>
Date: Fri Dec 11 09:40:33 2009 -0700
mesa: remove unnecessary loop in _mesa_remove_output_reads()
commit 5076a4f53a2f34cc9116b45951037f639885c7a1
Author: Brian Paul <brianp@vmware.com>
Date: Fri Dec 11 09:16:25 2009 -0700
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.
commit f7f1211b9b0a8fa0e5f5427b74b4eee4dabf65af
Author: Aurelien Jarno <aurel32@debian.org>
Date: Fri Dec 11 08:46:54 2009 -0700
sparc: additional preprocessor test for SPARC 64-bit
commit 94fba49be97008565c0225bc46894bfd9453bb5e
Author: Vinson Lee <vlee@vmware.com>
Date: Thu Dec 10 18:51:51 2009 -0800
mesa: Initialize variable in MatchInstruction.
commit e31df54754e2305b7cc7072053bf5a4e0b477fd6
Author: Vinson Lee <vlee@vmware.com>
Date: Thu Dec 10 18:32:33 2009 -0800
mesa: Assign _mesa_lookup_parameter_index return value to GLint.
commit cb1dcb55f9884431a5e2b90e9208b42558a95611
Author: Vinson Lee <vlee@vmware.com>
Date: Thu Dec 10 18:21:59 2009 -0800
i915: Add missing break statement in i915_debug_packet.
commit d38ffed5236adf3ee83c0bc5bdee0233ce566e01
Author: Vinson Lee <vlee@vmware.com>
Date: Thu Dec 10 17:50:35 2009 -0800
glsl: Increase size of array in_slang_lookup_constant from 4 to 16.
For some cases, _mesa_GetIntegerv reads up to params[15].
commit 1cf60c981091d7a46cb404fd607f85553c427761
Author: Vinson Lee <vlee@vmware.com>
Date: Thu Dec 10 15:41:13 2009 -0800
progs/samples: Byte swap individual members of struct _rawImageRec.
commit bc0509bba8cc962a4ee2dafd684e153b3060262d
Author: Vinson Lee <vlee@vmware.com>
Date: Thu Dec 10 13:24:15 2009 -0800
progs/util: Byte swap individual members of struct _rawImageRec.
commit 51f52edaf186a927a2c8c29ba9dba56d18928a7e
Author: Vinson Lee <vlee@vmware.com>
Date: Thu Dec 10 12:37:10 2009 -0800
glsl: Fix array out-of-bounds access by _slang_lookup_constant.
commit dcb4a37fc89924192d923ed6906d2922371b8cb1
Author: Vinson Lee <vlee@vmware.com>
Date: Thu Dec 10 12:11:09 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_TexParameteriv.
commit b82757880545f8bce471ba8f13c16998888cd4b5
Author: Vinson Lee <vlee@vmware.com>
Date: Wed Dec 9 17:59:23 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_TexGend.
_mesa_TexGend calls _mesa_TexGenfv, which uses the params argument
as an array.
commit 444d1f39108ab4419843f19f76c968cef3398bab
Author: Vinson Lee <vlee@vmware.com>
Date: Wed Dec 9 17:34:50 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_Lighti.
_mesa_Lighti calls _mesa_Lightiv, which uses the params argument
as an array.
commit 34528a34c446afea4442f479713e7f926220f128
Author: Vinson Lee <vlee@vmware.com>
Date: Wed Dec 9 17:11:30 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_Lightf.
commit 348883076bd213ec733a1ba2a4768788e4669c97
Author: Vinson Lee <vlee@vmware.com>
Date: Wed Dec 9 13:15:05 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_PointParameteri.
_mesa_PointParameteri calls _mesa_PointParameterfv, which uses the
params argument as an array.
commit 6f2d51b81ff907af9727e90153a46e79e246fc66
Author: Vinson Lee <vlee@vmware.com>
Date: Wed Dec 9 13:00:22 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_PointParameterf.
_mesa_PointParameterf calls _mesa_PointParameterfv, which uses the
params argument as an array.
commit 637970aefdcdd1ee50e3759de384b82e6109a45c
Author: Vinson Lee <vlee@vmware.com>
Date: Wed Dec 9 12:43:28 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_LightModelf.
_mesa_LightModelf calls _mesa_LightModelfv, which uses the
params argument as an array.
commit a082d965de228d5035e59245df528af62761652a
Author: Vinson Lee <vlee@vmware.com>
Date: Wed Dec 9 11:26:24 2009 -0800
glsl: Remove unused member x from struct slang_operation.
commit 3de8fff45d04fd7e702cd656ba97cafd348c3981
Author: Brian Paul <brianp@vmware.com>
Date: Wed Dec 9 08:30:01 2009 -0700
mesa: fix baseLevel >= MAX_TEXTURE_LEVELS test
This fixes invalid array indexing when baseLevel == MAX_TEXTURE_LEVELS.
See bug 25528.
commit 33a120e4761a661736ea64a3efc2e3831ac5600a
Author: Andre Maasikas <amaasikas@gmail.com>
Date: Wed Dec 9 10:51:52 2009 +0200
r600: fix state size prediction after dc0777d3
commit af16c822a5af8ce0aa7582e8ea44315b62b7356b
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Dec 8 18:26:05 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_LightModeli.
_mesa_LightModeli calls _mesa_LightModeliv, which uses the
params argument as an array.
commit d33bf38d63d233f6a09115acfff230c464d3ee29
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Dec 8 17:51:07 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_Fogf.
_mesa_Fogf calls _mesa_Fogfv, which uses the params argument
as an array.
commit 3f7c2ac2798b385bed97b6931a1568a7e0223a0a
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Dec 8 17:25:05 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.
_mesa_TexParameteri calls set_tex_parameteri, which uses the
params argument as an array.
commit 7f146b38240e1c4efa6d8d0a4e5a0c8346706de5
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Dec 8 16:04:33 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_Fogi.
_mesa_Fogi calls _mesa_Fogfv, which uses the params argument
as an array.
commit a1d46fbea0b40d7edc668ea5993ea4318f37c9f9
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Dec 8 15:42:13 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.
_mesa_TexParameteri calls set_tex_parameterf, which uses the
params argument as an array.
commit d88f3b946804f9a3e8cad4f8896e6be488fec2b5
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Dec 8 14:31:38 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_TexParameterfv.
_mesa_TexParameterfv calls set_tex_parameteri, which uses the
params argument as an array.
commit 54b0ed8360019fc6e0234c2c3413be40fe4d3b59
Author: Brian Paul <brianp@vmware.com>
Date: Tue Dec 8 15:03:15 2009 -0700
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.
commit 1de1deffce9c7120a167af8553b606eec82e60a3
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Dec 8 00:43:38 2009 -0800
i915g: Fix memory leak when pci id is unknown.
commit 7e93e06781d2f3e0c737c7654c3fb0d83e31e45a
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Dec 8 00:37:35 2009 -0800
i915g: Add missing break statement in i915_debug_packet.
commit 7f8e22aa29b7340d51b1f2e16d55a035c0f9b851
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Dec 8 00:26:37 2009 -0800
rbug: Initialize variable in rbug_get_message.
Silences uninitialized variable warning.
commit 369669ff9a7ff7636cadef8e2b13f2f28face98f
Author: Andre Maasikas <amaasikas@gmail.com>
Date: Thu Dec 3 12:26:44 2009 +0200
r600: add support for TXB instruction
makes testing other things easier - does not hang the card
TODO: enable TEX dependency tracking in vertex programs
commit dc0777d3e3b760d7faa5fb99a189919bde07ca0b
Author: Andre Maasikas <amaasikas@gmail.com>
Date: Wed Nov 4 10:00:47 2009 +0200
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
commit add6dfbba64260c9b314b4a95c8def084e05bd3b
Author: Vinson Lee <vlee@vmware.com>
Date: Mon Dec 7 19:04:07 2009 -0800
llvmpipe: Initialize variables in emit_instruction.
commit 3e8b2fda215689b9a77c73020a1efc523995931e
Author: Vinson Lee <vlee@vmware.com>
Date: Mon Dec 7 18:40:37 2009 -0800
progs/test: Initialize variable in prog_parameter.
Silences uninitialized variable compiler warning.
commit 9dbd47fc6b1cf9ddfb318f2e05df0886cd5fe0df
Author: Ian Romanick <ian.d.romanick@intel.com>
Date: Mon Dec 7 16:59:59 2009 -0800
mesa: set version string to 7.6.1-rc3
commit 7d84169865f5907a02ff2283ca7bd45a3bb2f3c9
Author: Vinson Lee <vlee@vmware.com>
Date: Mon Dec 7 12:31:08 2009 -0800
progs/demos: Fix memory leak in projtex.c.
commit 7005f7cd1a9947e75bf772897d9055e3fe467c3d
Author: Vinson Lee <vlee@vmware.com>
Date: Fri Nov 20 16:33:25 2009 -0800
st/egl: Fix memory leak in egl_tracker.c.
(cherry picked from commit 052b127842af3372fd768eae8e29b240a696a12a)
commit c994f08eb1ec2a4bbaa44fbd6d35e7ff033d5c3c
Author: Vinson Lee <vlee@vmware.com>
Date: Sat Nov 28 23:22:31 2009 -0500
dri: Fix potential null pointer dereference in driBindContext.
(cherry picked from commit 919898e92fa23ff71a59d86a46ff0886a6f34e4d)
commit f622b649fb0c55b1640997f9d32ea327743519a1
Author: Vinson Lee <vlee@vmware.com>
Date: Tue Nov 24 00:57:55 2009 -0500
dri: Fix potential null pointer deference in dri_put_drawable.
(cherry picked from commit 364070b1f2b08d43fb205ec198894a35bec6b2f3)
commit 76b3523d752968bc552d4350a39b9b9b1a023cf0
Author: Vinson Lee <vlee@vmware.com>
Date: Mon Nov 23 01:30:32 2009 -0500
glx: Prevent potential null pointer deference in driCreateContext.
(cherry picked from commit 4b0b250aae6ae7d48cd24f9d91d05ab58086c4b2)
commit 978b80c8e35b465273921a28540ed15f07d1afbf
Author: Vinson Lee <vlee@vmware.com>
Date: Fri Oct 9 07:24:04 2009 -0600
progs/tests: Add tests to Makefile.
(cherry picked from commit 76d2ec3a0a047a65ffca70f53848241a3225dad3)
commit 3cd745515e72c42efcd0c9f7d30e58f46f821b98
Author: Vinson Lee <vlee@vmware.com>
Date: Fri Nov 20 16:03:48 2009 -0800
draw: Initialize variable in draw_pt.c.
(cherry picked from commit ea98e9820d7117f7a187f355445796b1ef5d9e0c)
commit b2953ee1a655a010f36b5fc1b47f8bd8b06ce368
Author: Vinson Lee <vlee@vmware.com>
Date: Sun Nov 29 00:50:48 2009 -0500

11
debian/changelog vendored
View File

@@ -1,3 +1,14 @@
mesa (7.6.1~rc3-1) unstable; urgency=low
* New upstream release candidate.
+ Pull upstream mesa_7_6_branch up to commit 7d41b424.
+ Includes sparc64 xform asm patch from #560403.
* Update debian/rules to fix sparc64 FTBFS, thanks Aurelien Jarno,
closes: #560403.
* Build r600 DRI driver.
-- Brice Goglin <bgoglin@debian.org> Fri, 11 Dec 2009 18:36:36 +0100
mesa (7.6.1~rc2-1) unstable; urgency=low
* New upstream release candidate.

4
debian/rules vendored
View File

@@ -69,13 +69,15 @@ else
ifeq ($(DEB_HOST_ARCH), lpia)
DRI_DRIVERS += i915 i965
else ifneq ($(DEB_HOST_ARCH), s390)
DRI_DRIVERS += mach64 mga r128 r200 r300 radeon s3v savage tdfx trident
DRI_DRIVERS += mach64 mga r128 r200 r300 r600 radeon s3v savage tdfx trident
ifeq ($(DEB_HOST_GNU_CPU), i486)
DRI_DRIVERS += i810 i915 i965 sis unichrome
else ifeq ($(DEB_HOST_GNU_CPU), x86_64)
DRI_DRIVERS += i915 i965 sis unichrome
else ifeq ($(DEB_HOST_ARCH), sparc)
DRI_DRIVERS += ffb
else ifeq ($(DEB_HOST_ARCH), sparc64)
DRI_DRIVERS += ffb
endif
endif
endif

View File

@@ -58,6 +58,7 @@ tbd
<li>Endianness fixes for the DRI swrast driver (bug 22767).</li>
<li>Point sprite fixes for i915/945 driver.
<li>Fixed assorted memory leaks (usually on error paths)
<li>Fixed some GLSL compiler bugs (ex: 25579)
</ul>
<h2>Changes</h2>

View File

@@ -248,6 +248,7 @@ loadImageTextures(void)
free(texData3);
free(texData4);
free(image);
}
}

View File

@@ -93,7 +93,12 @@ static ImageRec *ImageOpen(char *fileName)
fread(image, 1, 12, image->file);
if (swapFlag) {
ConvertShort(&image->imagic, 6);
ConvertShort(&image->imagic, 1);
ConvertShort(&image->type, 1);
ConvertShort(&image->dim, 1);
ConvertShort(&image->xsize, 1);
ConvertShort(&image->ysize, 1);
ConvertShort(&image->zsize, 1);
}
image->tmp = (unsigned char *)malloc(image->xsize*256);

View File

@@ -117,7 +117,12 @@ static rawImageRec *RawImageOpen(const char *fileName)
fread(raw, 1, 12, raw->file);
if (swapFlag) {
ConvertShort(&raw->imagic, 6);
ConvertShort(&raw->imagic, 1);
ConvertShort(&raw->type, 1);
ConvertShort(&raw->dim, 1);
ConvertShort(&raw->sizeX, 1);
ConvertShort(&raw->sizeY, 1);
ConvertShort(&raw->sizeZ, 1);
}
raw->tmp = (unsigned char *)malloc(raw->sizeX*256);

View File

@@ -192,7 +192,8 @@ draw_print_arrays(struct draw_context *draw, uint prim, int start, uint count)
prim, start, count);
for (i = 0; i < count; i++) {
uint ii, j;
uint ii = 0;
uint j;
if (draw->pt.user.elts) {
/* indexed arrays */

View File

@@ -87,6 +87,7 @@ rbug_get_message(struct rbug_connection *c, uint32_t *serial)
if (!data) {
return NULL;
}
data->opcode = 0;
do {
uint8_t *ptr = ((uint8_t*)data) + read;

View File

@@ -851,6 +851,7 @@ static boolean i915_debug_packet( struct debug_stream *stream )
default:
return debug(stream, "", 0);
}
break;
default:
assert(0);
return 0;

View File

@@ -273,6 +273,7 @@ i915_create_screen(struct intel_winsys *iws, uint pci_id)
default:
debug_printf("%s: unknown pci id 0x%x, cannot create screen\n",
__FUNCTION__, pci_id);
FREE(is);
return NULL;
}

View File

@@ -496,9 +496,9 @@ emit_instruction(
if (IS_DST0_CHANNEL_ENABLED( inst, CHAN_X ) ||
IS_DST0_CHANNEL_ENABLED( inst, CHAN_Y ) ||
IS_DST0_CHANNEL_ENABLED( inst, CHAN_Z )) {
LLVMValueRef *p_floor_log2;
LLVMValueRef *p_exp;
LLVMValueRef *p_log2;
LLVMValueRef *p_floor_log2 = NULL;
LLVMValueRef *p_exp = NULL;
LLVMValueRef *p_log2 = NULL;
src0 = emit_fetch( bld, inst, 0, CHAN_X );
src0 = lp_build_abs( &bld->base, src0 );

View File

@@ -85,11 +85,11 @@ drm_get_device_id(struct drm_device *device)
}
ret = fgets(path, sizeof( path ), file);
fclose(file);
if (!ret)
return;
sscanf(path, "%x", &device->deviceID);
fclose(file);
}
static void

View File

@@ -250,12 +250,14 @@ driCreateContext(__GLXscreenConfigs * psc,
{
__GLXDRIcontextPrivate *pcp, *pcp_shared;
__GLXDRIconfigPrivate *config = (__GLXDRIconfigPrivate *) mode;
const __DRIcoreExtension *core = psc->core;
const __DRIcoreExtension *core;
__DRIcontext *shared = NULL;
if (!psc || !psc->driScreen)
return NULL;
core = psc->core;
if (shareList) {
pcp_shared = (__GLXDRIcontextPrivate *) shareList->driContext;
shared = pcp_shared->driContext;

View File

@@ -167,11 +167,12 @@ static int driBindContext(__DRIcontext *pcp,
__DRIdrawable *pdp,
__DRIdrawable *prp)
{
__DRIscreenPrivate *psp = pcp->driScreenPriv;
__DRIscreenPrivate *psp;
/* Bind the drawable to the context */
if (pcp) {
psp = pcp->driScreenPriv;
pcp->driDrawablePriv = pdp;
pcp->driReadablePriv = prp;
if (pdp) {
@@ -498,11 +499,11 @@ static void dri_put_drawable(__DRIdrawable *pdp)
{
__DRIscreenPrivate *psp;
pdp->refcount--;
if (pdp->refcount)
return;
if (pdp) {
pdp->refcount--;
if (pdp->refcount)
return;
psp = pdp->driScreenPriv;
(*psp->DriverAPI.DestroyBuffer)(pdp);
if (pdp->pClipRects) {

View File

@@ -806,6 +806,7 @@ static GLboolean i915_debug_packet( struct debug_stream *stream )
default:
return debug(stream, "", 0);
}
break;
default:
assert(0);
return 0;

View File

@@ -3450,22 +3450,6 @@ GLboolean assemble_TEX(r700_AssemblerBase *pAsm)
need_barrier = GL_TRUE;
}
switch (pAsm->pILInst[pAsm->uiCurInst].Opcode)
{
case OPCODE_TEX:
break;
case OPCODE_TXB:
radeon_error("do not support TXB yet\n");
return GL_FALSE;
break;
case OPCODE_TXP:
break;
default:
radeon_error("Internal error: bad texture op (not TEX)\n");
return GL_FALSE;
break;
}
if (pAsm->pILInst[pAsm->uiCurInst].Opcode == OPCODE_TXP)
{
GLuint tmp = gethelpr(pAsm);
@@ -3644,7 +3628,15 @@ GLboolean assemble_TEX(r700_AssemblerBase *pAsm)
}
pAsm->D.dst.opcode = SQ_TEX_INST_SAMPLE;
if(pAsm->pILInst[pAsm->uiCurInst].Opcode == OPCODE_TXB)
{
pAsm->D.dst.opcode = SQ_TEX_INST_SAMPLE_L;
}
else
{
pAsm->D.dst.opcode = SQ_TEX_INST_SAMPLE;
}
pAsm->is_tex = GL_TRUE;
if ( GL_TRUE == need_barrier )
{

View File

@@ -1134,7 +1134,11 @@ static int check_blnd(GLcontext *ctx, struct radeon_state_atom *atom)
count += 3;
if (context->radeon.radeonScreen->chip_family > CHIP_FAMILY_R600) {
for (ui = 0; ui < R700_MAX_RENDER_TARGETS; ui++) {
/* targets are enabled in r700SetRenderTarget but state
size is calculated before that. Until MRT's are done
hardcode target0 as enabled. */
count += 3;
for (ui = 1; ui < R700_MAX_RENDER_TARGETS; ui++) {
if (r700->render_target[ui].enabled)
count += 3;
}
@@ -1250,9 +1254,9 @@ void r600InitAtoms(context_t *context)
ALLOC_STATE(poly, always, 10, r700SendPolyState);
ALLOC_STATE(cb, cb, 18, r700SendCBState);
ALLOC_STATE(clrcmp, always, 6, r700SendCBCLRCMPState);
ALLOC_STATE(cb_target, always, 25, r700SendRenderTargetState);
ALLOC_STATE(blnd, blnd, (6 + (R700_MAX_RENDER_TARGETS * 3)), r700SendCBBlendState);
ALLOC_STATE(blnd_clr, always, 6, r700SendCBBlendColorState);
ALLOC_STATE(cb_target, always, 25, r700SendRenderTargetState);
ALLOC_STATE(sx, always, 9, r700SendSXState);
ALLOC_STATE(vgt, always, 41, r700SendVGTState);
ALLOC_STATE(spi, always, (59 + R700_MAX_SHADER_EXPORTS), r700SendSPIState);

View File

@@ -34,15 +34,20 @@
void GLAPIENTRY
_mesa_Fogf(GLenum pname, GLfloat param)
{
_mesa_Fogfv(pname, &param);
GLfloat fparam[4];
fparam[0] = param;
fparam[1] = fparam[2] = fparam[3] = 0.0F;
_mesa_Fogfv(pname, fparam);
}
void GLAPIENTRY
_mesa_Fogi(GLenum pname, GLint param )
{
GLfloat fparam = (GLfloat) param;
_mesa_Fogfv(pname, &fparam);
GLfloat fparam[4];
fparam[0] = (GLfloat) param;
fparam[1] = fparam[2] = fparam[3] = 0.0F;
_mesa_Fogfv(pname, fparam);
}

View File

@@ -206,7 +206,10 @@ _mesa_light(GLcontext *ctx, GLuint lnum, GLenum pname, const GLfloat *params)
void GLAPIENTRY
_mesa_Lightf( GLenum light, GLenum pname, GLfloat param )
{
_mesa_Lightfv( light, pname, &param );
GLfloat fparam[4];
fparam[0] = param;
fparam[1] = fparam[2] = fparam[3] = 0.0F;
_mesa_Lightfv( light, pname, fparam );
}
@@ -285,7 +288,10 @@ _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params )
void GLAPIENTRY
_mesa_Lighti( GLenum light, GLenum pname, GLint param )
{
_mesa_Lightiv( light, pname, &param );
GLint iparam[4];
iparam[0] = param;
iparam[1] = iparam[2] = iparam[3] = 0;
_mesa_Lightiv( light, pname, iparam );
}
@@ -537,14 +543,20 @@ _mesa_LightModeliv( GLenum pname, const GLint *params )
void GLAPIENTRY
_mesa_LightModeli( GLenum pname, GLint param )
{
_mesa_LightModeliv( pname, &param );
GLint iparam[4];
iparam[0] = param;
iparam[1] = iparam[2] = iparam[3] = 0;
_mesa_LightModeliv( pname, iparam );
}
void GLAPIENTRY
_mesa_LightModelf( GLenum pname, GLfloat param )
{
_mesa_LightModelfv( pname, &param );
GLfloat fparam[4];
fparam[0] = param;
fparam[1] = fparam[2] = fparam[3] = 0.0F;
_mesa_LightModelfv( pname, fparam );
}

View File

@@ -69,8 +69,10 @@ _mesa_PointSize( GLfloat size )
void GLAPIENTRY
_mesa_PointParameteri( GLenum pname, GLint param )
{
const GLfloat value = (GLfloat) param;
_mesa_PointParameterfv(pname, &value);
GLfloat p[3];
p[0] = (GLfloat) param;
p[1] = p[2] = 0.0F;
_mesa_PointParameterfv(pname, p);
}
@@ -90,7 +92,10 @@ _mesa_PointParameteriv( GLenum pname, const GLint *params )
void GLAPIENTRY
_mesa_PointParameterf( GLenum pname, GLfloat param)
{
_mesa_PointParameterfv(pname, &param);
GLfloat p[3];
p[0] = param;
p[1] = p[2] = 0.0F;
_mesa_PointParameterfv(pname, p);
}

View File

@@ -181,8 +181,10 @@ _mesa_TexGeniv(GLenum coord, GLenum pname, const GLint *params )
void GLAPIENTRY
_mesa_TexGend(GLenum coord, GLenum pname, GLdouble param )
{
GLfloat p = (GLfloat) param;
_mesa_TexGenfv( coord, pname, &p );
GLfloat p[4];
p[0] = (GLfloat) param;
p[1] = p[2] = p[3] = 0.0F;
_mesa_TexGenfv( coord, pname, p );
}

View File

@@ -418,7 +418,7 @@ _mesa_test_texobj_completeness( const GLcontext *ctx,
/* Detect cases where the application set the base level to an invalid
* value.
*/
if ((baseLevel < 0) || (baseLevel > MAX_TEXTURE_LEVELS)) {
if ((baseLevel < 0) || (baseLevel >= MAX_TEXTURE_LEVELS)) {
char s[100];
_mesa_sprintf(s, "base level = %d is invalid", baseLevel);
incomplete(t, s);

View File

@@ -592,8 +592,10 @@ _mesa_TexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
case GL_DEPTH_TEXTURE_MODE_ARB:
{
/* convert float param to int */
GLint p = (GLint) params[0];
need_update = set_tex_parameteri(ctx, texObj, pname, &p);
GLint p[4];
p[0] = (GLint) params[0];
p[1] = p[2] = p[3] = 0;
need_update = set_tex_parameteri(ctx, texObj, pname, p);
}
break;
@@ -642,14 +644,21 @@ _mesa_TexParameteri(GLenum target, GLenum pname, GLint param)
case GL_TEXTURE_LOD_BIAS:
case GL_TEXTURE_COMPARE_FAIL_VALUE_ARB:
{
GLfloat fparam = (GLfloat) param;
GLfloat fparam[4];
fparam[0] = (GLfloat) param;
fparam[1] = fparam[2] = fparam[3] = 0.0F;
/* convert int param to float */
need_update = set_tex_parameterf(ctx, texObj, pname, &fparam);
need_update = set_tex_parameterf(ctx, texObj, pname, fparam);
}
break;
default:
/* this will generate an error if pname is illegal */
need_update = set_tex_parameteri(ctx, texObj, pname, &param);
{
GLint iparam[4];
iparam[0] = param;
iparam[1] = iparam[2] = iparam[3] = 0;
need_update = set_tex_parameteri(ctx, texObj, pname, iparam);
}
}
if (ctx->Driver.TexParameter && need_update) {
@@ -691,8 +700,10 @@ _mesa_TexParameteriv(GLenum target, GLenum pname, const GLint *params)
case GL_TEXTURE_COMPARE_FAIL_VALUE_ARB:
{
/* convert int param to float */
GLfloat fparam = (GLfloat) params[0];
need_update = set_tex_parameterf(ctx, texObj, pname, &fparam);
GLfloat fparams[4];
fparams[0] = (GLfloat) params[0];
fparams[1] = fparams[2] = fparams[3] = 0.0F;
need_update = set_tex_parameterf(ctx, texObj, pname, fparams);
}
break;
default:

View File

@@ -32,7 +32,7 @@
#define MESA_MAJOR 7
#define MESA_MINOR 6
#define MESA_PATCH 1
#define MESA_VERSION_STRING "7.6.1-rc2"
#define MESA_VERSION_STRING "7.6.1-rc3"
/* To make version comparison easy */
#define MESA_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

View File

@@ -217,6 +217,12 @@ MatchInstruction(const GLubyte *token)
const struct instruction_pattern *inst;
struct instruction_pattern result;
result.name = NULL;
result.opcode = MAX_OPCODE; /* i.e. invalid instruction */
result.inputs = 0;
result.outputs = 0;
result.suffixes = 0;
for (inst = Instructions; inst->name; inst++) {
if (_mesa_strncmp((const char *) token, inst->name, 3) == 0) {
/* matched! */
@@ -247,7 +253,7 @@ MatchInstruction(const GLubyte *token)
return result;
}
}
result.opcode = MAX_OPCODE; /* i.e. invalid instruction */
return result;
}

View File

@@ -500,7 +500,7 @@ GLfloat *
_mesa_lookup_parameter_value(const struct gl_program_parameter_list *paramList,
GLsizei nameLen, const char *name)
{
GLuint i = _mesa_lookup_parameter_index(paramList, nameLen, name);
GLint i = _mesa_lookup_parameter_index(paramList, nameLen, name);
if (i < 0)
return NULL;
else

View File

@@ -813,9 +813,17 @@ _mesa_find_free_register(const struct gl_program *prog, GLuint regFile)
const struct prog_instruction *inst = prog->Instructions + i;
const GLuint n = _mesa_num_inst_src_regs(inst->Opcode);
for (k = 0; k < n; k++) {
if (inst->SrcReg[k].File == regFile) {
used[inst->SrcReg[k].Index] = GL_TRUE;
/* check dst reg first */
if (inst->DstReg.File == regFile) {
used[inst->DstReg.Index] = GL_TRUE;
}
else {
/* check src regs otherwise */
for (k = 0; k < n; k++) {
if (inst->SrcReg[k].File == regFile) {
used[inst->SrcReg[k].Index] = GL_TRUE;
break;
}
}
}
}

View File

@@ -528,15 +528,11 @@ _mesa_remove_output_reads(struct gl_program *prog, gl_register_file type)
/* look for instructions which write to the varying vars identified above */
for (i = 0; i < prog->NumInstructions; i++) {
struct prog_instruction *inst = prog->Instructions + i;
const GLuint numSrc = _mesa_num_inst_src_regs(inst->Opcode);
GLuint j;
for (j = 0; j < numSrc; j++) {
if (inst->DstReg.File == type &&
outputMap[inst->DstReg.Index] >= 0) {
/* change inst to write to the temp reg, instead of the varying */
inst->DstReg.File = PROGRAM_TEMPORARY;
inst->DstReg.Index = outputMap[inst->DstReg.Index];
}
if (inst->DstReg.File == type &&
outputMap[inst->DstReg.Index] >= 0) {
/* change inst to write to the temp reg, instead of the varying */
inst->DstReg.File = PROGRAM_TEMPORARY;
inst->DstReg.Index = outputMap[inst->DstReg.Index];
}
}

View File

@@ -127,7 +127,6 @@ typedef struct slang_operation_
* indicate such. num_children indicates number of elements.
*/
GLboolean array_constructor;
double x;
} slang_operation;

View File

@@ -84,10 +84,11 @@ _slang_lookup_constant(const char *name)
for (i = 0; info[i].Name; i++) {
if (strcmp(info[i].Name, name) == 0) {
/* found */
GLint value = -1;
_mesa_GetIntegerv(info[i].Token, &value);
ASSERT(value >= 0); /* sanity check that glGetFloatv worked */
return value;
GLint values[16];
values[0] = -1;
_mesa_GetIntegerv(info[i].Token, values);
ASSERT(values[0] >= 0); /* sanity check that glGetFloatv worked */
return values[0];
}
}
return -1;

View File

@@ -17,7 +17,7 @@
#include "sparc_matrix.h"
#if defined(SVR4) || defined(__SVR4) || defined(__svr4__)
#if defined(SVR4) || defined(__SVR4) || defined(__svr4__) || defined(__arch64__)
/* Solaris requires this for 64-bit. */
.register %g2, #scratch
.register %g3, #scratch

View File

@@ -35,17 +35,20 @@
static void clear_active_eval1( struct vbo_exec_context *exec, GLuint attr )
{
assert(attr < Elements(exec->eval.map1));
exec->eval.map1[attr].map = NULL;
}
static void clear_active_eval2( struct vbo_exec_context *exec, GLuint attr )
{
assert(attr < Elements(exec->eval.map2));
exec->eval.map2[attr].map = NULL;
}
static void set_active_eval1( struct vbo_exec_context *exec, GLuint attr, GLuint dim,
struct gl_1d_map *map )
{
assert(attr < Elements(exec->eval.map1));
if (!exec->eval.map1[attr].map) {
exec->eval.map1[attr].map = map;
exec->eval.map1[attr].sz = dim;
@@ -55,6 +58,7 @@ static void set_active_eval1( struct vbo_exec_context *exec, GLuint attr, GLuint
static void set_active_eval2( struct vbo_exec_context *exec, GLuint attr, GLuint dim,
struct gl_2d_map *map )
{
assert(attr < Elements(exec->eval.map2));
if (!exec->eval.map2[attr].map) {
exec->eval.map2[attr].map = map;
exec->eval.map2[attr].sz = dim;
@@ -73,18 +77,6 @@ void vbo_exec_eval_update( struct vbo_exec_context *exec )
clear_active_eval2( exec, attr );
}
/* _NEW_PROGRAM */
if (ctx->VertexProgram._Enabled) {
for (attr = 0; attr < VBO_ATTRIB_FIRST_MATERIAL; attr++) {
/* _NEW_EVAL */
if (ctx->Eval.Map1Attrib[attr])
set_active_eval1( exec, attr, 4, &ctx->EvalMap.Map1Attrib[attr] );
if (ctx->Eval.Map2Attrib[attr])
set_active_eval2( exec, attr, 4, &ctx->EvalMap.Map2Attrib[attr] );
}
}
if (ctx->Eval.Map1Color4)
set_active_eval1( exec, VBO_ATTRIB_COLOR0, 4, &ctx->EvalMap.Map1Color4 );
@@ -125,6 +117,23 @@ void vbo_exec_eval_update( struct vbo_exec_context *exec )
else if (ctx->Eval.Map2Vertex3)
set_active_eval2( exec, VBO_ATTRIB_POS, 3, &ctx->EvalMap.Map2Vertex3 );
/* _NEW_PROGRAM */
if (ctx->VertexProgram._Enabled) {
/* These are the 16 evaluators which GL_NV_vertex_program defines.
* They alias and override the conventional vertex attributs.
*/
for (attr = 0; attr < 16; attr++) {
/* _NEW_EVAL */
assert(attr < Elements(ctx->Eval.Map1Attrib));
if (ctx->Eval.Map1Attrib[attr])
set_active_eval1( exec, attr, 4, &ctx->EvalMap.Map1Attrib[attr] );
assert(attr < Elements(ctx->Eval.Map2Attrib));
if (ctx->Eval.Map2Attrib[attr])
set_active_eval2( exec, attr, 4, &ctx->EvalMap.Map2Attrib[attr] );
}
}
exec->eval.recalculate_maps = 0;
}