Julien Cristau
9fd22f0e3f
Prepare changelog for upload.
2007-12-18 19:13:27 +01:00
Julien Cristau
942372dcdf
debian/control fixups
...
* Bump Standards-Version to 3.7.3.
* Move libgl1-mesa-swx11-dbg, mesa-common-dev and libosmesa6-dev to section
libdevel.
* libgl1-mesa-swx11 conflicts with libgl1-mesa-glx. Move it and
libgl1-mesa-swx11-dev to priority extra.
* Fix typo in mesa-common-dev's long description.
2007-12-18 13:57:06 +01:00
Julien Cristau
b7f901088b
Update changelog.
2007-12-18 13:32:01 +01:00
Julien Cristau
c02990525c
Merge branch 'mesa_7_0_branch' of git.freedesktop.org:/git/mesa/mesa into debian-unstable
...
Conflicts:
progs/trivial/quad-clip-nearplane.c
2007-12-18 12:28:29 +01:00
Michel Dänzer
0107acded0
i915tex: Fix issues with glDrawBuffer(GL_NONE).
...
Don't dereference NULL renderbuffer pointer, and make sure the software
fallback sticks.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=13694 .
2007-12-17 12:32:26 +01:00
Brian
2ac5e08d1d
fix polygon cull regression
2007-12-14 14:36:23 -07:00
Dan Nicholson
1837b8c214
configs: Fix linking with static libGL and --as-needed
...
Linking of the programs breaks when using a static libGL and the GNU ld
option --as-needed. This is because libXext is needed for the XShm
functions.
(cherry picked from commit 6aaf9bdd41
)
2007-12-07 11:51:18 -08:00
Brian
03d2bc1774
fix gl_FrontFacing
2007-12-04 14:07:15 -07:00
Brian
385bddbde0
fix span->facing computation and gl_FrontFacing initialization
2007-12-04 14:07:15 -07:00
Brian
c135426267
Fix gl_FrontFacing compilation problem
2007-12-04 14:07:15 -07:00
Michel Dänzer
4be0c98120
Use -Bsymbolic for linking all shared objects.
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10132 .
Also remove comment about SONAME, as SONAME only applies to shared libraries.
(cherry picked from commit fc7ddea853
)
2007-12-04 18:33:07 +01:00
Brian
e760aebd5a
fix two-side lighting bug/crash
2007-12-03 14:13:08 -07:00
Brian
1f6e7d9c29
fix DD_TRI_LIGHT_TWOSIDE bug ( #13368 )
2007-12-03 14:12:34 -07:00
Dan Nicholson
c6d421af05
Fix the library name in glw.pc
...
Fix a copy and paste error s/GLU/GLw/ in glw.pc.
(cherry picked from commit 2dc85e8078
)
2007-12-03 12:08:03 -08:00
Brian
952df5e493
fix two-sided stencil
2007-12-03 12:00:21 -07:00
Brian
45acb8b058
added missing quote char
2007-12-03 12:00:21 -07:00
Michel Dänzer
e8997c0183
i915tex: Fix up state changes for i8xx.
...
(cherry picked from commit 2af613e0b8
)
2007-12-03 09:38:13 +01:00
Brian
169e62f563
fix-build: remove ctx->_Facing assignment
2007-11-30 15:52:41 -07:00
Brian
1b43babfb1
fix broken two-sided stencil
2007-11-30 13:01:42 -07:00
Brian
43e902f774
better front-plane clip test
2007-11-30 09:09:12 -07:00
Xiang, Haihao
b0a800e249
i965: use uncompressed instruction to ensure only
...
Pixel Mask Copy is modified as the pixel shader thread
turns off pixels based on kill instructions.
2007-11-30 12:36:07 +08:00
Brian
73d5f232ad
New ctx->Driver.Map/UnmapTexture() functions for accessing textures from t_vb_program.c
2007-11-29 08:18:11 -07:00
Brian
f7209541e4
cleanups, comments
...
Conflicts:
src/mesa/tnl/t_vb_program.c
2007-11-29 08:18:11 -07:00
Brian
397a32dca7
Move _mesa_load_tracked_matrices() from TNL module to prog_statevars.c
2007-11-29 08:18:11 -07:00
Roland Scheidegger
e0719d7122
make sure state token values are fully initialized
2007-11-29 03:08:48 +01:00
Michel Dänzer
3f18c0a9f2
r200: Fix texture format regression on big endian systems.
...
See https://bugs.freedesktop.org/show_bug.cgi?id=13324 .
Also use tx_table_be for VALID_FORMAT, in case r200SetTexImages ever gets
called for MESA_FORMAT_RGB888.
(cherry picked from commit dc88a96631
)
2007-11-28 10:25:01 +01:00
Delle
b14be61938
use DEFAULT_SOFTWARE_DEPTH_BITS
2007-11-27 18:18:48 -07:00
Brian
440d620308
minor additions to avoid FAQs
2007-11-27 10:32:39 -07:00
Brian
8dd9df0f3e
document GLSL float f/F suffix bug
2007-11-27 10:32:39 -07:00
Brian
6b9534eaf5
set fp->UsesKill when emitting OPCODE_KIL
2007-11-27 10:32:39 -07:00
Brian
c91d374ad7
improve 24-bit Z to 32-bit Z conversion
2007-11-27 10:32:39 -07:00
Keith Whitwell
1cab4160bc
i915tex: Fix some minor batchbuffer errors.
2007-11-26 17:12:15 +01:00
Keith Whitwell
718d2dfbbd
i915tex: Catch cases where not all state is emitted for a new batchbuffer.
...
This could lead to incorrect rendering or even lockups.
2007-11-26 17:10:26 +01:00
Michel Dänzer
0967e1270d
i915tex: Some additional blit fixes and assertions.
2007-11-26 16:59:41 +01:00
Michel Dänzer
a08c02f1a8
i915tex: Actually wait for previous commands to complete for glFinish().
2007-11-26 16:59:00 +01:00
Brian
bdfd9afead
Consolidate texture fetch code and use partial derivatives when possible.
2007-11-23 12:01:39 -07:00
Brian
1c91a590d6
fix a few GLSL bugs
2007-11-23 10:28:33 -07:00
Brian
65bd7968bf
Fix parsing of gl_FrontLightModelProduct.sceneColor, don't segfault on variable
...
array indexes.
2007-11-23 10:26:02 -07:00
Brian
6ccd23b87b
need to check border width in sample_linear_2d() - fixes failed assertion in texwrap.c test
2007-11-23 09:14:27 -07:00
Brian
823409b7d0
Bump version numbers to 7.0.3 for next release
2007-11-22 09:36:35 -07:00
Brian
c85d31f4a0
Recompute ctx->Point._Size if GL_POINT_SIZE_MIN/MAX changes.
...
Note that all the point size clamping stuff has been redone in Mesa/master.
2007-11-22 09:36:35 -07:00
Roland Scheidegger
24af5c44da
fix z buffer read/write issue with rv100-like chips and old ddx
2007-11-22 02:55:25 +01:00
Brian
75efacf8eb
Initial 7.0.3 relnotes
2007-11-20 08:16:25 -07:00
Brian
825e810247
bring over Fortran fixes from master
2007-11-20 08:15:19 -07:00
Brian
e20723cfc1
Obsolete
2007-11-20 08:13:14 -07:00
Brian
9f39a67c1d
Rename glut_fbc.c -> glut_fcb.c (cb=callback)
2007-11-20 08:13:03 -07:00
Brian
2044f3f791
clamp lambda to Min/MaxLod
2007-11-19 13:05:10 -07:00
Brian
30d4e8c422
fix some texture format assertions, etc
2007-11-19 10:37:41 -07:00
Brian
92d552f6a2
fix out-of-bounds array index (ix=-1)
2007-11-19 09:54:41 -07:00
Brian
5adfcbbc4f
added gl_dispatch_stub_772()
2007-11-16 10:03:57 -07:00
Roland Scheidegger
69969b3819
fix position invariant vertex programs for sw-tnl
...
do the same math as for fixed function pipe, including
user clip planes.
(mostly resurrected from the dead t_vb_arbprogram.c code)
2007-11-15 02:06:15 +01:00
Roland Scheidegger
edfee04fcb
fix bogus assumption if ddx has set up surface reg for z buffer
...
this is wrong since even if ddx has not set up a surface reg to cover the z
buffer we should pretend it has on those rv100 chips since they presumably do
not do z buffer tiling if not using hyperz, so we can use linear addressing
just the same. Doesn't seem to fix #13080 , but it's wrong anyway and the bug
almost certainly broke newer non-tcl chips.
2007-11-15 01:16:27 +01:00
Brice Goglin
ae0bf74db9
Prepare changelog for upload
2007-11-13 21:44:00 +01:00
Julien Cristau
1bf7ce97c0
* Add build-dep on libxext-dev. Thanks, Timo Aaltonen!
2007-11-13 21:40:49 +01:00
Julien Cristau
4971a009e0
* Workaround gcc ICE on hppa: build libOSMesa with -O0 (see bug#451047).
2007-11-13 20:59:08 +01:00
Julien Cristau
e1613ab80d
Don't set -fno-strict-aliasing in configs/debian-default.
...
Upstream uses that since 7.0.2.
2007-11-13 20:57:58 +01:00
Brian
28c9930888
add pointer to Gallium3D info
2007-11-13 09:51:14 -07:00
Brian
e3a35a123e
DRI memory manager info (fixes dangling link)
2007-11-13 09:50:42 -07:00
Brian
412168f2e8
remove dependency on libGLU
2007-11-12 08:21:21 -07:00
Brian
fc0fa0d636
add glw.pc.in to tarball list, remove from DEPEND_FILES
2007-11-12 07:52:20 -07:00
Brice Goglin
caf283329b
Prepare changelog for upload
2007-11-11 11:55:05 +01:00
Brice Goglin
5cedd4a43e
Remove DESTDIR from INSTALL_DIR in configs/debian-default
...
... and update 03_optional-progs-and-install.patch accordingly.
2007-11-11 11:49:16 +01:00
Brice Goglin
0595d32d8a
Refresh 03_optional-progs-and-install.patch
...
The default Makefile requires libGLU to be built
while linking progs/xdemos. However, we don't build
libGLU and progs/xdemos at the same time, and
these progs don't actually need libGLU.
2007-11-11 11:48:32 +01:00
Brice Goglin
e339b4e8da
New upstream release
2007-11-11 00:34:46 +01:00
Brice Goglin
11c827c588
Merge tag 'mesa_7_0_2' into debian-unstable
...
Conflicts:
.gitignore
progs/demos/.gitignore
progs/directfb/Makefile
progs/egl/Makefile
progs/fbdev/Makefile
progs/fp/Makefile
progs/miniglx/Makefile
progs/samples/.gitignore
progs/slang/Makefile
progs/tests/.gitignore
progs/tests/Makefile
progs/tools/trace/Makefile
progs/trivial/Makefile
progs/vp/Makefile
progs/xdemos/.gitignore
src/egl/drivers/demo/Makefile
src/egl/drivers/dri/Makefile
src/egl/main/Makefile
src/glu/mesa/Makefile
src/glut/directfb/Makefile
src/glx/mini/Makefile
2007-11-11 00:24:52 +01:00
Brian
8a40b670c3
added md5 checksums
2007-11-10 09:53:00 -07:00
Brian
d9fa5cbfc9
final changes for 7.0.2 relesae
2007-11-10 09:41:52 -07:00
Benno Schulenberg
1c21564292
code clean-ups, reformatting
2007-11-09 08:53:41 -07:00
Benno Schulenberg
6cc96bf156
remove commented-out code
2007-11-09 08:53:15 -07:00
Brian
29afd4bbc4
fix blender/unichrome crash, bug 13142
2007-11-08 07:36:30 -07:00
Benno Schulenberg
4e3db063ec
fix Unichrome/Blender crash, bug 13142
2007-11-08 07:36:30 -07:00
Brian
6560744c38
added -fno-strict-aliasing and -fPIC flags
2007-11-08 07:36:30 -07:00
Brian
572ad87881
change filenames for rc2
2007-11-08 07:36:30 -07:00
Michel Dänzer
2ab75d6cfa
r200: Fix SetTexOffset format for 16 bit pixmaps/textures.
...
Use symbolic array indices to clarify.
2007-11-06 18:39:50 +01:00
Chris Rankin
041a8eb5ec
r200: Implement SetTexOffset hook.
...
Implementation guidance by Michel Dänzer, final testing by Timo Aaltonen.
2007-11-06 18:32:33 +01:00
Brian
c1c13bdcfa
Check for NULL VB->EdgeFlag array.
...
There might be a bug elsewhere, but this is a simple work-around for now.
See bug 12614
2007-11-05 14:43:03 -07:00
Brian
403edd34dd
fix mmx code (bug 12614)
2007-11-05 14:38:12 -07:00
Brian
f279e48416
fix mmx code (bug 12614)
2007-11-05 14:38:05 -07:00
Brian
bf854d8d27
SSE codegen fixes
2007-11-03 08:45:42 -06:00
Brian
f334121679
Fix mem leak in SSE code generation path (Michel Dänzer) and don't crash if _mesa_exec_malloc() returns NULL.
2007-11-03 08:44:48 -06:00
Dan Nicholson
b88e2be609
Add -fno-strict-aliasing workaround for all GCC targets
...
Use a GCC option to work around aliasing bugs. See commit 013dbcd
for
more details.
(cherry picked from commit 01b18abf93
)
Conflicts:
configs/freebsd
2007-11-01 11:07:02 -07:00
Dan Nicholson
08229c8bb8
configs: Set -fexceptions for GLUT on linux-dri like other targets
...
Quite a while ago, the GCC option -fexceptions was added for building
libglut. See here:
http://article.gmane.org/gmane.comp.video.mesa3d.devel/9499
This was missing in the linux-dri targets.
(cherry picked from commit dbcd20f1c2
)
2007-11-01 11:02:05 -07:00
Dan Nicholson
c984017f71
configs: Always use -fPIC for shared libraries, never for static
...
Mesa currently disables -fPIC for DRI on x86, but most Linux distros are
re-enabling -fPIC for all DRI arches. Let's just do that here since
that's normally what's wanted for shared libraries. Some justification:
http://bugs.gentoo.org/show_bug.cgi?id=110840#c9
On the other hand, position-independent code is only necessary when
building shared libraries, so disable it for the static cases.
(cherry picked from commit c3b5adaa9a
)
2007-11-01 11:01:10 -07:00
Dan Nicholson
00e7dd8a13
Add -fno-strict-aliasing workaround for Linux GCC targets
...
Most Linux distros work around aliasing problems in Mesa by compiling
with the GCC option -fno-strict-aliasing. Two examples:
https://bugs.freedesktop.org/show_bug.cgi?id=6046
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=394311
This makes -fno-strict-aliasing the default with a comment that
developers should consider commenting it out. There is a already a note
about these bugs in docs/helpwanted.html.
(cherry picked from commit 013dbcd611
)
2007-11-01 10:56:01 -07:00
Brian
d11b375b16
fix typo
2007-10-31 09:43:17 -06:00
Brian
d1afa8146f
updated help/to-do list
2007-10-31 09:40:58 -06:00
Brian
31d4ba8a93
glDrawArrays(count=0) bugfix
2007-10-31 09:40:20 -06:00
Brian
1a7640958c
check for count==0 in _mesa_validate_DrawArrays()
2007-10-31 09:39:20 -06:00
Brian
2e2a5a450b
note G33/Q33/Q35 support
2007-10-31 08:19:14 -06:00
Brian
574fd63ff0
fix GL_ATI_separate_stencil
2007-10-30 10:46:31 -06:00
Brian
1063d47526
Alias glStencilOpSeparateATI with glStencilOpSeparate.
...
(Cherry-pick from master)
2007-10-30 10:45:47 -06:00
Brian
b59a892d3e
Finish up ATI_separate_stencil
...
Add entrypoints to glapi XML file and regenerate files.
Implement glStencilOpSeparateATI().
Consolidate some code in stencil.c
Conflicts:
src/mesa/glapi/dispatch.h
src/mesa/glapi/glapioffsets.h
src/mesa/glapi/glapitable.h
src/mesa/glapi/glapitemp.h
src/mesa/glapi/glprocs.h
src/mesa/main/enums.c
src/mesa/main/state.c
src/mesa/sparc/glapi_sparc.S
src/mesa/x86-64/glapi_x86-64.S
src/mesa/x86/glapi_x86.S
2007-10-30 10:34:26 -06:00
Roland Scheidegger
6e5d5d77df
add missing _mesa_StencilFuncSeparateATI function
2007-10-30 10:26:56 -06:00
Dan Nicholson
a6319d18cf
Build xdemos programs by default on linux-dri
...
Since libglut is no longer hardcoded, we can build the xdemos programs
so long as a GLX enabled libGL and libGLU have been built.
(cherry picked from commit 06ca14543e
)
2007-10-29 12:08:34 -07:00
Dan Nicholson
5103e883fd
update APP_LIB_DEPS for static library configs (patch 3/3)
...
(cherry picked from commit 162914675a
)
2007-10-29 12:06:50 -07:00
Dan Nicholson
98c4ea4b24
simplify APP_LIB_DEPS (patch 2/3)
...
(cherry picked from commit 9ef1d9f03a
)
2007-10-29 12:06:23 -07:00
Dan Nicholson
29b8cac7d7
specify app lib dependencies in Makefiles (patch 1/3)
...
(cherry-picked from commit c05aa5ec4c
)
Conflicts: progs/demos/Makefile
progs/xdemos/Makefile
2007-10-29 12:05:54 -07:00
Dan Nicholson
cdb02d43fe
linux-dri-xcb: Fix undefined refs when linking with libGL
...
GL_LIB_DEPS was missing -lXdamage and -lXfixes, which was causing
linker errors when trying to build the programs.
(cherry picked from commit 3b9e28d507
)
2007-10-29 11:44:30 -07:00
Michel Dänzer
50cecddc4a
driFenceType: Really return fence type, not flags.
...
This typo could lead to the i915tex driver waiting for an EXE only fence as RW,
causing it to abort with an error.
2007-10-29 13:27:59 +00:00
Alan Hourihane
177f6398e5
Only set R_MODE with NV_point_sprite
2007-10-28 20:08:15 +00:00
Dan Nicholson
887bd6a46f
configs: Fix linux-static to link correctly
...
The linux-static target was missing necessary libraries and hardcoding
their location to /usr/X11R6/lib. This makes it comparable to the x86
and x86-64 static targets.
(cherry picked from commit 9514209593
)
2007-10-26 15:49:00 -07:00
Brian
9af5153410
use grep -q
2007-10-25 14:48:08 -06:00
Dan Nicholson
0e2103689e
More ignored programs merged back from master
...
Some more entries in progs/*/.gitignore that were in master.
2007-10-25 11:59:26 -07:00
Brian
2c496d8e46
simplify/fix the ASM_FLAGS tests (bug 12931)
2007-10-25 11:12:17 -06:00
Brian
8f0ba02e44
Cray Xt3 config
2007-10-25 11:12:07 -06:00
Brian
524c56e417
Fix merge
2007-10-24 16:36:00 -06:00
Brian
773f3a266c
added catamount-osmesa-pgi config, fixes for cross-compiling
2007-10-24 16:35:47 -06:00
Brian
882ada0d22
don't build x86, x86-64 dirs if not needed
2007-10-24 16:33:24 -06:00
Brian
6229005f93
properly init dst reg's CondMask/Swizzle fields
2007-10-23 10:55:14 -06:00
Brian
6c63b35ef7
bump up MAX_INSTRUCTIONS and add an assertion to catch emitting too many instructions
2007-10-23 10:25:34 -06:00
Brian
fb85e50e09
add directfb glut sources to tarball
2007-10-23 08:22:11 -06:00
Brian
5e5f908d0c
don't apply ColorMask to main gc
2007-10-22 17:54:07 -06:00
Michel Dänzer
c09e2143c7
i915tex: Don't emit 'empty' blit rectangles.
...
The hardware seems to interpret them differently and produce unexpected
results...
2007-10-17 18:28:46 +02:00
Brian
74ced1e67f
fix fog, rescale_normals bugs (from gallium branch)
2007-10-15 18:02:14 -06:00
Andreas Micheler
dd02c1609e
faster write_rgba_span_front()
2007-10-15 08:28:06 -06:00
Brian
cdf4880a79
replace 'brick' with correct program name in printfs
2007-10-10 10:57:37 -06:00
Mrc Gran
2ec8e8547d
fix force_s3tc_enable option
2007-10-10 09:16:12 -06:00
Dan Nicholson
b7c36d1d33
Ignore more generated files in progs/
...
Many of the directories in progs/ were missing .gitignore files or
were tracking generated files. This patch is basically the process of
running `make' in each directory and then finding the untracked files
with `git-ls-files -o --exclude-per-directory=.gitignore'. The existing
files were also sorted.
Conflicts:
progs/demos/.gitignore
progs/tests/.gitignore
progs/xdemos/.gitignore
2007-10-10 08:49:59 -06:00
David Nusinow
8913402b74
Revert "* Disable building i915tex."
...
This reverts commit 76556f8264
.
2007-10-06 17:54:29 -04:00
David Nusinow
c00dfefd6f
Revert "Don't release just yet."
...
This reverts commit c3de7b5ade
.
2007-10-06 17:54:13 -04:00
David Nusinow
c3de7b5ade
Don't release just yet.
2007-10-04 23:10:47 -04:00
David Nusinow
76556f8264
* Disable building i915tex.
...
It was previously only built on x86 and amd64. It was never
production-ready and relies on a kernel interface that never went
upstream.
2007-10-04 22:49:27 -04:00
Xiang, Haihao
970d18a708
Brian's fix for bug9829
2007-10-04 00:08:18 +02:00
Roland Scheidegger
9456e7f0ff
minor fog calc cleanup
2007-10-03 22:34:36 +02:00
Roland Scheidegger
a5db24adc2
fog: fix issues with negative fog coords (may fix #10529 )
...
Rework tnl fog a bit. Make sure we always use ABS(eyez) when fog coord source
is depth, OTOH it does not seem to be necessary to use it (as was done before
in some cases) if fog coord source is fogcoord (just to save some work).
This fixes tests/fog (the first 2 cases) with i915/i915tex.
2007-10-03 22:33:26 +02:00
Roland Scheidegger
17664e2620
make sure optimized fog params get updated
2007-10-03 22:33:03 +02:00
Roland Scheidegger
43a0eb0253
unbreak 3d textures (typo when setting tex layout)
2007-10-03 22:32:33 +02:00
Michel Dänzer
bcdaed2c0a
i915tex: Work around texture pitch related performance drops on i915 at least.
2007-10-03 10:48:56 +02:00
Brian
78c6637db5
updated glext.h license info (Khronos), plus other clean-ups
2007-10-01 17:56:48 -06:00
Brian
44214a98fd
fix VBO-split infinite loop (bug 12164)
2007-09-29 12:01:47 -06:00
Dan Nicholson
9cc6d2310c
add support for LDFLAGS env var
2007-09-28 18:47:11 -06:00
Brian
1a045954be
update the DRM/DRI instructions
2007-09-28 18:43:12 -06:00
Dave Airlie
b3fc9a1585
i965: fix vblank on 965gm laptops by bringing in code from i915
...
jbarnes has better fixes for this in 7.1, but for 7.0.2 this seems like the best
plan, for distros to pick it up.
2007-09-28 12:02:27 +10:00
Xiang, Haihao
2a86a449ca
mesa: make sure the gotten value isn't greater than the
...
max depth buffer value on 64bit system. fix bug #12095
2007-09-27 10:44:45 -06:00
Xiang, Haihao
44f032db61
i965: handle all unfilled mode in clip stage. fix bug #12453
2007-09-27 10:40:22 -06:00
Brian
5a520729ee
prep for 7.0.2 release
2007-09-27 10:35:10 -06:00
Brian
36fbe78c60
for Miniglx, use git sources
2007-09-27 10:34:44 -06:00
Brian
029bb17770
bump versions to 7.0.2
2007-09-27 10:30:13 -06:00
Brian
7958bee6be
fix blend bug 12164
2007-09-27 10:25:57 -06:00
Brian
0b9bb21ce4
Restore old _TriangleCaps code to fix Blender problem (bug 12164)
2007-09-27 10:25:33 -06:00
Roland Bär
cfcc5b794e
[i965] Bug #11812 : Fix fwrite return value checks in AUB file code.
2007-09-26 08:00:17 -06:00
Zou Nan hai
925ff408a6
fix fd.o bug #12217 , recalcuate urb when clip plane size change
2007-09-26 07:59:41 -06:00
Xiang, Haihao
f40ca444f5
i965: The cube map texture coordinates must be devided by the
...
component with the largest absolute value before they are
delivered. fix bug #12421
2007-09-26 07:58:57 -06:00
Zou Nan hai
638a5e0382
fix a bug in 965 ARB_occlusion_query,
...
fd.o bug #12132
2007-09-26 07:58:29 -06:00
Brian
6d777bf055
fix DrawRangeElements error msg
2007-09-23 13:57:36 -06:00
Brian
ae6d4e8bc0
fix -D_BSD_SOURC
2007-09-20 18:42:59 -06:00
Brian
f2728724d3
fix for __IBMC__
2007-09-20 15:12:42 -06:00
Brian
bc95b34cce
added bluegene-xlc-osmesa, fortran fixes
2007-09-20 15:12:21 -06:00
Brian
9eb89616af
fixes for bluegene-xlc-osmesa config
2007-09-20 15:10:35 -06:00
Brian
f7713a6d81
Added bluegene-xlc-osmesa config (Alexander Neundorf)
2007-09-20 15:09:54 -06:00
Brian
1cec9b727a
fix bug 10604
2007-09-14 13:43:58 -06:00
Brian
18a4730f5b
From trunk: mesa: bind VBO_ATTRIB_XXX to correct input array when executing a display list. fix #10604
...
This also fixes Bill Mitchell's Fortan/plot bug.
2007-09-14 13:43:09 -06:00
Brian
1342aefcdd
updated link
2007-09-14 09:57:16 -06:00
Brian
1fd4b1e702
fix glCopyPixel/glPixelZoom bug 12417)
2007-09-14 09:57:08 -06:00
Brian
32dff44c28
fix copypixels overlap test bug ( #12417 )
2007-09-14 09:56:05 -06:00
Brian
e7c2ae476a
fix ARB fp/vp parsing bug 12313
2007-09-13 11:42:48 -06:00
Brian
a66301f83d
added program_error2() function for better error reporting
2007-09-13 11:41:44 -06:00
Brian
a5f7d56221
Fix state.texgen parsing error (bug 12313).
...
Replace *(*inst++) with *(*inst)++ in a few places.
2007-09-13 11:29:51 -06:00
Brian
140080c1ec
added .pc.in files to tarballs
2007-09-13 09:27:06 -06:00
Brian
ef43af6d43
added DSTDIR, pkg-config items
2007-09-12 10:12:20 -06:00
Brian
949d0532f0
updated with pkg-config info
2007-09-12 10:12:06 -06:00
Dan Nicholson
96efc76d74
pkg-config support
2007-09-12 10:03:31 -06:00
Dan Nicholson
6ca0d63692
DESTDIR support.
2007-09-12 10:01:06 -06:00
Xiang, Haihao
95fc2485e2
i965: fix bug#11925
2007-09-12 16:58:45 +08:00
Xiang, Haihao
d6ce1e4834
i965: fix #11378
2007-09-12 15:29:11 +08:00
Brian
2cc2b12fc7
fix indirect rendering crash
2007-09-11 10:59:10 -06:00
Brian
2259f81cf7
In _mesa_make_current(), don't unbind FBOs from the old context.
...
This fixes the X server crash reported by KeithP on Aug 29.
The old context's FBOs will be unreferenced during context destruction so
there's no memleak with this change.
2007-09-11 10:59:10 -06:00
Brian
791f12880f
Update depth test state when binding new framebuffer object
2007-09-11 09:25:49 -06:00
Brian
7aa7373a64
fix comment
2007-09-11 09:25:49 -06:00
Xiang, Haihao
2f186a190f
i965: take the secondary color into account when drawing
...
bitmap. fix#10688
2007-09-11 17:03:07 +08:00
Xiang, Haihao
357893a873
i965: limit on LOD Bias, fix#11987
2007-09-11 17:02:15 +08:00
Brian
a17881da5f
clean-up (see bug 12317)
2007-09-10 08:36:01 -06:00
Brian
4872ee83a9
updated VC7 project files
2007-09-05 10:05:48 -06:00
Christoph Kubisch
5ec222a832
updated VC7 project files
2007-09-05 10:01:58 -06:00
Brian
40438b3440
Use temporary matrix in __gluInvertMatrixd() to fix aliasing problem (see bugs 12269, 6748)
2007-09-03 16:21:12 -06:00
Xiang, Haihao
e0b80660c8
fix bug#11009
2007-09-01 15:31:49 +08:00
Xiang, Haihao
a2016301f5
i965: Take the upper limitation on LOD into account.
2007-09-01 15:14:58 +08:00
Brian
7ec6729fb6
sync with trunk, fixing bug 12239
2007-08-31 16:36:17 -06:00
Brian
837a2cf72e
fix i965 bugs, x86-64 bugs
2007-08-31 16:35:38 -06:00
Roland Scheidegger
0adca14536
fix another occurence of movaps which might not be aligned
2007-08-31 00:06:30 +02:00
Brian
57b0f66c6d
s/movaps/movups/ (see bug 12216)
2007-08-30 08:41:43 -06:00
Xiang, Haihao
e47e7a9571
i965: store read drawable info in intel_context. Some OpenGL
...
operations are based on read drawable. fix bug#10136.
2007-08-30 14:06:26 +08:00
Xiang, Haihao
68ca01560f
i965: check NULL pointer. fix bug#12193
2007-08-30 14:06:19 +08:00
Xiang, Haihao
64f1c91fcb
i965: samplers group in fours in WM_STATE. fix bug#9415
2007-08-30 14:05:56 +08:00
Xiang, Haihao
7d33f94198
i965: flush batch buffer when getting the maximum. This makes
...
some 3D programs such as pymol work well.
2007-08-30 14:05:39 +08:00
Julien Cristau
369cda3752
Prepare changelog for upload.
2007-08-28 12:11:47 +02:00
Julien Cristau
846078d06f
Delete generated files.
2007-08-28 12:07:45 +02:00
Julien Cristau
b18500d56e
* Update to latest git (from mesa_7_0_branch)
...
+ adds support for some new intel chipsets (i915 and i915_tex dri drivers)
(closes : #437333 )
+ broken inline asm in dri drivers fixed (closes : #423739 )
2007-08-28 12:07:25 +02:00
Julien Cristau
7d92c50490
Merge branch 'mesa_7_0_branch' of git.freedesktop.org:/git/mesa/mesa into debian-unstable
2007-08-28 11:06:22 +02:00
Brian
d69a596193
Fixed bugs 6748, 12141
2007-08-27 10:48:31 -06:00
Colin McDonald
8aa4ae638e
fixed problem with big glDrawArrays (see bug 12141)
2007-08-27 10:47:49 -06:00
Brian
3069f34841
new __gluInvertMatrix() function (Mesa bug 6748)
2007-08-27 10:36:25 -06:00
Adam Jackson
b3788a0e4f
Unbreak Linux builds with -fvisibility=hidden.
2007-08-24 08:49:59 +01:00
Brian
582bc029ab
remove CallDepth++/-- accidentally removed in prev commit
2007-08-24 08:45:27 +01:00
Brian
e9e3099433
remove unneeded CallStack array
2007-08-23 08:17:35 +01:00
Brian
4fc561cc7b
refactor bounds checking code
2007-08-20 13:12:10 +01:00
Brian
ad3e3a0b99
don't map buffer in _mesa_validate_DrawElements() unless needed
2007-08-20 12:55:26 +01:00
Brian
bfb8c849cb
Remove recent texobj refcount debug/logging code.
2007-08-16 09:11:11 +01:00
Michel Dänzer
09dd25b5d1
i915tex: Unreference texture buffers on context destruction.
...
Not doing this could cause the buffers to leak under some circumstances.
2007-08-16 08:45:16 +02:00
Roland Scheidegger
c48efb1dbe
suppress warning about ncon visuals (bug #6689 )
2007-08-16 02:43:45 +02:00
Brian
5408acb6b7
log deleting/binding of FBOs
2007-08-15 15:47:28 +01:00
Brian
15481160f9
more debug output (context destroy, fb destroy)
2007-08-15 12:52:00 +01:00
Brian
00ccff03a5
Rewrite quite a bit of the code for glPush/PopAttrib() for texture state.
...
Remove the Saved1D/2D/etc fields from gl_texture_attrib in mtypes.h
Use a new texture_state struct in attrib.c that has the extra information
for restoring texture object state and saving references to the texture
objects (so they can't accidentally get deleted while referenced by the
attribute stack). All the texobj refcounting is mutex-protected now.
2007-08-15 11:21:06 +01:00
Brian
21594921b1
copy Target in _mesa_copy_texture_object()
2007-08-15 11:18:38 +01:00
Brian
42c91eebc9
Added _mesa_free_attrib_data() to free anything left in the attribute stack upon context destruction.
...
Also, a bit more refcount debug info.
2007-08-15 10:10:02 +01:00
Brian
88273e08b4
more tex obj ref count debugging (temporary)
2007-08-15 08:55:03 +01:00
Brian
08f7fb45ef
added some temporary texobj ref counting debug output
2007-08-14 19:45:02 +01:00
Brian
75ebda3ce6
Fix a few more problems with freeing FBOs/textures during context destruction.
...
Free FBOs before textures since the later may be referenced by the former.
Need to bind the context we're destroying if there isn't a current context
so that ctx->DeleteTexture() etc can be used.
2007-08-14 11:57:16 +01:00
Brian
53ff15fcbf
fix blending/banding bug
2007-08-13 21:17:04 +01:00
Dan Torop
72adb70ee2
fix spantmp2 READ_RGBA inline asm ( #11931 )
2007-08-13 21:14:51 +01:00
Brian
960d41fcfe
added more i915/945 chipsets
2007-08-13 21:11:17 +01:00
Brian
0c4e35b070
Add PCI IDs for the G33, Q33, and Q35 chipsets.
...
Conflicts:
src/mesa/drivers/dri/i915/i915_texstate.c
src/mesa/drivers/dri/i915/intel_context.c
src/mesa/drivers/dri/i915/intel_context.h
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i915/intel_tex.c
2007-08-13 21:06:33 +01:00
Wang Zhenyu
c53f1cb813
i915tex: Add support for 945GME
2007-08-13 21:00:28 +01:00
Brian
f6696cc15e
free any render/framebuffers left in hash tables when freeing shared state
2007-08-13 17:39:05 +01:00
Michel Dänzer
fef9a41fe4
i915tex: Make sure pitch is aligned properly for render-to-texture.
...
Just always align texture pitch to multiples of 64 bytes for now, pending a
more sophisticated scheme to do it only when really necessary.
2007-08-13 13:22:43 +02:00
Brian
e279a0a076
Implement mutex/locking around texture object reference counting.
...
Use new _mesa_reference_texobj() function for referencing/unreferencing
textures. Add new assertions/tests to try to detect invalid usage of
deleted textures.
2007-08-13 11:28:52 +01:00
Brian
88c8aaed96
fix link to 7.0.1 relnotes
2007-08-09 15:59:38 +01:00
Julien Cristau
34beaefe1c
Prepare changelog for upload.
2007-08-09 16:00:58 +02:00
Julien Cristau
10b828f193
New upstream release.
2007-08-09 11:56:00 +02:00
Julien Cristau
43e6260ed0
Merge tag 'mesa_7_0_1' into debian-experimental
2007-08-09 11:25:42 +02:00
Brian
62cbbd7226
fix byte swap bug for GLuint stencil indexes (bug 11909)
2007-08-09 08:45:01 +01:00
Brian
f7cbe7fcee
move free() after dereference (bug 11878)
2007-08-07 22:06:48 +01:00
Brian
d8e4ff9079
fix potential NULL dereference (bug 11879)
2007-08-07 21:56:39 +01:00
Brian
510ff27eda
remove SHELL line, replace -e test with new logic (Daniel Stone)
2007-08-07 21:52:22 +01:00
Brian
5abf055100
fix potential NULL dereference (bug 11880)
2007-08-07 21:46:42 +01:00
Brian
4bb5721f6b
fix swizzle error test (bug 11881)
2007-08-07 21:43:46 +01:00
Brian
c41ab70d3a
initial 7.0.2 notes
2007-08-07 08:44:35 +01:00
Brian
a05e403bf2
fix bug 9962 (vbo splitting) as in trunk
2007-08-07 08:43:31 +01:00
Brian
2f57e0f71d
Merge branch 'mesa_7_0_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into mesa_7_0_branch
2007-08-07 08:21:50 +01:00
Brian
95a2eb9767
fix even-sized point positioning (bug 11874)
2007-08-07 08:20:18 +01:00
Brian
55175daed7
added md5 sums
2007-08-03 13:54:55 -06:00
Brian
ae16a51e95
added GLU bug fixes
2007-08-03 13:39:09 -06:00
Brian
4398d67546
update 7.0.1 release info/date
2007-08-03 13:32:47 -06:00
Brian
c93738687c
remove -rc2
2007-08-03 13:32:28 -06:00
Brian
799492e606
add OSMESA_LIB_NAME
2007-08-03 10:08:16 -06:00
Brian
f33ff071bb
added -lm
2007-08-03 07:24:33 -06:00
Brian
99e854743c
added bluegene-osmesa
2007-08-02 14:24:05 -06:00
Brian
6f79062d91
OSmesa on BlueGene (Alexander Neundorf)
2007-08-02 14:22:52 -06:00
Brian
2f682c3995
fix stencil value masking bug 11805, and fix sizeof() bug
2007-08-02 09:08:53 -06:00
Brian
067370e68f
fix invalid pointer usage in bezierPatchDeleteList(), bug 11807
2007-08-02 08:40:58 -06:00
Brian
2aa439a6a4
fix double free()s (bug 11808)
2007-08-02 08:38:10 -06:00
Brian
b477182dc3
s/MAX_TEXTURE_LEVELS/SIS_MAX_TEXTURE_LEVELS/ and add assertion (bug 11806)
2007-08-02 08:35:27 -06:00
Michel Dänzer
a8964ca89e
i915tex: Better attempt to release miptree when overriding texture image.
...
The previous approach could lead to crashes in FBO code that dereferences the
miptree struct pointer unconditionally.
2007-08-02 12:14:03 +02:00
Brian
4f0e92d07c
Merge branch 'mesa_7_0_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into mesa_7_0_branch
2007-08-01 17:03:09 -06:00
Brian
577f4e8a5f
Obsolete
2007-08-01 11:45:47 -06:00
Brian
0586d9fe56
fix error code test limit (bug 11795)
2007-08-01 11:27:47 -06:00
Michel Dänzer
1f0d9bf05e
i915tex: Missing piece of SetTexOffset hook implementation for I830 generation.
2007-08-01 17:46:32 +02:00
Michel Dänzer
8bcae2a527
i915tex: Implement SetTexOffset hook.
...
Only build tested for I830 generation.
2007-08-01 17:46:31 +02:00
Michel Dänzer
35ca9aae91
r300: Implement SetTexOffset hook.
2007-08-01 17:46:30 +02:00
Michel Dänzer
6cdd2bf8d7
Add interfaces for overriding texture images with driver specific 'offsets'.
...
To be used by AIGLX for GLX_EXT_texture_from_pixmap without several
additional data copies.
2007-08-01 17:46:29 +02:00
Brian
ce7d175adb
fix mem leak (bug 11793)
2007-08-01 08:42:13 -06:00
Brian
1904fd095f
fix mem leak (bug 11791)
2007-08-01 08:42:09 -06:00
Brian
897d0ac5cc
fix some FreeBSD issues
2007-07-31 14:57:54 -06:00
Brian
e262d0182f
fix failure caused by undeclared variable (bug 11783)
2007-07-31 09:43:40 -06:00
Brian
aa5b748c10
glGetAttribLocation always returned 1 (bug 11774)
2007-07-31 09:29:31 -06:00
Julien Cristau
c6728df4a3
Merge tag 'mesa_7_0_1_rc2' into debian-experimental
2007-07-31 04:00:13 +02:00
Brian
3c182c5bc8
Added sunos5-v9-cc-g++ config (Roland Egger)
2007-07-30 09:00:09 -06:00
Brian
1b5677847b
_mesa_pack_bitmap() fix from trunk
2007-07-30 08:13:05 -06:00
Brian
1be59a9dbe
dlist polygon stipple fix from trunk
2007-07-30 08:12:29 -06:00
Brian
55c2178ad4
fix bug 11754
2007-07-29 18:28:09 -06:00
Jan Dvorak
3e3d392e1c
fix glPointParameteriv bug 11754
2007-07-29 18:26:55 -06:00
Julien Cristau
593de57fa2
Prepare changelog for upload.
2007-07-27 20:18:21 +02:00
Julien Cristau
04b0e43ea6
New upstream release candidate.
2007-07-27 19:59:38 +02:00
Julien Cristau
04eee290c8
Merge branch 'mesa_7_0_branch' of git://anongit.freedesktop.org/git/mesa/mesa into debian-experimental
2007-07-27 19:58:30 +02:00
Brian
756a7a4e4b
minor tweaks
2007-07-27 11:44:55 -06:00
Brian
121b4ac220
More Mingw32 fixes from Zhang (zxpmyth@yahoo.com.cn)
2007-07-27 11:12:21 -06:00
Brian
cdbd5db3af
release candidate 2
2007-07-27 11:10:00 -06:00
Brian
b2240f6ad4
fix bug 11731
2007-07-26 15:33:39 -06:00
Brian
33814a55f8
Fix function call bug 11731. Also, fix up IR_CALL/IR_FUNC confusion.
2007-07-26 15:32:34 -06:00
Brian
a57c5a417b
generate error upon writing to varying var in fragment program (bug 11733)
2007-07-26 11:39:37 -06:00
Brian
ff1a28de17
clamp float colors
2007-07-26 08:19:40 -06:00
Brian
772f57f99b
call ctx->Driver.NewProgram() instead of _mesa_new_program()
2007-07-24 09:56:54 -06:00
Brian
dacee32b8b
fix logic error, typos
2007-07-24 09:19:44 -06:00
Brian
fa1a3eb06d
fix GLX_STEREO bug
2007-07-23 16:54:35 -06:00
Brian
bd4817ca54
fix GLX_STEREO handling (bug 11705)
2007-07-23 16:51:03 -06:00
Julien Cristau
d3a160e217
New upstream release candidate.
2007-07-23 16:39:48 +02:00
Julien Cristau
c5837f2791
Merge branch 'mesa_7_0_branch' of git://anongit.freedesktop.org/git/mesa/mesa into debian-experimental
2007-07-23 16:28:56 +02:00
Julien Cristau
490bd43f18
Merge branch 'debian-unstable' of git+ssh://git.debian.org/git/pkg-xorg/lib/mesa into debian-experimental
...
Conflicts:
debian/changelog
2007-07-23 16:28:10 +02:00
Brian
005eea249c
Fix a number of MINGW32 issues (Zhang <zxpmyth@yahoo.com.cn>)
2007-07-21 11:27:22 -06:00
Brian
9747de8ec6
drop VC6 and VC7 project files until updated
2007-07-21 10:03:30 -06:00
Brian
849a9799d0
fix bug 11588
2007-07-13 16:37:18 -06:00
Jan Dvorak
e32ae4fe33
fix shader/info string length queries (bug 11588)
2007-07-13 16:35:19 -06:00
Brian
4595389c4c
fix width/depth mix-up (bug 11577)
2007-07-12 21:43:39 -06:00
Brian
e8ccc7cc49
Merge branch 'mesa_7_0_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into mesa_7_0_branch
2007-07-12 14:49:56 -06:00
Brian
673d21047a
fix swizzle-related bug 11534
2007-07-12 14:49:24 -06:00
Julien Cristau
6186261589
Prepare changelog for upload.
2007-07-11 05:51:34 +02:00
Julien Cristau
45310e219c
Relax libgl1-mesa-dev dependency on libgl1-mesa-glx.
...
Change the >= ${source:Version} dependency to >= ${source:Upstream-Version}.
This way libgl1-mesa-dev stays installable after a minor revision bump on
architectures where mesa isn't built yet.
2007-07-11 05:45:30 +02:00
Julien Cristau
250f6b2c88
Replace ${Source-Version} with ${source:Version} in one remaining spot.
2007-07-11 05:34:30 +02:00
Michel Dänzer
fdefc2bbda
i915tex: Better procedure for dropping batchbuffer on virtual resolution change.
...
The previous procedure would often result in a GPU lockup.
2007-07-10 11:02:18 +02:00
Michel Dänzer
2079df8527
i915tex: Only wait for vblank when really necessary.
...
This avoids superfluous waits for vblank timing out under some circumstances.
2007-07-10 10:54:51 +02:00
Michel Dänzer
b53659452c
Clear pointers to freed cliprects.
...
Not doing this could lead to double frees under rare circumstances.
2007-07-10 10:49:28 +02:00
Michel Dänzer
46f1d6653e
Remove dubious compile-time test for pre-2.4 Linux kernels.
...
LINUX_VERSION_CODE shouldn't be used by userspace code, it can be defined empty
these days.
If anybody still cares about 2.2 kernels, they should reinstate this as a
proper runtime test.
2007-07-10 10:34:10 +02:00
Brian
c1938a60f7
Fix zero-size texture checking in _mesa_test_proxy_teximage(), bug 11309
2007-07-08 10:04:14 -06:00
Brian
d65110f352
Check if 'indices' is NULL, bug 11314
2007-07-08 09:21:21 -06:00
Brian
9fa3bbcb5a
check depthScale value for optimized ushort->uint case (fixes bug 11474)
2007-07-08 08:53:09 -06:00
Brice Goglin
19e51ecbe6
libgl1-mesa-dev does not need to depend on libgl1-mesa-dri, libgl1-mesa-glx is enough.
...
libgl1-mesa-glx was included in libgl1-mesa-dri before 6.4.1-0.1,
so libgl1-mesa-dev had to depend on libgl1-mesa-dri at this point.
Since libgl1-mesa-dri only contains the DRI modules now, it is not
required anymore for libgl1-mesa-dev.
2007-07-07 22:17:35 +02:00
Brian
99d62f2922
fix i915 polygon stipple bug
2007-07-06 16:53:28 -06:00
Brian
284743cafe
add GL_QUADS to i915_reduced_primitive_state() to fix redbook/polys demo
2007-07-06 16:52:34 -06:00
Xavier Bachelot
08d7307b2a
call glutInit(), bug 11486
2007-07-06 12:54:40 -06:00
Brian
ef6a64abe6
fix a syntax error (missing right-paren)
2007-07-05 16:04:10 -06:00
Brian
18bfa52ef7
fix bug 11475
2007-07-05 09:42:07 -06:00
Brian
d62be2652c
Copy from Mesa master. Includes fixes for bugs 11475 and 11448.
2007-07-05 09:40:37 -06:00
Julien Cristau
31f3433635
Prepare changelog for upload.
2007-07-05 00:56:56 +02:00
Samuel Thibault
639eaceee7
Fix build on hurd-i386.
...
Build libgl1-mesa-glx without direct rendering support on that arch, and
don't build any dri driver.
2007-07-05 00:48:30 +02:00
Eric Anholt
ea53ff80af
fix LogicOp/bitmap problem, bug 11133
2007-07-04 07:37:28 -06:00
Brian
feeca1bcbc
add fbdev/ to DEMO_FILES
2007-07-03 15:46:48 -06:00
Brian
12e7278c08
document GLSL fixes
2007-07-03 12:21:11 -06:00
Brian
45b5c44eb9
bring over Roland's DOT3_RGBA fix from master
2007-07-03 12:20:52 -06:00
Brian
e3456c1028
added vec2(vec4) constructor, bug 11404
2007-07-03 11:42:03 -06:00
Brian
327fb38573
add code for stpq, rgba writemasks in make_writemask(), bug 11404
2007-07-03 11:41:07 -06:00
Brian
1d25d9e15f
Bump version to 7.0.1
2007-07-03 10:04:41 -06:00
Brian
cc7cee3f48
Revert the version of libOSMesa.so to 6.5.3 to avoid linking issues that were caused by bumping to 7.0
2007-07-03 10:03:01 -06:00
Brian
d7062710cd
use _mesa_unpack_stencil_span() in draw_stencil_pixels(), bug 11457
2007-07-03 08:58:03 -06:00
Julien Cristau
3e21f52796
Make libgl1-mesa-swx11 depend on libosmesa6
...
libgl1-mesa-swx11 used to contain libOSMesa.so.6, so programs linked against
it don't necessarily depend on libosmesa6; their dependencies were broken
since mesa 6.5.2-1.
2007-07-03 05:34:07 +02:00
Brian
9bfba734d8
add const to wglSetPixelFormat() to match .h declaration
2007-07-02 10:15:39 -06:00
Julien Cristau
0511d9a9d2
Fix merge and delete symlinks which aren't in the tarball.
2007-07-01 02:55:59 +02:00
Brian
aaebf2f47e
regenerated
2007-06-29 07:51:49 -06:00
Brian
23f8d77b38
Add a few missing GL 2.0 entrypoints, regenerate related files.
...
Specifically:
glVertexAttrib4bv
glVertexAttrib4iv
glVertexAttrib4ubv
glVertexAttrib4uiv
glVertexAttrib4usv
2007-06-28 16:38:48 -06:00
Samuel Thibault
498b4dbba4
Fix build on hurd-i386.
...
Build libgl1-mesa-glx without direct rendering support on that arch, and
don't build any dri driver.
2007-06-28 22:33:05 +01:00
Julien Cristau
ecc42e79ae
Merge unreleased changelog entries
2007-06-28 22:01:05 +01:00
Julien Cristau
0bf8ed523d
* Add a shlibs file for libgl1-mesa-swx11-i686.
2007-06-28 21:58:42 +01:00
Brian
87d22ee0fe
initial 7.0.1 relnotes
2007-06-28 08:11:36 -06:00
zhang
52e25f63d4
a variety of fixes for MingW
2007-06-28 08:10:09 -06:00
Brian
f3fb67972b
remove obsolete t_save_api.c
2007-06-28 07:43:32 -06:00
Brian
6400756364
remove obsolete sources
2007-06-28 07:21:59 -06:00
David Nusinow
d71d04bf6f
Bite the bullet and add myself to uploaders
2007-06-27 22:54:52 -04:00
David Nusinow
af90259e09
Merge remote branch 'origin/debian-experimental' into debian-experimental
...
Conflicts:
debian/changelog
src/mesa/drivers/dri/r300/radeon_lock.c
2007-06-27 22:53:04 -04:00
David Nusinow
7c9762f698
Changelog bump
2007-06-27 21:32:51 -04:00
David Nusinow
b2e67fdb7c
Merge branch 'upstream-experimental' into debian-experimental
...
Conflicts:
.gitignore
progs/miniglx/miniglxtest.c
src/glx/mini/Makefile
src/glx/mini/miniglx.c
src/mesa/drivers/dri/r300/.gitignore
2007-06-27 21:29:16 -04:00
Brian
d59f0314bd
md5 sums for 7.0
2007-06-22 16:50:24 -06:00
Brian
131baefac3
fix date for 7.0 release
2007-06-22 16:41:36 -06:00
Brian
a450078b67
update version
2007-06-22 16:40:17 -06:00
Brian
f6b041bf6c
bring in Eric's FreeBSD fixes for -pthread
2007-06-22 15:40:46 -06:00
Brian
4f340d181a
set tentative 7.0 release date
2007-06-20 19:59:15 -06:00
Julien Cristau
74a11701f3
Shorten the one-line synopsis of various packages.
...
They're cut off in .changes files if they're too long.
Thanks, Marc 'HE' Brockschmidt!
2007-06-13 19:36:49 +02:00
Brian
b58e38e936
fix TEXTREL problem (bug 7459)
2007-06-12 09:52:05 -06:00
Brian
8713cb48a8
Fix TEXREL issues when using GLX_USE_TLS (see bug 7459).
2007-06-12 09:46:12 -06:00
Brian
277c5e57ed
fix GLX_USE_TLS breakage
2007-06-12 08:57:39 -06:00
Brian
b3d62d5af5
disable depthBits check in check_compatible(), see bug 11161
2007-06-08 12:36:00 -06:00
Brian
9c0f0c8d81
remove old comment about DEFAULT_SOFTWARE_DEPTH_BITS
2007-06-08 12:35:37 -06:00
Brian
18a0a2a7ac
document bug 11049 fix
2007-05-23 16:50:22 -06:00
Brian
8b99d9e33c
restore GL_TEXTURE_LOD_BIAS in _mesa_PopAttrib(), bug 11049
2007-05-23 16:49:19 -06:00
Brian
01e7e153e3
document point attentuation fix
2007-05-23 08:59:02 -06:00
Brian
0ad4ca24d2
Fix point attentuation problem (bug 11042)
...
ctx->Point._Attentuation was computed in wrong place and the VB->Eye coord Z
array wasn't indexed correctly in run_point_stage().
2007-05-23 08:56:45 -06:00
Brian
724a155552
if light position is local, treat it as a homogeneous coord and divide by W (see bug 11009)
2007-05-21 10:55:15 -06:00
Julien Cristau
e1b0715dd6
Prepare changelog for upload.
2007-05-21 11:35:28 +02:00
Julien Cristau
a5c6598966
Merge remote branch 'origin/debian-unstable' into debian-experimental
...
Conflicts:
debian/changelog
2007-05-21 11:33:42 +02:00
Roland Scheidegger
d38b74a316
fix miptree layout (i915) for small compressed mipmaps
...
This seems to work now. Also fix i945 set_level_info, need to match i915
behaviour for storing mip height, as it's assumed to be the mip width
(in texels) elsewhere and the division by 4 is done later (untested).
2007-05-19 04:43:50 +02:00
Roland Scheidegger
54cab4b47b
fix copy & paste bug of previous commit, breaking dxt5 formats
2007-05-19 03:56:06 +02:00
Roland Scheidegger
c093666bc5
fix miptree comparison with compressed textures
...
TexelBytes is always 0 with compressed textures, thus would never match
mt->cpp. This caused constant blitting around of textures, and it fixes at
least the horrible performance of Q3 if compressed textures are enabled.
2007-05-19 01:39:54 +02:00
Roland Scheidegger
04972f6761
fix small s3tc mipmaps ( #10968 )
...
make sure that always whole blocks are uploaded.
(May still not work correctly if the top mip map is not at least a full block,
that is 4 pixels wide - not sure, but probably doesn't happen in real world)
2007-05-19 01:39:16 +02:00
Brian
67f8234622
set version to 7.0
2007-05-18 09:41:34 -06:00
Brian
201d6dbd9c
fix STATE_HALF_VECTOR value (bug 10987)
2007-05-18 09:35:18 -06:00
Julien Cristau
1865ef6fd4
Prepare changelog for upload.
2007-05-18 13:36:42 +02:00
Ian Romanick
fbcac5aa83
Refactor determining whether a texture target can use compressed format
2007-05-17 14:45:25 -07:00
Brian
2b72ab8f8f
document glXDestroyPbuffer fix
2007-05-17 15:30:39 -06:00
Brian
0ea97b9408
In DestroyPbuffer(), use GetReq() intead of GetReqExtra(). See bug 10983.
2007-05-17 15:26:39 -06:00
Brian
28683ac7c0
version 7.0, not 7.1
2007-05-17 09:07:25 -06:00
Brian
c72e3e210f
version should be 7.0
2007-05-17 09:04:19 -06:00
Ian Romanick
b0fe0d8a55
Bring framebuffer_texture's error checking more in-line with the spec.
2007-05-15 13:42:25 -07:00
Brian
c128c3ce8c
master/trunk is now for Mesa 7.1 devel: bump versions
2007-05-14 14:30:36 -06:00
Bruce Merry
6efdf648f5
in __glXGetArrayType() return type, not enabled (bug 10938)
2007-05-14 09:38:23 -06:00
Brian
6a587c0124
comment about fixing uniform structs
2007-05-14 09:38:23 -06:00
Oliver McFadden
524c3336c4
r300: Enable the non-user-buffers code to compile.
2007-05-13 13:38:38 +00:00
Oliver McFadden
0e7e211055
r300: Use e32(0x0) rather than e32(0); makes greping for hex values easier.
2007-05-13 12:59:41 +00:00
Oliver McFadden
4e641bf3e9
r300: Use the defined values when writing to R300_RS_ROUTE_0.
2007-05-13 12:56:59 +00:00
Oliver McFadden
2189ff5e51
r300: Use the defined values when writing to R300_SE_VTE_CNTL.
...
You can verify this is correct with the following code.
assert (0x043f ==
(R300_VTX_W0_FMT | R300_VPORT_X_SCALE_ENA | R300_VPORT_X_OFFSET_ENA
| R300_VPORT_Y_SCALE_ENA | R300_VPORT_Y_OFFSET_ENA |
R300_VPORT_Z_SCALE_ENA | R300_VPORT_Z_OFFSET_ENA));
2007-05-13 12:43:40 +00:00
Oliver McFadden
33a73466ae
r300: Added a TODO comment for the R300_VAP_INPUT_ROUTE_[01]_0 values.
2007-05-13 12:36:27 +00:00
Oliver McFadden
13c0abd8a7
r300: Changed some more functions to static functions.
...
This required reordering some of the functions which is why the diff is a little
larger.
2007-05-13 09:09:30 +00:00
Oliver McFadden
82de92c0fb
r300: Changed a couple of functions in r300_state.c to static functions.
2007-05-13 08:59:54 +00:00
Oliver McFadden
e4b8481f39
r300: Removed the unused r300_aos_rec (replaced by r300_dma_region) structure.
2007-05-13 08:43:30 +00:00
Oliver McFadden
b5990cec90
r300: Use #if 0 for disabled code, rather than commenting it out.
2007-05-13 08:28:51 +00:00
Oliver McFadden
d93642251e
r300: Removed a couple of obsolete/commented out includes.
2007-05-13 08:21:50 +00:00
Oliver McFadden
c66fd808ac
r300: A few very minor indenting corrections.
2007-05-13 07:51:41 +00:00
Oliver McFadden
73449270bb
r300: Use the defined values for the interpolater (interp_magic) magic values.
2007-05-13 07:44:20 +00:00
Oliver McFadden
6f56e68ee3
r300: Use the defined values when writing to R300_VAP_INPUT_CNTL_[01].
...
You can verify this is correct with the following code.
assert (0x00000001 == R300_INPUT_CNTL_0_COLOR);
assert (0x00000405 ==
(R300_INPUT_CNTL_POS | R300_INPUT_CNTL_COLOR |
R300_INPUT_CNTL_TC0));
2007-05-13 06:39:24 +00:00
Oliver McFadden
65fae19383
Revert "r300: Perform the locking closer to the DRM texture upload call."
...
This reverts commit 93881edb46
.
2007-05-12 17:18:57 +00:00
Roland Scheidegger
b78aec5767
bring over recent radeonMakeCurrent fixes for r300 to radeon/r200
2007-05-12 11:20:24 +02:00
Oliver McFadden
6bae7d40f7
r300: Removed the name argument to ALLOC_STATE; do the name via the macro.
2007-05-12 01:53:56 +00:00
Oliver McFadden
5f1f1f5704
r300: Renamed r300DoEmitState to r300EmitAtoms.
2007-05-12 01:13:54 +00:00
Oliver McFadden
93881edb46
r300: Perform the locking closer to the DRM texture upload call.
...
This might help if with attaching GDB if the driver gets into a -EAGAIN loop.
2007-05-12 00:14:33 +00:00
Oliver McFadden
56b99ace19
r300: Removed unused FORCE_32BITS_ELTS define.
2007-05-11 23:35:37 +00:00
Oliver McFadden
3aad47679e
r300: Removed the unused CPT macro.
2007-05-11 23:33:47 +00:00
Oliver McFadden
dac5303692
r300: Moved r300PackFloat24 near r300PackFloat32.
2007-05-11 23:32:03 +00:00
Oliver McFadden
64b03f33ee
r300: Added insert_at_tail to the ALLOC_STATE macro.
2007-05-11 23:13:08 +00:00
Oliver McFadden
b8b0dd1e20
Revert "r300: Merged radeon_span.c."
...
This reverts commit 0aa998b2ab
.
2007-05-11 23:03:40 +00:00
Oliver McFadden
93f9e61f43
r300: Corrected another error; regexp replaced something it shouldn't have.
2007-05-11 22:26:47 +00:00
Oliver McFadden
f405fbb36d
r300: Corrected some macro errors from the previous commit.
2007-05-11 22:23:31 +00:00
Oliver McFadden
5a09ea01e0
r300: Reduced the diff on radeon_lock.[ch].
2007-05-11 22:21:19 +00:00
Oliver McFadden
98d25a5a28
r300: Initial work on merging radeon_lock.[ch].
2007-05-11 22:02:52 +00:00
Oliver McFadden
0aa998b2ab
r300: Merged radeon_span.c.
2007-05-11 21:56:10 +00:00
Oliver McFadden
b6087270a0
r300: Cleaned up function names in r300_texstate.c.
2007-05-11 21:45:14 +00:00
Oliver McFadden
3f709f16ef
r300: Enable hardware 3D texture support. Fixes the stex3d demo.
2007-05-11 21:41:16 +00:00
Oliver McFadden
67363327e5
r300: Corrected a small error from 37cbf38c344012f9d6e938937dac3697b73721a8.
2007-05-11 21:41:16 +00:00
Oliver McFadden
bcaf8fc7b1
r300: Cleaned up the blend factor function.
2007-05-11 21:41:16 +00:00
Oliver McFadden
ef29d6af6c
r300: Removed the r300BindProgram function; mesa default does better checking.
2007-05-11 21:41:16 +00:00
Oliver McFadden
6a69bb5864
r300: Removed deprecated/disabled VBO code from r300_mem.c
...
Also removed a couple of unused fields from the r300_memory_manager structure.
2007-05-11 21:41:16 +00:00
Oliver McFadden
cbd29adbc8
r300: Indented r300_mem.c; I forgot this because it used to be radeon_mm.c.
2007-05-11 21:41:16 +00:00
Oliver McFadden
c729e67321
r300: Use __FUNCTION__ not __func__.
...
Just for consistency; most of the code already uses __FUNCTION__.
2007-05-11 21:41:16 +00:00
Oliver McFadden
5b23d36613
r300: Assert if the primitive type is unknown; this can't really happen.
2007-05-11 21:41:16 +00:00
Oliver McFadden
a87390504f
r300: Moved some code around in r300_render.c and general clean up.
2007-05-11 21:41:16 +00:00
Brian
cc358d861d
user-declared uniform structs not supported yet (see bug 10908)
2007-05-11 15:35:12 -06:00
Brian
749e093e33
don't ignore return value of _slang_codegen_global_variable()
2007-05-11 15:34:29 -06:00
Brian
eab6e16522
remove some unneeded code in init_machine()
2007-05-11 15:12:40 -06:00
Oliver McFadden
1b39be3790
r300: Removed some checking in r300NumVerts that is not needed.
...
According to Aapo Tahkola the OpenGL specification defines the behaviour when
there are not enough vertices for the primitive type, thus DRI drivers do not
need to perform verification on the number of vertices per primitive.
2007-05-11 19:45:28 +00:00
Oliver McFadden
69ff5a3dbc
r300: Function naming correction in r300_texmem.c.
2007-05-11 19:45:28 +00:00
Oliver McFadden
01ec508c7f
r300: Cleaned up function names in r300_state.c.
2007-05-11 19:45:28 +00:00
Oliver McFadden
d4e3b0b2c2
r300: Cleaned up function naming in r300_emit.c.
2007-05-11 19:45:28 +00:00
Oliver McFadden
b63c70666f
r300: Renamed r300_maos.c to r300_emit.c; it contains mostly emit code now.
2007-05-11 19:45:28 +00:00
Brian
c33c00764c
Remove unused FB_* tokens, re-indent code.
2007-05-11 08:41:34 -06:00
Brian
6c342ad859
When feeding back texcoords, don't divide by W. See bug 10913.
2007-05-11 08:39:18 -06:00
Patrick Baggett
86e4f52f3c
Fix some bugs related to loop counters and conditional branching.
2007-05-11 08:19:33 -06:00
Brian
f0707c789a
more indentation fixes, remove 'register' keywords
2007-05-10 17:33:14 -06:00
Brian
aed53ba525
re-indent some code
2007-05-10 17:30:44 -06:00
Brian
3dec7c57b0
document exp(), mod() fixes
2007-05-10 16:14:16 -06:00
Brian
544e441f53
regenerated
2007-05-10 16:14:16 -06:00
Brian
fa546c367d
Implement exp() in terms of __asm float_power. Fix typo in mod(vec4) function.
...
exp() was using __asm float_exp (OPCODE_EXP) but that computes base two, not e.
See bug 10907.
2007-05-10 16:14:15 -06:00
Ian Romanick
64a6a50155
Fix reversed enable logic in enable_texture
...
Fix bug inserted in commit c9e723e501
.
Discovered by Oliver McFadden (z3ro).
2007-05-10 15:01:52 -07:00
Oliver McFadden
c103453d4f
r300: Added TODO comment regarding texture tiling; I'm not sure about this.
2007-05-10 22:01:41 +00:00
Oliver McFadden
d7e3d1dc42
r300: Corrected a compile error introduced by one of the previous commits.
2007-05-10 21:40:20 +00:00
Oliver McFadden
02e44e41c8
r300: Removed obsolete start_index16_packet/start_index32_packet.
...
It's all in r300_render.c now.
2007-05-10 21:28:04 +00:00
Oliver McFadden
eed67a6e3e
r300: Moved some more emit code into r300_render.c.
2007-05-10 19:24:16 +00:00
Oliver McFadden
e856edb279
r300: Moved some more of the emit code into r300_render.c.
2007-05-10 19:24:16 +00:00
Brian
58239d2ae3
document tex sampler bug fix, code changes
2007-05-10 10:52:19 -06:00
Brian
2f6a0840c4
Replace pkg-config --cflags libdrm
with LIBDRM_CFLAGS, remove disabled lines, remove obsolete comments.
2007-05-10 10:51:54 -06:00
Ian Romanick
c9e723e501
Convert "bit" parameters to GLbitfield. Fix cut-and-paste bug in _mesa_IsEnabled
...
These changes are based on patch review comments from Brian Paul, Alan
Hourihane, and vehemens.
2007-05-10 08:20:42 -07:00
Ian Romanick
87a980a795
Refactor the loop in unbind_texobj_from_texunits.
...
Common code was pulled out of the per-target if-statment and put at the end
of the for-loop. The common code is guarded by a new variable, curr, that
is set to point to the unit's current target in each if-statement.
2007-05-10 08:20:41 -07:00
Ian Romanick
e282f89a38
Refactor queries of GL_(SOURCE|OPERAND)[012]_(ALPHA|RGB).
...
Most switch-statements that have cases for these enums already use code like:
const GLuint idx = pname - GL_SOURCE0_RGB;
... texUnit->Combine.SourceRGB[idx] ...
This patch just brings the remaining bits up to speed.
2007-05-10 08:20:41 -07:00
Ian Romanick
e2e4b60c7d
Refactor the way TestProxyTexImage is called in texture_error_check.
2007-05-10 08:20:41 -07:00
Ian Romanick
58dacc8df1
Refactor Enable / Disable and IsEnabled bits related to texture targets.
2007-05-10 08:20:41 -07:00
Oliver McFadden
b470189378
r300: Name the render functions in r300_render.c consistently.
2007-05-09 22:43:01 +00:00
Oliver McFadden
574bf4d346
r300: Return -1 for error.
2007-05-09 22:43:01 +00:00
Oliver McFadden
795ebb1a3b
r300: Probably a good idea to always check the vertices; it's a WARN_ONCE so the
...
performance impact is extremely minimal.
2007-05-09 22:43:01 +00:00
Oliver McFadden
d0be8b959a
r300: Added some more Doxygen documentation and made some functions static.
2007-05-09 22:43:01 +00:00
Oliver McFadden
672ecba175
r300: Removed the "texmicrotile" variable; the tiling code is disabled via a
...
compiler conditional anyway; probably broken?
2007-05-09 22:43:01 +00:00
Oliver McFadden
0dcea4bf8e
r300: Converted a few "if (0)" into "if (RADEON_DEBUG & DEBUG_TEXTURE)".
2007-05-09 22:43:01 +00:00
Brian
16c503f39a
Tweak the shell scripting for descending into and building subdirs.
...
In general, use this:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE)) || exit 1; \
fi \
done
Basically, silently skip missing subdirs but generate an error and stop if
there's a compilation or install problem.
This was done inconsistantly before. In once case, a missing subdir was
causing us to go into an infinte loop!
2007-05-09 16:23:11 -06:00
Oliver McFadden
4d5d4e1f97
r300: Cleaned up radeon_context.h slightly; mostly Indent.
2007-05-09 21:06:28 +00:00
Oliver McFadden
a9ab36b8f2
r300: radeon_span.h is now common code; radeon_span.c still needs some work.
2007-05-09 20:52:09 +00:00
Oliver McFadden
88288b614e
r300: Renamed the R300 memory manager from "radeon" to "r300"; it's R300
...
specific.
2007-05-09 20:49:49 +00:00
Oliver McFadden
a154706061
r300: Indented radeon_span.h
2007-05-09 20:41:27 +00:00
Oliver McFadden
6fe41a4c01
r300: Further reduced the radeon_span.c diff.
2007-05-09 20:36:48 +00:00
Oliver McFadden
f4a2b9f83d
r300: I have no idea why this was forced on, but it seems to work fine when
...
restored to the previous behaviour.
2007-05-09 19:30:59 +00:00
Oliver McFadden
56c2f7bb42
r300: Removed the dangerous R300_SPAN_DISABLE_LOCKING flag.
...
Enabling R300_SPAN_DISABLE_LOCKING would probably cause more lockups; I think
there are a couple of other little bugs in this code, too. It's best to remove
it.
2007-05-09 19:24:59 +00:00
Oliver McFadden
df747eb354
r300: Removed a bit of disabled code.
2007-05-09 18:44:56 +00:00
Oliver McFadden
ff7a41a159
r300: Don't need to include the deprecated r300_program.h in some files.
...
The only file that still requires r300_program.h is r300_ioctl.c; and it should
use the new defines in r300_reg.h!
2007-05-09 18:37:46 +00:00
Oliver McFadden
01fdb34b39
r300; Indent would destroy r300_reg.h, so add *INDENT-OFF*.
2007-05-09 18:31:04 +00:00
Christoph Bill
3c9e5cb0bd
r300: Added a few more Doxygen comments.
2007-05-09 18:25:12 +00:00
Christoph Bill
a6aa1f8016
r300: Added some Doxygen comments.
2007-05-09 18:24:06 +00:00
Oliver McFadden
967c2d220d
r300: Converted "rp" variables (r300_fragment_program) to "fp".
2007-05-09 18:14:42 +00:00
Oliver McFadden
0e6b7eb9c0
r300: Don't need to sleep here; might cause performance problems the first time.
2007-05-09 18:11:38 +00:00
Oliver McFadden
ed42bd6e20
r300: Removed the obsolete GLX_DIRECT_RENDERING define.
2007-05-09 18:07:16 +00:00
Oliver McFadden
2db667290a
r300: Further reduced the diff between radeon_span.[ch].
2007-05-09 18:06:10 +00:00
Oliver McFadden
cea0c2b144
r300: Indented both copies of radeon_span.[ch] in preparation for merging.
2007-05-09 18:01:43 +00:00
Oliver McFadden
2b5ef29a7b
r300: Removed the deprecated VTXFMT code.
...
This was okayed by Jerome Glisse and Keith Whitwell on the dri-devel IRC channel
and list, respectively.
2007-05-09 16:10:08 +00:00
Oliver McFadden
4ed59c6012
r300: The empty check_space doesn't and never has done anything; removed it.
2007-05-09 15:57:30 +00:00
Oliver McFadden
7e7b1f7c4d
r300: Fix a couple of static errors.
2007-05-09 15:38:18 +00:00
Oliver McFadden
c48e4c6f09
r300: Fixed indenting from previous commit
...
d28f6d9176
.
2007-05-09 15:28:38 +00:00
Oliver McFadden
4f20fe8a93
r300: Added R300_PRIM_NUM_VERTICES_MASK suggested by Jerome Glisse.
2007-05-09 15:21:13 +00:00
Oliver McFadden
d28f6d9176
r300: Fixed some more function names.
...
Note there might be some calls to the old function names in conditionally
disabled code, but I think I've got them all.
2007-05-09 15:19:05 +00:00
Oliver McFadden
fe6a2c4295
r300: Changed r300_run_vb_render calls to r300RunRender in some conditionally
...
disabled code.
2007-05-09 15:07:34 +00:00
Oliver McFadden
faf47d9f84
r300: Added a "not implemented yet" comment back.
2007-05-09 14:45:42 +00:00
Oliver McFadden
f9828f5c4f
Merge branch 'master' of git://anongit.freedesktop.org/git/mesa/mesa
2007-05-09 14:23:22 +00:00
Oliver McFadden
7b165de5f8
r300: Last of the indent changes. :)
2007-05-09 14:19:45 +00:00
Brian
62ef001de7
add pointers to git repo for drm/libpciaccess, replace & with &
2007-05-09 08:17:57 -06:00
Oliver McFadden
76d7b62cd2
r300: Indented r300_cmdbuf.[ch].
2007-05-09 14:17:16 +00:00
Oliver McFadden
901fc0de18
r300: Indented r300_state.[ch].
2007-05-09 14:12:34 +00:00
Oliver McFadden
c970811dab
r300: Indented r300_texmem.[ch].
2007-05-09 14:11:17 +00:00
Oliver McFadden
bb97694fad
r300: Indented r300_texstate.[ch]
2007-05-09 14:09:35 +00:00
Brian
516259d609
Clean-up in I830AllocVidMem(), s/int/unsigned long/ for ret variable.
2007-05-09 08:07:15 -06:00
Brian
3e4302fe3b
Check that texture units/samplers specified with glUniform1i() are legal.
2007-05-09 08:07:15 -06:00
Oliver McFadden
dcc8e5f4c1
r300: Indented r300_tex.[ch].
2007-05-09 13:59:28 +00:00
Oliver McFadden
32c8d002d0
r300: Indented r300_context.[ch].
2007-05-09 13:55:14 +00:00
Julien Cristau
a8c856d43c
Cherry-pick commmit 65faf023
by Michel Dänzer to fix r300 crash.
...
r300: Don't crash in radeonUpdatePageFlipping when !radeon->glCtx->DrawBuffer.
This feels like a kludge, maybe there's a better solution.
2007-05-09 15:09:12 +02:00
Oliver McFadden
c9b87b8ad8
r300: Removed the unused immediate vertices mode macro.
...
Immediate vertices mode hasn't been supported since early CVS versions of the
R300 driver.
2007-05-09 04:30:16 +00:00
Oliver McFadden
5d61cfd1fd
r300: Removed a disabled/obsolete e32 in the AOS function.
2007-05-09 04:27:31 +00:00
Oliver McFadden
93e957cc65
r300: Removed some disabled R200 code from the R300 driver.
2007-05-09 04:25:27 +00:00
Oliver McFadden
3eae496deb
r300: Don't indent the tables in r300_texstate.c.
2007-05-09 04:20:35 +00:00
Oliver McFadden
81c6516af1
r300: Indented r300_vertprog.[ch].
2007-05-09 04:12:04 +00:00
Oliver McFadden
9e91351826
r300: Indented r300_fragprog.[ch].
2007-05-09 04:08:27 +00:00
Oliver McFadden
328b307e2f
r300: Cleaned up the R300 Makefile.
2007-05-09 03:44:40 +00:00
Oliver McFadden
d316b4dc22
r300: Corrected a couple of "control reaches end of non-void function" warnings.
2007-05-09 03:40:06 +00:00
Oliver McFadden
f0126a76ac
r300: Corrected an error in r300_vertprog.c.
...
Cannot use _mesa_warning here because we don't have a context pointer; perhaps
R300 specific warning and error functions are needed.
2007-05-09 03:38:45 +00:00
Oliver McFadden
b8640db021
r300: Corrected the exit codes for consistency; they are all -1 for error now.
...
The one exception is 300FlushCmdBuf.
2007-05-09 03:36:28 +00:00
Oliver McFadden
28b47110b6
r300: Converted exit calls to _mesa_exit calls.
...
Note that the exit codes are inconsistent and should be fixed.
2007-05-09 03:32:15 +00:00
Oliver McFadden
fe2c58d2d5
r300: Converted a few fprintf calls to _mesa_warning calls.
2007-05-09 03:25:33 +00:00
Oliver McFadden
4917955205
r300: Added a warning when texture state update fails.
2007-05-09 03:22:37 +00:00
Oliver McFadden
eca50a27e1
r300: Removed some obsolete code from r300_tex.c.
2007-05-09 03:18:14 +00:00
Oliver McFadden
0950e9727e
mesa: Added Vim swap files to .gitignore.
2007-05-09 03:14:08 +00:00
Oliver McFadden
504fafe389
r300: Updated .gitignore.
2007-05-09 03:12:51 +00:00
Oliver McFadden
72608aedc3
r300: Added the Linux Kernel indent script.
2007-05-09 03:12:22 +00:00
Oliver McFadden
be56660ba0
r300: Indented r300_state.[ch].
2007-05-09 02:59:11 +00:00
Oliver McFadden
36c8bc6141
r300: Indented r300_emit.h.
2007-05-09 02:52:37 +00:00
Oliver McFadden
5c8296a6ab
r300: Indented r300_cmdbuf.[ch].
2007-05-09 02:51:13 +00:00
Oliver McFadden
6665658a56
r300: Indented r300_shader.[ch].
2007-05-09 02:50:13 +00:00
Oliver McFadden
204bc4e441
r300: Indented r300_maos.[ch].
2007-05-09 02:49:14 +00:00
Oliver McFadden
e90ad3dbbb
r300: Indented r300_ioctl.[ch].
2007-05-09 02:46:57 +00:00
Oliver McFadden
8d62afdb6a
r300: Removed the obsolete pfs_reg_t type from r300_fragprog.h.
2007-05-09 02:41:38 +00:00
Oliver McFadden
59494bafb4
r300: Use an array for the vertex program sources and corrected an error from
...
4960af08ad
.
2007-05-09 02:35:07 +00:00
Oliver McFadden
33939fd29b
r300: Removed the ugly CARD32 type.
2007-05-09 02:27:08 +00:00
Oliver McFadden
4960af08ad
r300: Renamed vertex_shader.h to r300_vertprog.h
2007-05-09 02:24:59 +00:00
Oliver McFadden
f5b0cafbb1
r300: Removed obsolete pixel_shader.h header file.
2007-05-09 02:18:29 +00:00
Oliver McFadden
c578354642
r300: Renamed the VBO functions to the R300 name format.
2007-05-08 21:04:57 +00:00
Brian
da37ac5ee7
remove some debug code
2007-05-08 14:08:45 -06:00
Brian
ed2fddc98e
special case for -pthread (bug 10876)
2007-05-08 14:03:04 -06:00
Brian
58eaf0acca
a somewhat nicer demo w/ command line options
2007-05-08 13:48:52 -06:00
Oliver McFadden
d132f7245d
r300: Removed some deprecated code from r300_context.c and corrected an unused
...
variable warning in r300_render.c.
2007-05-08 19:46:25 +00:00
Oliver McFadden
73bc8b63ac
r300: Last few r300_render.c clean up.
2007-05-08 19:38:44 +00:00
Oliver McFadden
377ce9e074
r300: Merged some comments into the Doxygen documentation.
2007-05-08 19:35:36 +00:00
Oliver McFadden
f1d785188b
r300: Cleaned up r300_render.c using Indent with appropriate options.
...
This corrects the mess of space and tab indenting that existed in this file, and
probably others. The diff is actually very small if you use an external diff
program and ignore whitespace.
2007-05-08 19:31:30 +00:00
Oliver McFadden
313c4c2643
r300: General render clean up; added some Doxygen documentation, too.
2007-05-08 19:22:15 +00:00
Oliver McFadden
fbeae4f70c
r300: Moved the pipeline stages together for readability.
2007-05-08 18:47:26 +00:00
Oliver McFadden
9301a6a325
r300: Print the OpenGL define instead of a 2-digit char code in the warning.
2007-05-08 18:43:56 +00:00
Oliver McFadden
6c036812be
r300: Clean up the vertex buffer emission code and reduced code duplication.
...
I tested both the unoptimized and optimized versions with Quake 3 Arena; there
are no problems.
2007-05-08 18:28:04 +00:00
Oliver McFadden
c6abbbfd02
r300: Cleaned up a lot of cruft in r300_render.c.
2007-05-08 18:05:10 +00:00
Dave Airlie
8a7f474c69
i915/miniglx: remove unused code
2007-05-08 10:53:43 +10:00
Dave Airlie
47e33a27df
miniglx: fixup use of create windows x and y coordinates
...
This makes miniglx take not of the x and y from XCreateWindow
2007-05-08 10:51:44 +10:00
Dave Airlie
401629c721
miniglx/glut: should use the x/y pos to create window
...
This allows moving miniglx glut windows around the framebuffer
2007-05-08 10:49:31 +10:00
Brian
f1770c3210
better comments for _mesa_debug(), _mesa_warning(), etc
2007-05-07 14:13:23 -06:00
Dave Airlie
8130a4fe98
radeon: enable xpress chipsets
...
glxgears and googleearth now run so that seems like a good start
Thanks to Aapo Tahkola for doing the 3D work on this so far, I got lost
after the GART changes.
2007-05-07 07:06:08 +10:00
Aapo Tahkola
8f1c63b263
rs480: fix secondary color for real this time
2007-05-06 19:25:45 +03:00
Aapo Tahkola
857ebc6d47
Merge branch 'master' of git+ssh://aapot@git.freedesktop.org/git/mesa/mesa
2007-05-06 19:19:16 +03:00
Aapo Tahkola
660bdc616b
rs480: fix textures and secondary color(?). clipping is still busted. tested on r480
2007-05-06 19:18:10 +03:00
Aapo Tahkola
88ae491bd2
r300: fix broken vbos
2007-05-06 19:10:39 +03:00
Oliver McFadden
8445960d9f
r300: Added R300_AA_DISABLE for R300_GB_AA_CONFIG.
2007-05-06 12:09:42 +00:00
Oliver McFadden
74cae00c0e
r300: Removed more deprecated state code that is now set in separate functions.
2007-05-06 11:56:36 +00:00
Oliver McFadden
56d9663574
r300: R300_ZS_... is now set in separate functions; removed the deprecated code.
2007-05-06 11:54:00 +00:00
Oliver McFadden
81d1a04e04
r300: Point size is now set in a separate function; removed the deprecated code.
2007-05-06 11:52:03 +00:00
Oliver McFadden
62cbe6c3f3
r300: Use the defined values for R300_VAP_CNTL_STATUS.
2007-05-06 11:36:24 +00:00
Aapo Tahkola
16cec9f767
r300: fix primary color on rs480
2007-05-06 14:28:23 +03:00
Aapo Tahkola
5e2a66466d
don't use hw to perform vertex transform etc. when using swtcl. This for compatibility with vertex programs and the fact that swtcl very rarely gets hit with tcl capable hw.
2007-05-05 17:07:46 +03:00
Dave Airlie
b3378f6cc5
nouveau: disable nouveau build by default
...
Until this is API/ABI stable building it by default isn't a good idea.
2007-05-05 15:43:01 +10:00
Brian
91948f99dd
add </ol> tag
2007-05-04 18:32:02 -06:00
Brian
ae5f67575d
Makefile clean-ups for miniglx.
2007-05-04 18:27:12 -06:00
Brian
e75fbd3f91
Assorted miniglx updates.
2007-05-04 18:26:41 -06:00
Brian
a6dad578b5
document R300 bug fix 10848
2007-05-03 13:52:33 -06:00
Brian
c6443eb1a3
fix some matrix/state token indexing bugs (see bug 10848)
2007-05-03 12:33:25 -06:00
Brian
121533defb
add some #includes to silence warnings
2007-05-03 09:50:08 -06:00
Brian
3cddba688d
get rid of normal vector
2007-05-02 18:55:45 -06:00
Brian
dc881e1909
get rid of OSMESA stuff
2007-05-02 18:54:57 -06:00
Brian
2dfb03beb2
New test of the dFdx(), dFdy() functions.
2007-05-02 18:48:51 -06:00
Brian
18cfe0c801
document recent GLSL, R300 fixes
2007-05-02 18:46:45 -06:00
Brian
60d136f63c
changes to get DDX/DDY working again
2007-05-02 18:45:44 -06:00
Brian
62da6a1b3e
Resuscitate some of the DDX,DDY code.
...
Only works for program input registers at this time.
Good enough for the common case of texcoords, though.
2007-05-02 18:44:34 -06:00
Brian
77e7535c0f
fix some DDX,DDY mix-ups
2007-05-02 18:42:57 -06:00
Brian
5c1b53d58d
Document a deficiency in the _swrast_Translate() function with regard to point size.
2007-05-02 12:06:43 -06:00
Brian
b2f1d6422b
fix some renderbuffer/wrapper bugs
2007-05-02 08:48:43 -06:00
Brian
99f24c8d17
fix some StepX/StepY mix-ups in alpha interpolation
2007-05-02 08:48:20 -06:00
Brian
04c401c91e
add *gc, *syn files to tarballs
2007-05-02 08:29:14 -06:00
Brian
03f201d935
regenerated
2007-05-01 14:03:16 -06:00
Brian
594b5ad87d
implement acos(), asin(), atan()
2007-05-01 14:02:49 -06:00
Brian
bfd5cf72c4
fog, mix() bug fixes
2007-05-01 10:23:15 -06:00
Brian
7559364027
Rewrite of slang_inline_asm_function() to do full parameter/argument substitution.
...
We had been taking a short-cut w/ asm inlines by just using parameters in order
rather than doing full formal parameter -> actual argument substitution like
ordinary inlined function calls. This worked in all cases but one: mix() in
which the parameters were used in a different order.
This fixes bug 10821.
2007-05-01 10:22:08 -06:00
Michel Dänzer
65faf02367
r300: Don't crash in radeonUpdatePageFlipping when !radeon->glCtx->DrawBuffer.
...
This feels like a kludge, maybe there's a better solution.
2007-04-30 18:28:24 +02:00
David Nusinow
1953cfc954
Update changelog
2007-04-30 00:08:11 -04:00
David Nusinow
8e7bac950e
Merge branch 'upstream-experimental' into debian-experimental
2007-04-29 23:23:00 -04:00
Michel Dänzer
c409dbcae3
r300: Page flipping fixes.
...
Mostly making sure the page flipping state is respected when necessary.
2007-04-29 13:52:48 +02:00
Michel Dänzer
cbf280dc26
r300: radeonMakeCurrent cleanups.
...
r300UpdateWindow is superfluous or even possibly wrong here; _mesa_make_current
will set the viewport when necessary. So the conditional _mesa_set_viewport call
can go as well.
2007-04-29 13:52:11 +02:00
Brian
af0ae93863
only load front/back face attrib if using a shader (bug 10788)
2007-04-28 08:51:23 -06:00
Brian
bcc3baadba
use EMIT_1F or EMIT_4F for fog depending on fragment program (bug 10788)
2007-04-28 08:50:07 -06:00
Brian
4ca7c804db
fix GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB bug (10787)
2007-04-28 08:01:18 -06:00
Keith Packard
bfaf6156fb
additional checks that attr is a texcoord
2007-04-28 07:50:06 -06:00
Brian
d741b10be6
7.0 blurb
2007-04-27 17:05:29 -06:00
Brian
e371a5f084
Version bumps for 7.0
2007-04-27 17:01:23 -06:00
Brian
af846712fd
updates for 7.0
2007-04-27 17:00:13 -06:00
Brian
c4615abb11
added 7.0 relnotes link
2007-04-27 16:54:05 -06:00
Brian
430e036413
added 6.5.3 MD5 sums
2007-04-27 16:53:42 -06:00
Brian
502ebe90e8
7.0 release notes (template)
2007-04-27 16:53:26 -06:00
Brian
02e958a1e4
added glGetActiveAttrib
2007-04-27 16:27:36 -06:00
Brian
cce5084941
"Fix" for bug 9170. May need more attention.
2007-04-27 15:41:07 -06:00
Brian
4b1d1b7b18
document perspective correction issues
2007-04-27 15:25:00 -06:00
Brian
7ff72a7659
document broken inverse trig functions
2007-04-27 15:23:19 -06:00
Brian
c4b3b8dece
asin(), acos(), atan() just return 0.5 for now to avoid crashing. Fix someday.
2007-04-27 15:22:58 -06:00
Brian
65bab0dad8
remove rc4 suffix
2007-04-27 08:00:51 -06:00
Brian
74edc663a6
set 6.5.3 release date
2007-04-27 08:00:37 -06:00
Brian
54d59cfb70
Added error check that all varying vars needed by the fragment shader are produced by vertex shader.
2007-04-26 12:20:53 -06:00
Brian
b7f5b8af65
Unconditionally update _TriangleCaps bits. Fixes software fallback bugs, such as #10687 .
2007-04-26 10:45:44 -06:00
Brian
4099531a0a
bump Windows to OpenGL 2.1, set release date
2007-04-26 07:50:26 -06:00
Brian
1606f2c123
enable 2.1 extensions
2007-04-26 07:49:33 -06:00
Brian
1dd7c00214
Windows updates
2007-04-26 07:48:35 -06:00
Brian
f42d4ab41e
move #include <GL/glut.h> after other #includes for Windows
2007-04-26 07:46:59 -06:00
Brian
4a28548cbf
use sqrt(), not sqrtf() for Windows
2007-04-26 07:46:38 -06:00
Karl Schultz
5814922d25
updates for 6.5.3 w/ VC8
2007-04-25 10:28:37 -06:00
Brian
3de20aead2
RC4
2007-04-25 10:01:30 -06:00
Brian
6d27194dff
fix attribsMask (re-fixes depth peeling algorithm)
2007-04-25 09:58:15 -06:00
Julien Cristau
03cdacfb6a
Prepare changelog for upload.
2007-04-25 10:37:10 +02:00
Julien Cristau
30f3c3dfad
Update changelog.
2007-04-25 08:42:02 +02:00
Julien Cristau
dee1b0d5bb
Merge remote branch 'upstream/master' into debian-experimental
2007-04-25 08:40:39 +02:00
Brian
c233aa2768
s/fog/attrib[FRAG_ATTRIB_FOGC][0]/
2007-04-24 22:32:41 -06:00
Brian
c93b2a1cb7
s/fog/attrib[FRAG_ATTRIB_FOGC][0]/
2007-04-24 22:22:14 -06:00
Julien Cristau
6f2b0fe463
New upstream release candidate.
...
Refresh a couple patches.
2007-04-25 01:48:33 +02:00
Julien Cristau
0c69176498
Merge tag 'mesa_6_5_3_rc3' into debian-experimental
2007-04-25 01:41:05 +02:00
Julien Cristau
4e7a0385b5
Merge tag 'mesa_6_5_3_rc2' into debian-experimental
2007-04-25 01:40:50 +02:00
Brian
eca456b63d
s/DO_TEXVAR/DO_ATTRIBS/
2007-04-24 16:57:38 -06:00
Brian
4003bde6ff
get rid of an extra textured triangle function
2007-04-24 16:47:33 -06:00
Brian
ddcf819906
s/TEXTURE/ATTRIBS/
2007-04-24 16:47:07 -06:00
Brian
9ede048127
trim down the number of line drawing functions, special cases
2007-04-24 16:40:54 -06:00
Brian
97693436a5
only need one CI-mode triangle function
2007-04-24 16:20:50 -06:00
Brian
8a8a5bd104
s/INTERP_TEX/INTERP_ATTRIBS/
2007-04-24 16:16:25 -06:00
Brian
3e5eda9ee9
fix typo
2007-04-24 10:21:10 -06:00
Brian
f38dcc8a6a
added missing VC8 .sln files
2007-04-24 10:19:19 -06:00
Brian
b1b154c498
added new VC* files, bump version to rc3
2007-04-24 08:58:12 -06:00
Karl Schultz
286faac68e
assorted fixes for Windows/VC8
2007-04-24 08:53:28 -06:00
Brian
3b0bd0ce17
new VC8 project files
2007-04-24 08:52:34 -06:00
Karl Schultze
208ea84524
fix double const, move an assertion
2007-04-24 08:19:07 -06:00
Matthias Hopf
7868ab6617
add missing semicolon
2007-04-24 07:48:35 -06:00
Sean D'Epagnier
47ad443c55
Added proper cleanup code
2007-04-23 21:17:30 -07:00
Brian
3db3dc58bc
disable some errant code
2007-04-23 22:04:03 -06:00
Brian
c27adc52ce
remove SWvertex->fog field, use attrib field
2007-04-23 22:03:11 -06:00
Brian
afc132e7a9
remove SWvertex->fog field, use attrib field
2007-04-23 22:01:34 -06:00
Brian
335769a875
some re-org, clean-up
2007-04-23 21:27:13 -06:00
Brian
0bdf216dd0
Improve the code for interpolating fragment attributes a little. More to come...
2007-04-23 21:21:52 -06:00
Julien Cristau
4adbd94b10
Only install stuff in mesa-swx11-source if we're building arch:all packages.
2007-04-23 11:00:09 +02:00
Brian
d59e6f233b
import glxext.h version 19
2007-04-22 15:32:10 -06:00
Julien Cristau
4a2905b645
Delete obsolete file.
2007-04-22 18:08:58 +02:00
Julien Cristau
0638c6b530
Add generated files from the tarball so they're included in mesa-swx11-source.
2007-04-22 18:08:35 +02:00
Julien Cristau
7dd35ce013
Delete .gitignore files which do more harm than good in a debian package tree.
2007-04-22 18:07:52 +02:00
Sean D'Epagnier
ad02042db2
Fixed fallout, glfbdev driver was calling a nop function that was removed.
2007-04-21 20:18:42 -07:00
Julien Cristau
c8629c3178
Resync debian/scripts/install-source.sh.
2007-04-22 00:51:10 +02:00
Julien Cristau
77ccf51cb3
New upstream release candidate.
2007-04-22 00:50:40 +02:00
Julien Cristau
01197f0c77
Merge branch 'upstream-experimental' into debian-experimental
2007-04-22 00:34:30 +02:00
Julien Cristau
69c86ff4fd
Remove leftover file.
2007-04-22 00:33:38 +02:00
Brian
f793e90e82
Fix color sum bug 10688.
2007-04-21 15:58:37 -06:00
Brian
112e1f2b5a
specularColor.alpha should default to 1, not 0
2007-04-21 15:56:10 -06:00
Brian
e5cf37c178
fix SkipPixels bugs in _mesa_pack_bitmap(), bug 10690
2007-04-21 14:12:57 -06:00
Julien Cristau
9a42ffad81
Add build-dependencies on libxdamage-dev and libxfixes-dev.
2007-04-21 21:23:21 +02:00
Julien Cristau
0d8633bf8c
Delete autogenerated files, and files not included in the tarball.
2007-04-21 21:20:37 +02:00
Brian
b5e9b0e562
Remove the !rb->Data check that was added a few months ago.
...
Was changed while debugging #7205 . Broke the shadowtext demo. Revisit this
if the problem w/ bug 7205 returns...
2007-04-21 13:18:06 -06:00
Brian
b1502588c4
s/occlude.h/queryobj.h/
2007-04-21 12:54:23 -06:00
Julien Cristau
d79e80a3d0
New upstream release candidate.
...
Drop patches included upstream.
2007-04-21 20:47:01 +02:00
Brian
74afcabd85
Rename occlude.[ch] to queryobj.[ch]
2007-04-21 12:42:54 -06:00
Brian
b3ab925e91
Rename occlude.[ch] to queryobj.[ch] to better reflect contents.
2007-04-21 12:36:39 -06:00
Brian
2d2c6a622d
prep for 6.5.3 rc2
2007-04-21 12:31:51 -06:00
Brian
fc3d6bd351
memory leaks fixed
2007-04-21 12:30:58 -06:00
Brian
e261d66d81
Remove all the USE_MEMPOOL debug code.
2007-04-21 12:30:58 -06:00
Brian
cd3e39340f
Use new memory pool allocator. Lots of debug code still in place...
2007-04-21 12:30:58 -06:00
Julien Cristau
d890ebdd25
Merge branch 'upstream-experimental' into debian-experimental
...
Conflicts:
doxygen/Makefile
doxygen/common.doxy
doxygen/doxy.bat
doxygen/glapi.doxy
doxygen/header.html
doxygen/main.doxy
doxygen/math.doxy
doxygen/shader.doxy
doxygen/swrast.doxy
doxygen/swrast_setup.doxy
doxygen/tnl.doxy
doxygen/tnl_dd.doxy
progs/tests/Makefile
progs/tests/fbotest1.c
progs/tests/fbotest2.c
progs/tests/fbotexture.c
progs/tests/mipmap_limits.c
progs/tests/sharedtex.c
progs/tools/trace/gltrace_support.cc
progs/trivial/Makefile
src/egl/docs/EGL_MESA_screen_surface
src/egl/main/egllog.c
src/glx/mini/Makefile
src/glx/mini/driver.h
src/mesa/drivers/allegro/amesa.c
src/mesa/drivers/windows/gldirect/dx7/gld_driver_dx7.c
src/mesa/drivers/windows/gldirect/dx7/gld_ext_dx7.c
src/mesa/drivers/windows/gldirect/dx7/gld_primitive_dx7.c
src/mesa/drivers/windows/gldirect/dx8/gld_driver_dx8.c
src/mesa/drivers/windows/gldirect/dx8/gld_ext_dx8.c
src/mesa/drivers/windows/gldirect/dx8/gld_primitive_dx8.c
src/mesa/drivers/windows/gldirect/dx9/gld_driver_dx9.c
src/mesa/drivers/windows/gldirect/dx9/gld_ext_dx9.c
src/mesa/drivers/windows/gldirect/dx9/gld_primitive_dx9.c
src/mesa/drivers/windows/gldirect/mesasw/gld_wgl_mesasw.c
2007-04-21 20:27:55 +02:00
Brice Goglin
5ee9b3ce72
Fix conflicts for libGLw packages.
...
libglw1-mesa does not have to conflict with earlier libgl1-mesa-swx11
(libGLw was only shipped as development libs/headers within swx11-dev).
libglw1-mesa-dev needs to conflicts with libglw-dev.
2007-04-21 20:20:03 +02:00
Brice Goglin
031b539a09
Split out libGLw libs and headers from libgl1-mesa-swx11.
...
Ship both static and shared libraries for libGLw, creating libglw1-mesa and
libglw1-mesa-dev (closes : #374904 ).
2007-04-21 20:19:38 +02:00
Ian Romanick
ad3cc95485
Fix FBO completeness bug in shadowtex.
2007-04-21 10:48:24 -07:00
Brian
4e0a64675c
added MemPool field
2007-04-21 10:18:49 -06:00
Brian
d5e7234ba8
call grammar_alloc_free() to fix memleaks
2007-04-21 10:05:05 -06:00
Brian
bc74cb4c0a
destroy window upon exit
2007-04-21 10:05:05 -06:00
Brian
257f799849
remove more unused vars, assertions
2007-04-21 10:05:05 -06:00
Brian
81c4fee160
remove unused vars, assertions
2007-04-21 10:05:05 -06:00
Brian
1fbdd9d794
added slang_mem.c
2007-04-21 10:05:05 -06:00
Brian
82839e8430
Memory pool manager.
...
Instead of doing intricate malloc/free tracking during compiling, allocate
everything (which would be discarded after compiling) from a pool that can
be freed en masse when done.
2007-04-21 10:05:05 -06:00
Brian
ced6f76404
undo a test/debug change
2007-04-21 10:05:05 -06:00
Brian
4cc2674aee
fix instruction comment code
2007-04-21 10:05:05 -06:00
Brian
a7f7366d38
another bit of debug code
2007-04-21 10:05:05 -06:00
Brian
11e3f733ba
free subroutine array (fix mem leak)
2007-04-21 10:05:05 -06:00
Brian
98ef18909a
new varnames in slang_operation_insert()
2007-04-21 10:05:05 -06:00
Brian
f2346498aa
fix memleak in slang_operation_insert()
2007-04-21 10:05:05 -06:00
Brian
4b7c6fc5a6
free shProg->Attributes in _mesa_free_shader_program_data()
2007-04-21 10:05:05 -06:00
Brian
fe16b9f663
move allocation of shProg->Attributes earlier in function
2007-04-21 10:05:05 -06:00
Brice Goglin
47c3c706e8
Add 09_i915_always_enable_pixel_fog.patch
2007-04-21 18:00:12 +02:00
Brian
c9855a60f4
Call _mesa_warning() instead of _mesa_problem() when external s3tc lib not found.
...
The later incorrectly encourages filing a bug (10703, for example).
2007-04-21 09:47:36 -06:00
Jeremy Kolb
838a2a2633
Make xcb backend compile.
...
Add nouveau to match linux-dri config.
2007-04-20 21:53:38 -04:00
Brian
e7e5279fc0
Remove unused Imakefiles.
2007-04-20 19:18:13 -06:00
Brian
7fd3a6c521
Long obsolete.
2007-04-20 19:01:21 -06:00
Brian
720cf3aa13
added new xm_glide.c file
2007-04-20 18:55:13 -06:00
George Sapountzis
5491c8194c
xmesa: call _glapi_set_dispatch() for all xserver DDXes.
...
This is to unify the xmesa code across xserver DDX'es. The call is intented for
XGL, but it does not hurt to call for other DDX'es. In fact it was not guarded
against XGL when it was first added in xserver.
2007-04-20 21:09:00 +03:00
George Sapountzis
e4e2068ac9
xmesa: minor cosmetic
...
mainly drop 'client' argument from initialize_visual_and_buffer().
2007-04-20 21:08:58 +03:00
George Sapountzis
6346a753c6
xmesa: split FX functions to separate file, part 2.
2007-04-20 21:08:57 +03:00
George Sapountzis
4d944b502f
xmesa: split FX functions to separate file, part 1.
2007-04-20 21:08:56 +03:00
George Sapountzis
6aa5668871
xmesa: spilt FX code to separate functions.
2007-04-20 21:08:55 +03:00
George Sapountzis
d60009bd6d
Revert "xmesa: drop glide (FX) backend."
...
This reverts commit 2a2f8d806f
.
2007-04-20 21:08:53 +03:00
Brice Goglin
0d830a616c
Add 08_r300_update_window_state_when_bound_but_stamp_changed.patch
2007-04-20 18:53:47 +02:00
Brice Goglin
e219bf8338
Add 07_call_radeonSetCliprects_from_radeonMakeCurrent.patch
2007-04-20 18:44:59 +02:00
Julien Cristau
6c0fba2480
Prepare changelog for upload.
2007-04-20 05:58:00 +02:00
Julien Cristau
f4cc159f53
Revert " * Split out libGLw libs and headers from libgl1-mesa-swx11 and ship both"
...
This reverts commit 856ae782c7
.
Conflicts:
debian/changelog
2007-04-20 05:55:04 +02:00
Julien Cristau
04c002abc2
Revert "Fix conflicts for libGLw packages."
...
This reverts commit 048144074b
.
2007-04-20 05:53:59 +02:00
Julien Cristau
78fd17907e
Merge branch 'debian-experimental' into debian-unstable
2007-04-20 05:52:20 +02:00
Julien Cristau
47edc83080
Merge branch 'debian-experimental' into debian-unstable
...
Conflicts:
configs/debian-osmesa16
configs/debian-osmesa16-static
configs/debian-osmesa32
configs/debian-osmesa32-static
debian/changelog
debian/compat
debian/control
debian/copyright
debian/libgl1-mesa-dev.install
debian/libgl1-mesa-swx11-dev.install
debian/libgl1-mesa-swx11.shlibs
debian/libglu1-mesa-dev.install
debian/mesa-common-dev.docs
debian/mesa-common-dev.install
debian/rules
src/mesa/x86-64/matypes.h
src/mesa/x86/matypes.h
2007-04-20 05:44:24 +02:00
Julien Cristau
33e34f5bf4
Merge tag 'mesa_6_5_1' into debian-unstable
...
Conflicts:
progs/util/README
progs/util/glstate.c
progs/util/glstate.h
progs/util/sampleMakefile
src/glu/sgi/libnurbs/interface/bezierEval.h
src/glu/sgi/libnurbs/interface/bezierPatch.cc
src/glu/sgi/libnurbs/interface/bezierPatch.h
src/glu/sgi/libnurbs/interface/bezierPatchMesh.cc
src/glu/sgi/libnurbs/interface/bezierPatchMesh.h
src/glu/sgi/libnurbs/interface/glcurveval.cc
src/glu/sgi/libnurbs/interface/glimports.h
src/glu/sgi/libnurbs/interface/glinterface.cc
src/glu/sgi/libnurbs/interface/glrenderer.h
src/glu/sgi/libnurbs/interface/incurveeval.cc
src/glu/sgi/libnurbs/interface/insurfeval.cc
src/glu/sgi/libnurbs/interface/mystdio.h
src/glu/sgi/libnurbs/interface/mystdlib.h
src/glu/sgi/libnurbs/internals/arc.h
src/glu/sgi/libnurbs/internals/arcsorter.cc
src/glu/sgi/libnurbs/internals/arcsorter.h
src/glu/sgi/libnurbs/internals/arctess.h
src/glu/sgi/libnurbs/internals/backend.cc
src/glu/sgi/libnurbs/internals/backend.h
src/glu/sgi/libnurbs/internals/basiccrveval.h
src/glu/sgi/libnurbs/internals/basicsurfeval.h
src/glu/sgi/libnurbs/internals/bezierarc.h
src/glu/sgi/libnurbs/internals/bin.cc
src/glu/sgi/libnurbs/internals/bin.h
src/glu/sgi/libnurbs/internals/bufpool.cc
src/glu/sgi/libnurbs/internals/bufpool.h
src/glu/sgi/libnurbs/internals/cachingeval.cc
src/glu/sgi/libnurbs/internals/cachingeval.h
src/glu/sgi/libnurbs/internals/ccw.cc
src/glu/sgi/libnurbs/internals/coveandtiler.h
src/glu/sgi/libnurbs/internals/curve.cc
src/glu/sgi/libnurbs/internals/curve.h
src/glu/sgi/libnurbs/internals/curvelist.cc
src/glu/sgi/libnurbs/internals/curvelist.h
src/glu/sgi/libnurbs/internals/curvesub.cc
src/glu/sgi/libnurbs/internals/dataTransform.cc
src/glu/sgi/libnurbs/internals/dataTransform.h
src/glu/sgi/libnurbs/internals/defines.h
src/glu/sgi/libnurbs/internals/displaylist.cc
src/glu/sgi/libnurbs/internals/displaylist.h
src/glu/sgi/libnurbs/internals/displaymode.h
src/glu/sgi/libnurbs/internals/flist.cc
src/glu/sgi/libnurbs/internals/flist.h
src/glu/sgi/libnurbs/internals/flistsorter.cc
src/glu/sgi/libnurbs/internals/flistsorter.h
src/glu/sgi/libnurbs/internals/gridline.h
src/glu/sgi/libnurbs/internals/gridtrimvertex.h
src/glu/sgi/libnurbs/internals/gridvertex.h
src/glu/sgi/libnurbs/internals/hull.cc
src/glu/sgi/libnurbs/internals/hull.h
src/glu/sgi/libnurbs/internals/intersect.cc
src/glu/sgi/libnurbs/internals/jarcloc.h
src/glu/sgi/libnurbs/internals/knotvector.h
src/glu/sgi/libnurbs/internals/mapdesc.cc
src/glu/sgi/libnurbs/internals/mapdesc.h
src/glu/sgi/libnurbs/internals/mapdescv.cc
src/glu/sgi/libnurbs/internals/maplist.cc
src/glu/sgi/libnurbs/internals/maplist.h
src/glu/sgi/libnurbs/internals/mesher.cc
src/glu/sgi/libnurbs/internals/mesher.h
src/glu/sgi/libnurbs/internals/monoTriangulationBackend.cc
src/glu/sgi/libnurbs/internals/monotonizer.cc
src/glu/sgi/libnurbs/internals/monotonizer.h
src/glu/sgi/libnurbs/internals/myassert.h
src/glu/sgi/libnurbs/internals/mycode.cc
src/glu/sgi/libnurbs/internals/mystring.h
src/glu/sgi/libnurbs/internals/nurbsconsts.h
src/glu/sgi/libnurbs/internals/nurbstess.cc
src/glu/sgi/libnurbs/internals/patch.cc
src/glu/sgi/libnurbs/internals/patch.h
src/glu/sgi/libnurbs/internals/patchlist.cc
src/glu/sgi/libnurbs/internals/patchlist.h
src/glu/sgi/libnurbs/internals/pwlarc.h
src/glu/sgi/libnurbs/internals/quilt.cc
src/glu/sgi/libnurbs/internals/quilt.h
src/glu/sgi/libnurbs/internals/reader.cc
src/glu/sgi/libnurbs/internals/reader.h
src/glu/sgi/libnurbs/internals/renderhints.cc
src/glu/sgi/libnurbs/internals/renderhints.h
src/glu/sgi/libnurbs/internals/simplemath.h
src/glu/sgi/libnurbs/internals/slicer.cc
src/glu/sgi/libnurbs/internals/slicer.h
src/glu/sgi/libnurbs/internals/sorter.cc
src/glu/sgi/libnurbs/internals/sorter.h
src/glu/sgi/libnurbs/internals/splitarcs.cc
src/glu/sgi/libnurbs/internals/subdivider.h
src/glu/sgi/libnurbs/internals/tobezier.cc
src/glu/sgi/libnurbs/internals/trimline.cc
src/glu/sgi/libnurbs/internals/trimline.h
src/glu/sgi/libnurbs/internals/trimregion.cc
src/glu/sgi/libnurbs/internals/trimregion.h
src/glu/sgi/libnurbs/internals/trimvertex.h
src/glu/sgi/libnurbs/internals/trimvertpool.cc
src/glu/sgi/libnurbs/internals/trimvertpool.h
src/glu/sgi/libnurbs/internals/types.h
src/glu/sgi/libnurbs/internals/uarray.cc
src/glu/sgi/libnurbs/internals/uarray.h
src/glu/sgi/libnurbs/internals/varray.cc
src/glu/sgi/libnurbs/internals/varray.h
src/glu/sgi/libnurbs/nurbtess/definitions.h
src/glu/sgi/libnurbs/nurbtess/directedLine.h
src/glu/sgi/libnurbs/nurbtess/glimports.h
src/glu/sgi/libnurbs/nurbtess/gridWrap.cc
src/glu/sgi/libnurbs/nurbtess/gridWrap.h
src/glu/sgi/libnurbs/nurbtess/monoChain.cc
src/glu/sgi/libnurbs/nurbtess/monoChain.h
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.cc
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h
src/glu/sgi/libnurbs/nurbtess/mystdio.h
src/glu/sgi/libnurbs/nurbtess/mystdlib.h
src/glu/sgi/libnurbs/nurbtess/partitionX.cc
src/glu/sgi/libnurbs/nurbtess/partitionX.h
src/glu/sgi/libnurbs/nurbtess/partitionY.cc
src/glu/sgi/libnurbs/nurbtess/partitionY.h
src/glu/sgi/libnurbs/nurbtess/polyDBG.h
src/glu/sgi/libnurbs/nurbtess/polyUtil.cc
src/glu/sgi/libnurbs/nurbtess/polyUtil.h
src/glu/sgi/libnurbs/nurbtess/primitiveStream.cc
src/glu/sgi/libnurbs/nurbtess/primitiveStream.h
src/glu/sgi/libnurbs/nurbtess/quicksort.cc
src/glu/sgi/libnurbs/nurbtess/quicksort.h
src/glu/sgi/libnurbs/nurbtess/rectBlock.cc
src/glu/sgi/libnurbs/nurbtess/rectBlock.h
src/glu/sgi/libnurbs/nurbtess/sampleComp.cc
src/glu/sgi/libnurbs/nurbtess/sampleComp.h
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.cc
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.cc
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.cc
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.cc
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h
src/glu/sgi/libnurbs/nurbtess/sampledLine.cc
src/glu/sgi/libnurbs/nurbtess/sampledLine.h
src/glu/sgi/libnurbs/nurbtess/searchTree.cc
src/glu/sgi/libnurbs/nurbtess/searchTree.h
src/glu/sgi/libnurbs/nurbtess/zlassert.h
src/glu/sgi/libtess/README
src/glu/sgi/libtess/alg-outline
src/glu/sgi/libtess/dict-list.h
src/glu/sgi/libtess/dict.c
src/glu/sgi/libtess/dict.h
src/glu/sgi/libtess/geom.c
src/glu/sgi/libtess/memalloc.c
src/glu/sgi/libtess/memalloc.h
src/glu/sgi/libtess/mesh.c
src/glu/sgi/libtess/mesh.h
src/glu/sgi/libtess/normal.h
src/glu/sgi/libtess/priorityq-heap.c
src/glu/sgi/libtess/priorityq-heap.h
src/glu/sgi/libtess/priorityq-sort.h
src/glu/sgi/libtess/priorityq.c
src/glu/sgi/libtess/priorityq.h
src/glu/sgi/libtess/render.c
src/glu/sgi/libtess/render.h
src/glu/sgi/libtess/sweep.h
src/glu/sgi/libtess/tess.h
src/glu/sgi/libtess/tessmono.c
src/glu/sgi/libtess/tessmono.h
src/glu/sgi/libutil/error.c
src/glu/sgi/libutil/glue.c
src/glu/sgi/libutil/gluint.h
src/glu/sgi/libutil/project.c
src/glu/sgi/libutil/registry.c
src/glx/x11/glxext.c
src/mesa/main/imports.h
src/mesa/tnl/t_vb_cliptmp.h
2007-04-20 05:37:11 +02:00
Brian
535c37e85d
Notes about shared lib version. Document depth-peel fixes.
2007-04-19 14:24:58 -06:00
Brian
ba3d384e94
dFdx(), etc. don't work yet
2007-04-19 14:24:29 -06:00
Brian
8b5fce6bcc
Put gl_program_machine into swrast structure rather than using a local variable.
...
Basically an easy way to make sure the memory gets initialized once (to zero)
to avoid lots of valgrind warnings.
2007-04-19 14:24:10 -06:00
Brian
020cdb47cf
Fix valgrind problem caused by reading text[-1].
2007-04-19 14:15:11 -06:00
Brian
121f2212cc
remove invalid assertion (span->facing may be set because of polygonmode)
2007-04-19 14:07:16 -06:00
Brian
24a93dd6a4
remove invalid assertion
2007-04-19 14:06:43 -06:00
Brian
00da9afb84
fix crash when program has invalid structure field
2007-04-19 14:06:27 -06:00
Brian
4abcaf3949
init A.curFuncEndLabel = NULL
2007-04-19 14:04:30 -06:00
Brian
6bde08815f
In _mesa_unpack_depth_span() look for special cases of GLuint->GLushort and GLushort->GLuint conversion.
...
This improves performance and avoids int/float/int conversion problems that
can introduce errors during glCopyTexImage(). Another fix for the depth peeling
algorithm.
2007-04-19 11:23:26 -06:00
Brian
8e6207396c
Don't allow deferredTexture if using occlusion query and a frag shader.
...
Occlusion query might depend on the shader killing/discarding fragments.
Helps fix depth peeling technique.
Also, minor tweaks in interpolate_wpos().
2007-04-19 11:21:14 -06:00
Brian
5ca8d4ccf2
fix an uninitialized variable and a warning
2007-04-18 18:05:33 -06:00
Brian
6b3027e291
comments, assertions
2007-04-18 17:14:14 -06:00
Brian
8d370fb2ee
new comments
2007-04-18 17:14:14 -06:00
Brian
36a6a59972
record proper datatypes for uniforms/samplers
2007-04-18 17:14:14 -06:00
Brian
addd03da2e
added _slang_gltype_from_specifier()
2007-04-18 17:14:13 -06:00
Brian
c93e883b20
Start fixing some issues with uniform variables and their types.
2007-04-18 17:14:13 -06:00
Brian
274ac7a801
Fix some bugs related to querying active uniforms.
2007-04-18 17:14:13 -06:00
Brian
aaa57412c1
fix error strings, add a sanity check
2007-04-18 17:14:13 -06:00
George Sapountzis
2a2f8d806f
xmesa: drop glide (FX) backend.
...
glide is no longer compiled with stand-alone libGL, so this will not link.
There are still the glide config files. some code in demos and the
GLX_MESA_set_3dfx_mode code which could be removed.
2007-04-19 00:01:45 +03:00
Brian
bac15c8db8
Remove bad assertions, decrement NumShaders in _mesa_detach_shader().
...
Fixes crashes w/ Brad King's depth peeling test.
2007-04-18 14:55:18 -06:00
Brian
f3e8c32376
s/GL_SHADER_PROGRAM/GL_SHADER_PROGRAM_MESA/ (a Mesa-specific token)
2007-04-18 14:53:23 -06:00
Brian
6d3d9c1c6d
Replace _mesa_parameter_longest_name() with _mesa_longest_parameter_name().
...
The later takes a type parameter so we can match uniforms or attributes/inputs.
Used by the GL_ACTIVE_ATTRIBUTE_MAX_LENGTH and GL_ACTIVE_UNIFORM_MAX_LENGTH
queries. Fixes problem reported by Brad King in VTK.
2007-04-18 14:19:17 -06:00
Brian
e57e752eee
call ProgramStringNotify() after linking
2007-04-18 12:41:16 -06:00
Brian
884af40864
check _PreferPixelFog in _swrast_span_default_fog(), see bug 10669
2007-04-18 12:09:40 -06:00
Brian
30a79f76fc
improved fog comment
2007-04-18 12:08:18 -06:00
Brian
8598f55091
glean glsl test now does over 150 tests
2007-04-18 09:30:07 -06:00
Brian
6d01f3f1ec
added href to shading language info
2007-04-18 09:28:38 -06:00
Brian
e3caa5f891
prep for 6.5.3 release
2007-04-18 09:07:56 -06:00
Brian
d9443c2494
add progs/glsl/ to DEMO_FILES, s/pre/rc1/
2007-04-18 08:52:18 -06:00
Xiang, Haihao
565cd49b5f
fig segment fault issue in TAG(triangle), (see bug 10589)
...
Bit SS_TWOSIDE_BIT is set if gl_FrontFacing lives in
fragment input (see commit 10b5895597
).
However, VB->ColorPtr[1] isn't assigned after that.
2007-04-18 12:37:09 +08:00
Brian
a4b2b88337
omit the glide/svga sources from stand-alone libGL (anyone using them?)
2007-04-17 16:00:17 -06:00
Brian
04bda46739
Enable texture sampling for vertex programs/shaders.
...
This is a bit of a hack for now because the tnl module is using the swrast
module to fetch texels. The texture fetch/filter code should probably be
moved into the main/ module since it doesn't really depend upon other
swrast code.
2007-04-17 15:56:46 -06:00
Brian
d2d86a3f0b
In bind_inputs() set VB->EdgeFlag to NULL if it's not needed.
...
Otherwise, the clip/interp code was finding VB->EdgeFlag to be non-null and
reading/writing it when the memory may have been freed earlier in free_space().
This fixes several VTK segfaults/failures reported by Brad King @ Kitware.
2007-04-17 10:19:47 -06:00
Brian
9cbcf7c696
regenerated
2007-04-17 09:16:59 -06:00
Brian
468a33d19a
fix/simplify some texture functions
2007-04-17 09:16:30 -06:00
Brian
893b368a82
more matrix function updates
2007-04-17 09:15:57 -06:00
Brian
41fc55dd81
don't set GL_TEXTURE_MAX_LEVEL for GL_TEXTURE_RECTANGLE_ARB as that generates an error
2007-04-17 08:29:37 -06:00
Thomas Hellstrom
1a9483c954
Defer buffer pool creation to the first context creation.
...
This way we have a hw context so that we can take the hardware lock.
Also, at this point, AIGLX isn't locked with the X server context as it is
at screen creation.
2007-04-17 15:21:54 +02:00
Roland Scheidegger
36949abec7
cleanups for t_vb_program.c
...
use VertexProgram._Current instead of VertexProgram.Current in a few more places.
Only fixup fogc and psiz in case this is really a nv program (others are fine
if undefined), and fix this case up so the values actually get written.
2007-04-17 14:01:42 +02:00
Oliver McFadden
6459adf79b
r300: r300_render.c:391: warning: unused variable 'i'
2007-04-17 07:05:15 +00:00
Brian
badc346206
lots of changes, fixes, clean-ups
2007-04-16 17:56:13 -06:00
Brian
4a7c45118d
just clean-ups
2007-04-16 17:36:39 -06:00
Brian
34ca2be769
move GL_EXT_stencil_two_side into alphabetical position
2007-04-16 17:18:39 -06:00
Brian
5888010362
Fix glActiveStencilFaceEXT dispatch problem (bug 10523).
...
OK, _all_ extensions that might get enabled by the driver need to be in the
card_extensions[] list. driInitExtensions() is called at least twice: first
during screen creation, then once for each context that's created.
The first call sets up the dispatch table. The second call just sets the
extension enable/disable flags.
2007-04-16 17:16:46 -06:00
Brian
dfee7619d4
remove _tnl_arb_vertex_program_stage
2007-04-16 15:15:53 -06:00
Brian
96e05da1c9
remove _tnl_arb_vertex_program_stage
2007-04-16 15:15:23 -06:00
Brian
1560de2c3c
need to clamp MAD for linear fog
2007-04-16 15:09:39 -06:00
Brian
921b008419
removed unused t_vb_arbprogram stage
2007-04-16 11:03:14 -06:00
Brian
aa6992a296
remove t_vb_arbprogram.c
2007-04-16 10:59:00 -06:00
Brian
4b3835dadf
unhook t_vb_arbprogram.c code - it's going away
2007-04-16 10:58:30 -06:00
Brian
64e8088667
Use generic program limits instead of NV-specific ones to init program constants.
...
Previously, this limited us to 12 temp regs for vertex programs. Many vertex
shaders could exceed that. This forces us to stop using t_vb_arbprogram.c
for now because of its particular register indexing scheme. Need to increase
bits allocated for register indexing, etc.
2007-04-16 10:36:28 -06:00
Brian
3dfcd48469
Fix some assertions that could occur when an error was earlier logged.
2007-04-16 10:32:48 -06:00
Brian
e812a2a484
use b->display instead of b->xm_visual->display to fix some problems detected w/ valgrind
2007-04-16 09:11:20 -06:00
Thomas Hellstrom
da56df9d72
Make sure we are locked when creating drm buffer objects.
...
Don't place buffer objects on unfenced list when newly created.
Fix a buffer object wait-for-idle deadlock.
2007-04-16 16:04:12 +02:00
Brian
9519785e29
illegal to set GL_TEXTURE_MAX_LEVEL w/ GL_TEXTURE_RECTANGLE_ARB
2007-04-14 09:38:20 -06:00
Brian
83ad64d94a
implement shadow2DRect functions
2007-04-14 09:36:17 -06:00
Brian
fde15a2bae
Fix sample_depth_texture() to handle texture rectangle coords.
2007-04-14 09:33:20 -06:00
Brian
216eb81c53
set osmesa renderbuffer refcount=1 upon creation, free renderbuffer in OSMesaDestroyContext()
2007-04-14 08:09:12 -06:00
Brian
4fc46a6c82
more _mesa_unreference_framebuffer() calls, remove dead code
2007-04-14 08:06:54 -06:00
Brian
e19cfabb6e
fix negative zoom factor bug (10636), more comments
2007-04-14 07:49:21 -06:00
Dave Airlie
8d8a3cc398
r300: emit different clear paths for non-TCL, this gets the clear color correct
2007-04-14 17:44:33 +10:00
Dave Airlie
fb1d22d23d
r300: remove unneeded semicolon from macro
2007-04-14 17:42:59 +10:00
Dave Airlie
3d59042afd
r300: if we don't have TCL don't setup state emissions for vertex shaders
2007-04-14 04:54:49 +01:00
Brian
967c1056d5
patch for Digital/Tru64 (bug 10635) - forwarded to OpenGL ARB as well
2007-04-13 09:55:35 -06:00
George Sapountzis
9f8373d5ca
xmesa: drop unused XMesaPutImageHelper.
...
It could only be called from XMesaCopySubBuffer but this function is not used
by XFree86.
It seems that XMesaPutImageHelper would handle sub-images but never got
finished. Proper sub-image helpers should be written if need be.
2007-04-13 18:13:08 +03:00
George Sapountzis
50aaabc248
xmesa: export xmesa functions used by xfree86.
...
This uses xmesa.h as the GLcore interface and avoids adding an explicit GLcore
inteface which would not be a proper interface anyway.
It puts the declarations of the three functions specific for XMesa/XFree86 in
xmesa.h, we can push them down to xmesa_xf86.h if hiding behind XFree86Server
ifdef's is not enough.
2007-04-13 18:12:37 +03:00
Brian
30b6f11de1
s/version/vertex/
2007-04-12 16:18:27 -06:00
Brian
f11604a30d
fix bug in _playback_copy_to_current(): need to skip version position data (see bug 10587)
2007-04-12 16:17:01 -06:00
Brian
99193e4f74
disable debug printfs
2007-04-12 15:45:02 -06:00
Brian
5b74fe0889
Added sanity checking in _slang_sizeof_type_specifier() to be sure sizes are what's expected.
2007-04-12 15:23:55 -06:00
Brian
431d650f2b
use _mesa_clear_shader_program_data()
2007-04-12 15:22:53 -06:00
Brian
3c008a014f
New _mesa_reference_shader/program() function to consolidate refcounting.
...
Note that (unlike texture objects), shader handles remain valid (in the
hash table) after glDeleteShader/Program() if the refcount isn't zero.
2007-04-12 15:22:32 -06:00
Brian
bf287356cf
restore 200x200 window size, animation, version check
2007-04-11 14:09:32 -06:00
Brian
bce7043ebc
regenerated
2007-04-11 12:30:31 -06:00
Brian
70b0e123c4
checkpoint: updating non-square matrix constructors and operators
2007-04-11 12:30:03 -06:00
Brian
f98f4f6d7a
move/fix texture sampling funcs
2007-04-11 12:29:38 -06:00
Brian
afc58f5f7e
s/Shadow/SHADOW/
2007-04-11 11:13:37 -06:00
Brian
b61d74c575
as with prev commit, also fix color index mode zoomed depth copies (bug 10608)
2007-04-11 09:04:18 -06:00
Brian
9f66025f54
fix invalid error detection problem in _mesa_bind_attrib_location(), bug 10602
2007-04-11 09:00:56 -06:00
Brian
183d8e0620
fix zoomed depth copies (bug 10608)
2007-04-11 08:47:05 -06:00
Brian
b0bba03846
use _mesa_reference_renderbuffer(), fix typo
2007-04-11 08:11:52 -06:00
Brian
ba876be0c0
fix/work-around allocation bugs for non-square matrices
2007-04-10 21:51:27 -06:00
Brian
319ce38fa4
update SLANG version test
2007-04-10 21:50:53 -06:00
Dave Airlie
64700be4e1
rs480: set vap cntl to what fglrx uses for non-TCL cards
2007-04-10 11:46:58 +01:00
Michel Dänzer
159ecba4b3
i915: Bring test for vsync to pipe B in line with i915tex.
2007-04-10 11:05:17 +02:00
Michel Dänzer
e798d22556
Add missing generated file.
2007-04-10 11:04:19 +02:00
Brian
0109b47106
NULL ptr check
2007-04-09 19:07:22 -06:00
Brian
7b2626f7d8
plug in GLSL 1.20 unit
2007-04-09 19:07:22 -06:00
Brian
19121e2802
undo a debug/test change
2007-04-09 19:07:22 -06:00
Dave Airlie
e0bbf46342
r300: don't enable VAP/TCL on cards that don't support it
2007-04-10 09:32:13 +10:00
Brian
702c8f1e6c
remove unneeded initialization code (see bug 10569)
2007-04-09 11:21:51 -06:00
Brian
f9574c3f6b
allocate __GLXdisplayPrivate w/ Xcalloc instead of Xmalloc (bug 10569)
2007-04-09 08:49:26 -06:00
Michel Dänzer
e8292d28e4
i915tex: Fix some mismatches between texels or bytes for pitch/stride.
2007-04-09 14:57:08 +02:00
Michel Dänzer
c96974f78c
i915tex: Make sure texture format fetch hooks are initialized.
2007-04-09 14:53:41 +02:00
Dave Airlie
6461e91ac3
the RS400 definitely doesn't work at this point so don't let it init
2007-04-09 22:03:31 +10:00
Brian
af807a4696
enable GLSL 1.20
2007-04-08 21:48:19 -06:00
Brian
5c0c60a13c
support for GLSL 1.20 non-square matrices
2007-04-08 16:47:32 -06:00
Brian
5dba996dba
add glsl to PROGRAM_DIRS
2007-04-08 15:50:31 -06:00
Brian
9612a3011f
fix some dependencies, remove some CFLAGS
2007-04-08 15:42:26 -06:00
Brian
0d3d930912
add 2.1 functions
2007-04-08 15:41:02 -06:00
Adam Jackson
d8bfc42bb7
Make sure GLX entrypoints are marked PUBLIC.
...
Fedora bug #229808 .
2007-04-08 14:40:03 -04:00
Wei Wang
ca7885f733
fix bug 9823: GL_CLIENT_ATTRIB_STACK_DEPTH query fails for indirect rendering
2007-04-08 11:24:08 -06:00
Brice Goglin
3832ecadae
Add 06_fix_texture_data_corruption.patch ( closes : #412346 )
2007-04-08 18:52:31 +02:00
Michel Dänzer
9176752172
i915tex: Clean up resizing of renderbuffers.
2007-04-08 14:04:15 +02:00
Michel Dänzer
79bf692420
driUpdateFramebufferSize: Use ctx->Driver.ResizeBuffers.
2007-04-08 14:02:14 +02:00
Brian
f72e7fb1d6
MAX_TEXTURE_COORDS_ARB and MAX_TEXTURE_IMAGE_UNITS_ARB had wrong glGet info.
...
Fixes bug 10371.
2007-04-07 20:38:25 -06:00
Brian
4647f13c43
fix etags command to find headers
2007-04-07 19:36:58 -06:00
George Sapountzis
20ec486baf
Drop XFree86Server from execmem.c
...
This is a remnant from the libcwrapper days that can be removed now. It is the
last XFree86 glitch in Mesa core.
Reverts the following commit (thanks to Brian Paul for pointing to it):
commit 8b1dc68662
Author: Alan Hourihane <alanh@tungstengraphics.com >
Date: Tue Jan 24 21:40:53 2006 +0000
pull in fix from 6.4 branch for XFree86Server definition
commit cc7b6810e2
Author: Ian Romanick <idr@us.ibm.com >
Date: Fri Oct 21 18:09:24 2005 +0000
Make execmem.c compile in the server (libGLcore). Since xf86mmap
doesn't know about MAP_ANONYMOUS, this is the only viable fix. This
issue will likely have to be revisited at some point.
2007-04-07 18:41:14 +03:00
Richard Hughes
55000888b9
set version for tarballs to 6.5.3pre for now
2007-04-07 08:48:07 -06:00
Richard Hughes
4f9d3a07bb
fix references to non-existant sz4 field
2007-04-07 08:46:44 -06:00
Richard Hughes
84803279ca
fix some CHAN_TYPE==GL_FLOAT breakage
2007-04-07 08:46:10 -06:00
Brian
8d2d6e5194
fix comment typo
2007-04-07 08:43:40 -06:00
Richard Hughes
e9c614a1af
remove array_cache/, add vbo/
2007-04-07 08:39:24 -06:00
Brian
8f3fc5221c
added glActiveStencilFaceEXT
2007-04-07 08:38:36 -06:00
Brian
ae55d5322c
for evaluators, loop to VBO_ATTRIB_TEX7, not VBO_ATTRIB_INDEX. See bug 10543
2007-04-06 15:45:11 -06:00
George Sapountzis
92b7fa7b48
xmesa: use newly added xm_image.[hc]
...
Keep external includes to glxheader.h and xmesa includes to xmesaP.h.
Drop the following from xm_image.h:
- dix-config.h (comes from glheader.h)
- xfree86 includes (come from GL/xmesa_xf86.h)
- ifdef __CYGWIN__ (leftover ? xm_api.c has something similar)
2007-04-06 13:28:39 +03:00
George Sapountzis
eb4a8b4bb5
xmesa: add xf86glx_util.[hc] from xserver as xm_image.[hc]
2007-04-06 13:27:43 +03:00
George Sapountzis
663a3e9ba7
Drop the funky SSE exception test on linux.
...
Replace the check for IN_DRI_DRIVER with the appropriate kernel version check
and just disable SSE on older (pre 2.4) kernels.
2007-04-06 13:22:41 +03:00
Brian
51a894e6eb
fix color storage bug in convolution path
2007-04-05 21:12:44 -06:00
Brian
ac32b644ee
include points.h to fix warnings
2007-04-05 11:43:07 -06:00
George Sapountzis
487f7a73cb
Remove SI imports/exports remnants.
2007-04-05 19:01:51 +03:00
George Sapountzis
aa1c79eaea
glx: minor cosmetic in glcontextmodes.c
...
move memory macros to separate block and unwrap malloc/free for miniglx towards
cleaning Mesa core glitches in glx...
2007-04-05 19:00:47 +03:00
George Sapountzis
885111518e
Move glcontextmodes.c to glx.
...
It is no longer linked with DRI drivers, libGL passes function pointers through
the DRI interface.
2007-04-05 18:59:42 +03:00
Brian
0cae814f36
temporary add some extra renderbuffer debug code
2007-04-05 09:28:09 -06:00
Brian
33c3739628
Remove the never-used SI-style imports/exports code.
2007-04-04 22:18:53 -06:00
Brian
4d864b087e
assorted updates
2007-04-04 09:33:12 -06:00
Brian
2f207dcf1e
assorted documentation updates
2007-04-04 09:31:41 -06:00
Brian
f9c01c33d3
init span.y=0 to silence warnings
2007-04-04 09:30:28 -06:00
Brian
d4dc57bb13
Overlapping copies with zoomZ=-1 were broken. See bug 10521.
...
Need to check for overlapping src/dest regions before computing bottom-to-top
vs. top-to-bottom order.
2007-04-04 08:48:06 -06:00
Brian
a28e648690
remove debug printf
2007-04-04 08:26:41 -06:00
Xiang, Haihao
40ae3943f2
i810/i915/i915tex: reinitialize the context point state
2007-04-04 16:50:47 +08:00
Nicolai Haehnle
dba21ed913
Fix in t_vp_build: Missed necessary updates sometimes
...
_mesa_update_state doesn't always reset VertexProgram._Current to NULL.
This caused us to skip a necessary update of the fixed function vertex
program sometimes.
Change the logic such that we check for updates whenever the _Current
program is either NULL or the program generated by t_vp_build.
2007-04-02 21:01:32 +02:00
Brian
66d336808d
Call _glapi_set_context(NULL) in _glapi_check_multithread() to make sure the _glapi_Context global gets cleared properly.
2007-04-02 10:03:34 -06:00
Brian
dccd9c4f4d
use _mesa_reference_renderbuffer() in a few more places
2007-04-02 09:57:27 -06:00
Brian
3fe47d5c57
updated debug printf
2007-04-02 09:57:27 -06:00
Brian
3fd88089c0
Fix some bugs/issues related to alpha channel support. See bug 10483.
2007-04-01 18:30:28 -06:00
Brian
0683e4ce4b
If using PF_8A8B8G8R, be sure alpha is correctly handled.
2007-04-01 18:28:28 -06:00
Brian
ec42af9263
re-order tokens, fix comments
2007-04-01 18:27:23 -06:00
Brice Goglin
285ed128ab
Add a .shlibs file for libglw1-mesa.
2007-04-01 00:44:29 +02:00
Brice Goglin
048144074b
Fix conflicts for libGLw packages.
...
libglw1-mesa does not have to conflict with earlier libgl1-mesa-swx11
(libGLw was only shipped as development libs/headers within swx11-dev).
libglw1-mesa-dev needs to conflicts with libglw-dev.
2007-04-01 00:43:20 +02:00
Brian
00831b5b3b
always emit BGN/ENDSUB, for now anyway
2007-03-31 09:09:48 -06:00
Brian
ec6c8f86f3
fix scoping mistake in previous commit that checked for writable LHSs
2007-03-31 09:09:21 -06:00
Brice Goglin
856ae782c7
* Split out libGLw libs and headers from libgl1-mesa-swx11 and ship both
...
static and shared libraries, creating libglw1-mesa and libglw1-mesa-dev
(closes : #374904 ).
2007-03-31 03:28:32 +02:00
Brian
e608d92c5b
check that LHS of assignment is writable
2007-03-30 14:59:02 -06:00
Eric Anholt
57dadf71ca
Merge branch 'origin'
2007-03-30 13:18:27 -07:00
Eric Anholt
adb91c056f
Merge branch 'crestline-qa', adding support for the 965GM chipset.
2007-03-30 13:11:38 -07:00
Gustavo Pichorim Boiko
6f652c89d7
call DRI_VALIDATE_DRAWABLE_INFO(), bug 10477
2007-03-30 14:10:10 -06:00
George Sapountzis
7439a36785
Clean and update XMesa/XFree86 interface.
...
Drop XMesaSetVisualDisplay(), XMesaReset(), no longer used.
Add XMesaCopyContext() and move the GlxSetRenderTables() call for XGL within
XMesaForceCurrent(). This is to make xserver/GL/mesa/X/xf86glx.c unaware of
Mesa internals.
Also, clean some ifdef's to make it clear that USE_XSHM and XFree86Server are
mutually exclusive.
Lastly,
- move gcstruct.h from glxheader.h up to xmesa_xf86.h since it calls *gc->ops
- drop GL/glxtokens.h from xm_api|dd.c, GLX tokens come from glcore.h and are
used irrelevant of XFree86.
2007-03-30 19:19:00 +03:00
Julien Cristau
12e3f97541
Fix explanation about libglide3 in libgl1-mesa-dri's description.
...
Thanks to Michel Dänzer for his help.
2007-03-30 17:20:02 +02:00
Julien Cristau
30f6fe0710
Have libgl1-mesa-dri suggest libglide3.
...
Add explanation for this in the package description. Closes : #387339 .
2007-03-30 14:10:24 +02:00
Brian
7eba12edce
more tips, validation info
2007-03-28 17:14:35 -06:00
Brian
ba730e14ed
cond code fix
2007-03-28 17:08:17 -06:00
Brian
1ba858591b
fix cond code swizzle bug
2007-03-28 15:45:24 -06:00
Brian
f2f5d06853
Handle logical NOT and XOR without library functions. Results in much tighter code.
2007-03-28 15:16:33 -06:00
Brian
b2ac30ac36
optimization for the emit_not() function
2007-03-28 14:49:33 -06:00
Brian
3b7f2f53a2
remove IR_BREAK_IF_FALSE
2007-03-28 14:38:36 -06:00
Brian
8128f7143d
don't generate IR_BREAK_IF_FALSE
2007-03-28 14:33:25 -06:00
Brian
393a93ea32
Get rid of IR_CONT_IF_FALSE
2007-03-28 14:25:30 -06:00
Brian
3e7d43cd48
Get rid of BRK0, BRK1, CONT0, CONT1 instructions.
2007-03-28 14:23:33 -06:00
Brian
1bbd69251b
Don't emit OPCODE_CONT0/1, BRK0/1 instructions, clean-ups elsewhere.
2007-03-28 14:21:26 -06:00
Brian
f841b04601
simplify, clean-up break/cont code
2007-03-28 14:14:00 -06:00
Brian
b463d52143
added some null ptr checks to handle error recovery
2007-03-28 13:29:57 -06:00
Brian
7e4a7fdddd
Use constant_to_src_reg() to simplify some code
2007-03-28 13:23:44 -06:00
Brian
ee2f31e281
added missing returns after slang_info_log_error() calls
2007-03-28 12:48:27 -06:00
Brian
dad97b4688
Fix, clean-up code related to comparisons, condition codes, etc.
2007-03-28 11:06:34 -06:00
Brian
a01616eed5
print condcodes if DEBUG_PROG
2007-03-28 11:01:28 -06:00
Brian
d750861dc2
expose _mesa_condcode_string(), fix some printing
2007-03-28 11:01:09 -06:00
Brian
59f7f6dbe9
check that if/while/do-while condition is boolean or scalar
2007-03-28 10:44:38 -06:00
Brian
20d85c609a
bump version to 6.5.3 to match version.h
2007-03-28 09:07:41 -06:00
Alan Hourihane
ad766b5785
Add missing OSMesaColorClamp function
2007-03-28 15:58:08 +01:00
Brian
0420d8505a
disable MakeTexture()
2007-03-27 16:06:48 -06:00
Brian
05e6fd8398
added ftransform() comment
2007-03-27 16:06:48 -06:00
Brian
e5d00e8cf4
Implement true CAL/RET subroutines. Some optimizations, clean-ups coming...
2007-03-27 16:06:48 -06:00
Brian
31dc7a3c89
fix another pc off-by one
2007-03-27 16:06:47 -06:00
Brian
17238f1ee5
added _slang_label_new_unique()
2007-03-27 16:06:47 -06:00
Brian
f407cada8a
fix some printing issues related to subroutines
2007-03-27 16:06:47 -06:00
Brian
e713ef66ef
fix a fragment fog regression
2007-03-27 16:06:47 -06:00
Brian
a0275b0d2c
fix off by one error in OPCODE_RET
2007-03-27 16:06:47 -06:00
Brian
d6d6d20b13
init machine->StackDepth=0
2007-03-27 16:06:47 -06:00
Brian
1f1f582304
more parenthesis
2007-03-27 16:06:47 -06:00
Roland Scheidegger
811c2e9a91
i915tex compile fix (account for moved _UseTexEnvProgram var)
2007-03-27 22:57:22 +02:00
Roland Scheidegger
cda3236092
fix incorrect _MaxElement calculation
...
The calculation of _MaxElement was wrong if the stride was larger than
elementSize, which lead to rejection of every DrawElements call which accessed
the maximum element if CheckArrayBounds was enabled.
2007-03-27 21:03:32 +02:00
Roland Scheidegger
9b9e056615
recommit e731d8aafa
.
...
This got lost with glsl-compiler-1 merge, it fixes segfaults when using
ATI_fragment_shader, which uses the ProgramStringNotify mechanism but doesn't
have a valid program pointer.
2007-03-27 19:33:34 +02:00
Brian
ff65fa39e8
add parenthesis around a bit-wise AND term in _tnl_InvalidateState()
2007-03-27 09:52:53 -06:00
Brian
3e45db6729
Restore the UseTexEnvProgram logic.
...
Was removed during glsl-compiler work. Still need to go back and revisit this
because of the interaction with fragment shaders...
2007-03-27 09:51:52 -06:00
Roland Scheidegger
3b8ab88131
r300: Fix radeonUpdatePageFlipping() function.
...
Always call driFlipRenderbuffers() with pfCurrentPage value, in case it's
initially 1 instead of 0. May fix some issues with pageflip, the same fix was
applied to r128, radeon and r200 (6e0e6eff05
).
2007-03-27 16:27:34 +02:00
Roland Scheidegger
32225d06b9
r128, radeon, r200: Check ctx->WinSysDrawBuffer before calling function that dereferences it.
...
Same fix as for r300 (which fixed https://bugs.freedesktop.org/show_bug.cgi?id=10417 ),
since it's likely an issue with those drivers too.
2007-03-27 16:22:00 +02:00
Bernardo Innocenti
a835939222
always print error messages, unless LIBGL_DEBUG=quiet
2007-03-27 08:05:33 -06:00
Brian
98abd1bbc8
simplify .a suffixing
2007-03-27 07:58:47 -06:00
Bernardo Innocenti
a9455bb9a7
remove static lib before building to make more bulletproof
2007-03-27 07:56:34 -06:00
Michel Dänzer
63c57a14d3
r300: Check ctx->WinSysDrawBuffer before calling function that dereferences it.
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10417 .
2007-03-27 09:44:32 +02:00
Miroslav Šustek
25f21b5331
fix r128 rendering, lockups
...
mis-count in offset led to mis-rendering and lockups;
units are 4 bytes rather than 1. Noticed by Chris Salch.
fixes bug 7994, possibly others.
2007-03-26 23:40:04 -04:00
Zou Nan hai
da82d86ea0
Merge branch 'master' of git+ssh://znh@git.freedesktop.org/git/mesa/mesa
2007-03-27 09:41:31 +08:00
Zou Nan hai
075d3d892f
Fix compile error
2007-03-27 09:41:01 +08:00
Brian
ae36cfc65e
s/SUB/BGNSUB/
2007-03-26 18:47:19 -06:00
Brian
9878e8ff51
Checkpoint: implementing true CAL/RET instructions for subroutine calls.
...
Also, found/fixed a code generation regression: the emit_swizzle() function
was always returning NULL. This caused emit_move() to miss its chance at peephole
optimization.
2007-03-26 18:46:07 -06:00
Brian
6583429f89
Get rid of IR_JUMP and related code.
2007-03-26 17:16:26 -06:00
Brian
037c068460
special case RET
2007-03-26 16:58:50 -06:00
Brian
c042a91b8b
Get rid of SLANG_OPER_GOTO, start rewrite of 'return' handling.
2007-03-26 16:56:45 -06:00
Brian
813a0e11f1
remove debug abort() calls
2007-03-26 16:01:58 -06:00
Brian
52cc32378c
Additional error checking for 'return' statements.
2007-03-26 15:46:35 -06:00
Brian
c3da0bd7dd
undo some debugging hacks
2007-03-26 15:09:59 -06:00
Brian
e508155d16
dead code elimination for constant-valued if/then/else
2007-03-26 15:02:21 -06:00
Nicolai Haehnle
0426d3c0c8
r300: Remove a warning when vertex programs produce an unused output
...
As far as we know, the hardware prefers outputs packed tightly together
with no holes caused by outputs that are not even read by the fragment
program. Therefore, we slightly rewrite vertex programs in this case.
It would be interesting to test this interaction between vertex programs
and fragment programs further, because some of that rewrite may be
unnecessary. However, play it safe for now and don't change the current
behaviour.
2007-03-26 22:25:06 +02:00
Nicolai Haehnle
b53745ce91
r300: Whitespace cleanup (remove trailing spaces)
2007-03-26 22:25:06 +02:00
Brian
768f7231ea
Fix a few issues with computing storage sizes with respect to swizzles.
2007-03-26 13:46:46 -06:00
Brian
680abf8a02
In _mesa_lookup_parameter_constant() make sure we return a full, 4-component swizzle.
2007-03-26 13:46:46 -06:00
Nicolai Haehnle
1170268088
r300: Fix warnings that were introduced by the glsl merge
2007-03-26 21:41:57 +02:00
Brian
38a1c2b495
Add _swrast_span_default_secondary_color() for use with glBitmap, glDrawPixels, etc.
...
Secondary color wasn't getting added to post-texture color when drawing
bitmaps, images. See bug 10409.
2007-03-26 11:30:05 -06:00
Brian
b5d988dd19
remove incorrect assertions
2007-03-26 10:39:56 -06:00
Brian
b67d93111d
minor status updates
2007-03-26 10:23:50 -06:00
Brian
22d9132081
disable printing shader program debug info
2007-03-26 10:15:02 -06:00
Brian
d619cceea4
merge of glsl-compiler-1 branch
2007-03-26 10:13:02 -06:00
Michel Dänzer
76f3b66e04
i915tex: Make sure renderbuffers don't get deleted when flipping them.
...
Since the recent renderbuffer refcounting fixes it's no longer sufficient to
just remove the old renderbuffer from the framebuffer and then add the new one
because the former may decrease the reference count to 0 and delete the old
renderbuffer.
2007-03-26 17:38:58 +02:00
Brian
e71c34aaa1
disable free() until other issues can be fixed...
2007-03-26 09:24:30 -06:00
Brian
b9fbedd601
fix mem leak, add comments
2007-03-26 09:23:44 -06:00
Nian Wu
ee9bc897f8
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-26 17:00:29 +08:00
Nian Wu
1b354bb5e4
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-25 17:00:24 +08:00
Brian
bb0393a0cd
fix mem leak
2007-03-24 16:44:20 -06:00
Brian
9fe342d1e6
disable free(var->aux) -- can lead to segfault
2007-03-24 16:43:44 -06:00
Brian
cfdd07d7d3
fix mem leak
2007-03-24 16:26:51 -06:00
Brian
1968444bed
fix some mem leaks
2007-03-24 16:22:35 -06:00
Brian
935f93f966
Free shader-related context state: _mesa_free_shader_state()
2007-03-24 16:20:02 -06:00
Brian
3493e867e9
free prog->Attributes in _mesa_delete_program()
2007-03-24 16:18:13 -06:00
Brian
49134e8e53
fix mistake in _slang_free_ir()
2007-03-24 15:29:10 -06:00
Brian
0e71d08e8d
Properly free the slang_ir_node->Store data (use ref counting).
2007-03-24 10:18:14 -06:00
Brian
b50b036ffb
When computing render_inputs_bitset, omit primary color if we have a fragment program and it doesn't need FRAG_ATTRIB_COL0. Silences valgrind warnings.
2007-03-24 10:16:49 -06:00
Brian
dc3015f157
move some code into new slang_ir.c file
2007-03-24 09:40:20 -06:00
Brian
b2bc563142
IR utility functions
2007-03-24 09:39:24 -06:00
Nian Wu
44fb5156bb
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-24 17:00:29 +08:00
Brian
8f9db0f81c
document internal compiler options
2007-03-23 17:49:19 -06:00
Brian
d1934c2065
Fix issues related to the 'continue' statement.
...
IR_LOOP now has two children: the body code, and the tail code.
Tail code is the "i++" part of a for-loop, or the expression at the end
of a "do {} while(expr);" loop.
"continue" translates into: "execute tail code; CONT;"
Also, the test for infinite do/while loops was incorrect.
2007-03-23 17:48:42 -06:00
Brian
81767eead9
consolidate some code
2007-03-23 17:45:53 -06:00
Brian
63556fa994
Add the ability to generate programs that doesn't use condition codes.
...
ctx->Shader.EmitCondCodes determines if we use condition codes.
If not, IF statement uses first operand's X component as the condition.
Added OPCODE_BRK0, OPCODE_BRK1, OPCODE_CONT0, OPCODE_CONT1 to handle
the common cases of conditional break/continue.
2007-03-23 14:47:46 -06:00
Brian
bf020d8d7f
minor tweaks
2007-03-23 14:44:34 -06:00
Brian
2bdac09d16
updated comment
2007-03-23 10:46:08 -06:00
Nian Wu
ad76128204
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-23 17:00:28 +08:00
Brian
fe20a619cf
updated comment
2007-03-22 16:07:43 -06:00
Brian
e6aeb24b23
Overhaul emit_compare() function.
...
Previously, comparing vec2, vec3, vec4 was broken.
Added IR_EQUAL, IR_NOTEQUAL nodes/operators to compute boolean
equality/inequality vs. IR_SEQUAL/IR_SNEQUAL which work component-wise.
Use IR_EQUAL/IR_NOTEQUAL for the == and != operators.
To compute vec4 equality, use SNE, DP4, SEQ instruction sequence.
2007-03-22 16:07:14 -06:00
Brian
0aad9e2627
First pass at implementing structure compares.
...
Need to improve this. There may be holes in a structure so we can't
just blindly compare the full 4-float registers.
2007-03-22 09:15:39 -06:00
Brian
12229f119d
use _mesa_copy_instructions()
2007-03-22 09:11:26 -06:00
Brian
1bf81e3c5d
In _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow swizzleOut==NULL.
...
There are times when we don't want to allow swizzling when searching for or
adding vector constants. Passing NULL for swizzleOut disables swizzling.
This fixes a constant/swizzle bug in link_uniform_vars().
2007-03-22 09:07:27 -06:00
Brian
1936b25ebd
print conditional writemask, if enabled
2007-03-22 09:04:18 -06:00
Nian Wu
2eb656ef4f
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-22 17:00:33 +08:00
Brian
629ec2b06b
added SWIZZLE_XYZW
2007-03-21 15:40:54 -06:00
Brian
2500d82d0d
Support for user-defined structures.
...
struct == and != operators not finished yet. Struct assignment works though.
2007-03-21 15:40:39 -06:00
Brian
97c9b3ecc6
disable apparently unused code
2007-03-21 15:38:46 -06:00
Brian
e02b989ff9
indent
2007-03-21 14:45:34 -06:00
Brian
23d31efc16
merge from master
2007-03-21 11:57:30 -06:00
Brian
180cc2f845
disable assertion
2007-03-21 11:41:41 -06:00
Nian Wu
8ba06464ac
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-21 17:00:32 +08:00
Nian Wu
76444d042c
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-20 13:10:46 +08:00
Brian
fdcbbeb55e
Properly compute render_inputs_bitset when using a vertex program/shader.
...
This fixes a performance regression introduced early in glsl-compiler-1 work.
2007-03-19 14:44:15 -06:00
Nian Wu
e01ee3da57
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-19 17:00:19 +08:00
Nian Wu
fd1b1fce3f
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-18 17:00:18 +08:00
Nian Wu
38889f5221
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-17 17:00:25 +08:00
Nian Wu
a02870f4f6
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-16 17:00:24 +08:00
Brian
e348016253
silently ignore DeleteProgram/Shader(id=0)
2007-03-15 16:07:39 -06:00
Brian
7ed292a4e9
in _mesa_GetColorTable, return silently if table size is 0
2007-03-15 16:06:58 -06:00
Nian Wu
d63eef4b86
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-15 17:00:22 +08:00
Brian
62b4601e53
s/Tranpose/Transpose/
2007-03-14 13:34:30 -06:00
Brian
565d097d8f
continue prev check-in: save ptr to slang_function for SLANG_OPER_CALL
2007-03-14 11:07:32 -06:00
Brian
2dc3e94470
After we've found the slang_function ptr for a SLANG_OPER_CALL node, save the ptr in the node for reuse.
...
This can save a tremendous amount of time when resolving types in complex
expressions. One particular shader was taking several minutes to compile
but now compiles almost instantaneoulsy.
2007-03-14 10:49:35 -06:00
Brian
b1a955b518
make _slang_typeof_function() static
2007-03-14 10:16:18 -06:00
Brian
b01f146fd0
remove old assertion
2007-03-14 08:56:01 -06:00
Nian Wu
805b1cf482
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-14 17:00:15 +08:00
Brian
52363954bf
more bug fixing, error checking
2007-03-13 16:50:24 -06:00
Brian
98650bdf89
fix a number of issues in _mesa_uniform()
2007-03-13 16:32:48 -06:00
Brian
5186529e57
remove bogus assertion
2007-03-13 16:31:30 -06:00
Brian
fdf513e07a
document some bug fixes, lots of new features
2007-03-13 16:12:23 -06:00
Brian
8d9db3dd03
fix ctx->Pixel.PostConvolutionScale/Bias subscript bugs
2007-03-13 16:07:04 -06:00
Brian
fd08463dea
Check for, simplify vec2/3/4(x). Only do call adapting for constructors.
2007-03-13 15:58:40 -06:00
Brian
c7b2cce418
improve literal printing
2007-03-13 15:57:09 -06:00
Brian
000b2899b9
disable some debug output
2007-03-13 15:55:54 -06:00
Brian
a49a865cf5
better error msg for undefined function, disable some debug output
2007-03-13 15:55:41 -06:00
Brian
948c60badc
get rid of float_multiply, float_add, float_divide
2007-03-13 15:00:14 -06:00
Brian
d8070889d7
alloc an extra byte in _mesa_ShaderSourceARB() to silence a valgrind warning
2007-03-13 11:00:21 -06:00
Brian
c000843a14
be smarter about which fragment attribs are interpolated before running frag progs
2007-03-13 10:58:48 -06:00
Brian
da55430952
comment about SPAN_* vs FRAG_BIT_* values
2007-03-13 10:58:23 -06:00
Brian
17ad1d12eb
Check if FRAG_RESULT_COLR is written and update span->interpMask, arrayMask.
...
Also, fix an assertion.
2007-03-13 10:53:16 -06:00
Brian
8b9842a256
Shuffle some code around in the emit_tex() and emit_move() instructions.
...
Note that the inst ptr returned by new_instruction() may become invalid
after calling emit_() since the emit functions may allocate new instructions
which is done vial realloc().
Also, add some new assertions to try to catch this kind of bug.
2007-03-13 10:49:08 -06:00
Brian
7265e6928e
properly compute ctx->Texture._EnabledCoordUnits
2007-03-13 10:28:26 -06:00
Nian Wu
4110fac389
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-13 17:00:18 +08:00
Brian
b3a22d0ed6
Implement GL_ARB_texture_rectangle support
...
This includes the sampler2DRect and sampler2DRectShadow types and
the texture2DRect(), texture2DRectProj(), etc. built-in functions.
2007-03-12 17:29:50 -06:00
Brian
8946d7f029
Add array bounds checking, fix memleaks, add null ptr checks.
2007-03-12 10:52:52 -06:00
Brian
d2a6f43eaf
extra stuff for drawbuffers test
2007-03-12 10:30:36 -06:00
Nian Wu
5a5b55943d
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-12 09:03:27 +08:00
Brian
3f7ef618b6
added drawbuffers.c
2007-03-11 17:30:13 -06:00
Brian
15aa7aaa93
add NULL ptr check
2007-03-11 17:29:54 -06:00
Brian
ccb80d7ec4
Test the GL_ARB_draw_buffers extension.
...
Also requires GL_EXT_framebuffer_object and OpenGL 2.0 (for GLSL).
2007-03-11 17:03:29 -06:00
Brian
1c09bcfdda
Implement support for GL_ARB_draw_buffers with GL_MAX_DRAW_BUFFERS > 1.
...
GL_MAX_DRAW_BUFFERS is currently 4.
Added gl_FragData[] output for fragment programs.
In _swrast_write_rgba_span() loop over the color outputs/renderbuffers.
2007-03-11 17:00:39 -06:00
Brian
d23dd812ad
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into glsl-compiler-1
2007-03-10 14:07:28 -07:00
Brian
10b5895597
Implement gl_FrontFacing for fragment shaders.
...
For the time being, we put the gl_FrontFacing value in the FOGC.Y input
register. Combining FOGC and FrontFacing in one register is a bit of a
hack and may need to be changed someday.
2007-03-10 11:30:19 -07:00
Brian
1fcb4ecc07
clean-up formatting
2007-03-10 10:56:06 -07:00
Brian
c9872b80c8
add NULL ptr check in emit_cond()
2007-03-10 10:37:18 -07:00
Brian
46bd63819e
use gl_ModelViewProjectionMatrixTranspose in ftransform()
2007-03-09 17:02:12 -07:00
Brian
ff95925e70
add NULL ptr check
2007-03-09 16:53:44 -07:00
Brian
b9ea936150
added GL_CURRENT_PROGRAM
2007-03-09 15:41:25 -07:00
Brian
2cf5fd48d1
Merge branch 'origin' into glsl-compiler-1
...
Conflicts:
src/mesa/main/context.c
2007-03-09 11:43:53 -07:00
Brian
9f44247acf
fix _mesa_uniform_matrix() transpose bug
2007-03-09 11:34:18 -07:00
Brian
b03e1712b2
gl_ClipVertex not supported yet
2007-03-09 09:51:55 -07:00
Brian
a706b0b8bd
added missing bvec2/3/4 constructors
2007-03-08 16:08:55 -07:00
Brian
05b74e4ae4
fix broken vec4_seq, vec4_sne instructions
2007-03-08 15:59:20 -07:00
Brian
2f35a17f38
Update lessThan(), lessThanEqual() functions, improve some matrix constructors.
2007-03-08 15:53:05 -07:00
Brian
5761a93bba
Added IR_SLE and IR_SLT for <= and < operations.
...
Using IR_SGE and IR_SGT with transposed args doesn't work since the __asm
calls don't do argument matching by name, but by position.
This fixes the broken lessThan() and lessThanEqual() functions.
2007-03-08 15:52:22 -07:00
Brian
3e0fbc7efc
fix tmp storage problem for IR_I_TO_F
2007-03-08 15:45:25 -07:00
Brian
19a9050548
fix assertion
2007-03-08 15:19:34 -07:00
Brian
ee931f8d4d
; and {} statements were broken
2007-03-08 14:48:34 -07:00
Brian
ec89aba7c6
remove unused new_cjump()
2007-03-08 11:29:22 -07:00
Brian
cce4e50569
IR_CJUMP0/1 no longer used/needed
2007-03-08 11:16:13 -07:00
Brian
63772e2a2c
rewrite _slang_gen_select() to use IF node
2007-03-08 11:07:52 -07:00
Brian
b3dd49429b
s/_slang_gen_hl_if/_slang_gen_if/
2007-03-08 10:53:50 -07:00
Brian
609306de17
s/_slang_gen_hl_if/_slang_gen_if/
2007-03-08 10:43:57 -07:00
Brian
c9f486c38f
remove old assertion
2007-03-08 10:40:37 -07:00
Brian
bf86ddaa20
check for attempted writes to read-only vars
2007-03-08 10:40:25 -07:00
Brian
de8172673e
Rework matrix-related code.
...
GLSL matrices are stored in column-major order while GL_ARB_vertex/fragment_program
use row-major. So, need to use STATE_MATRIX_TRANSPOSE for built-in matrices.
Unfortunately, this means that the expression M * V isn't very efficient since we
need to extract the rows out of M. And that's the typical expression for vertex
transformation: gl_ModelViewProjectionMatrix * gl_Position.
Solve this inefficiency by looking for M*V expressions and replacing them
with V*Transpose(M).
Also, add support for GLSL 1.20's MatrixTranspose, Inverse and InverseTranspose
matrices.
2007-03-08 09:38:35 -07:00
Brian
6ff0a04f7c
fix ProjectionMatrix typo
2007-03-08 07:53:30 -07:00
Brian
7e66cad998
fix gl_TextureMatrix indexing
2007-03-08 07:51:39 -07:00
Brian
9637c963f5
more DEBUG_PROG
2007-03-07 17:40:57 -07:00
Brian
fb3f0beb42
update comments
2007-03-07 17:37:24 -07:00
Brian
0aec2bb8f2
remove unneeded return stmt
2007-03-07 16:13:33 -07:00
Brian
da899d190e
add missing gl_Point state, fix IR storage bug
2007-03-07 16:13:22 -07:00
Nian Wu
1e055089a3
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-07 16:01:36 -05:00
Brian
29bc4b8974
s/diffuset/diffuse/
2007-03-07 13:35:49 -07:00
Brian
c3412e9a08
regenerated
2007-03-07 13:07:40 -07:00
Brian
842c782cee
use 2.0, 2.1 version strings
2007-03-07 13:07:07 -07:00
Brian
faeea574af
remove end_label field
2007-03-07 13:00:06 -07:00
Brian
35d25c0ce4
Fix problem with nested function calls such as y = f(f(x))
...
Replace CurFunction with curFuncEndLabel.
2007-03-07 12:59:01 -07:00
Brian
5b5a80d011
s/equal/EQUAL/, fix bugs in logical or/and code.
2007-03-07 11:26:47 -07:00
Brian
ab673c8527
fix broken __postDecr()
2007-03-07 11:25:37 -07:00
Brian
1dca089149
fix deferredTexture bug
2007-03-07 10:42:44 -07:00
Brian
3efd0c7b8d
fix swizzled writemask bug
2007-03-07 09:59:26 -07:00
Brian
f3da222839
remove bogus assertion
2007-03-07 09:58:45 -07:00
Brian
d25046b648
fix incorrect HPOS write test
2007-03-07 08:56:09 -07:00
Brian
e61ec95deb
additional error detection
2007-03-07 08:55:42 -07:00
Brian
cec81eef31
check for null program ptrs in _mesa_uniform()
2007-03-07 08:04:06 -07:00
Brian
55821d021d
Generate an error if the vertex shader does not write to gl_Position.
2007-03-07 07:52:24 -07:00
Brian
6cb0aa12b8
more integer arithmetic updates
2007-03-06 16:32:03 -07:00
Brian
e10a1457e8
fix some int arithmetic problems
2007-03-06 14:07:48 -07:00
Nian Wu
87c9ad6fd5
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-06 16:01:23 -05:00
Brian
28ab1125c2
more DEBUG_PROG code
2007-03-06 12:15:30 -07:00
Brian
c6d930a114
fix vert/frag typo
2007-03-06 11:53:27 -07:00
Nian Wu
c05b6f800a
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-06 07:43:03 -05:00
Nian Wu
540e1c70cc
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-05 09:01:31 -05:00
Nian Wu
180c0d70c4
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-02 09:01:27 -05:00
Nian Wu
6a47e35065
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-03-01 09:01:58 -05:00
Brian
07e62084bb
info about how the compiler works
2007-02-27 16:45:40 -07:00
Nian Wu
381b4b0c91
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-02-27 14:42:16 -05:00
Brian
0e1bd23025
s/matrix_stack/gl_matrix_stack/ and s/mesa_list_state/gl_dlist_state/
2007-02-27 09:54:50 -07:00
Brian
2cf8d24131
remove unused DriverMgrCtx
2007-02-26 18:35:34 -07:00
Brian
fa4d036424
Add EmitHighLevelInstructions, EmitComments booleans to gl_shader_state.
...
These control code generation options. May be overridden by drivers, debuggers, etc.
2007-02-26 18:33:50 -07:00
Brian
4f26a52908
re-enable var scope destruct in slang_operation_destruct()
2007-02-26 18:08:09 -07:00
Brian
553fe132d4
Fix a few bugs in slang_operation variable scoping. Seems to fix a double-free.
2007-02-26 18:07:26 -07:00
Brian
aa6f4241f8
formatting fixes
2007-02-26 17:32:45 -07:00
Brian
b58ea057fe
fix mem leak in _mesa_ShaderSourceARB()
2007-02-26 17:00:06 -07:00
Brian
4b8d75e2e6
fix logic for reporting errors
2007-02-26 16:32:00 -07:00
Brian
f446e58e45
disable execute bit
2007-02-26 15:13:34 -07:00
Brian
6817407d49
fix error flagging
2007-02-26 15:06:56 -07:00
Brian
365f8fb0dd
re-enable some code
2007-02-26 15:02:36 -07:00
Brian
ed0ae62ad7
Merge branch 'glsl-compiler-1' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into glsl-compiler-1
2007-02-26 14:34:57 -07:00
Brian
ca279b80e6
Remove old error logging code. New slang_log.[ch] files.
2007-02-26 14:33:52 -07:00
Brian
c4ac5ac9d7
Overhaul of error handling.
2007-02-26 14:32:53 -07:00
Brian
7f01ef171f
Overhaul of error logging.
2007-02-26 14:32:29 -07:00
Brian
e63c7e0893
Use new slang_emit_info struct for passing context info around.
2007-02-26 14:22:05 -07:00
Brian
25ea5ea27e
Merge branch 'glsl-compiler-1' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into glsl-compiler-1
2007-02-26 13:11:20 -07:00
Brian
4e53ce81cf
remove unneeded includes
2007-02-25 20:05:22 -07:00
Brian
3c1c999226
update comments
2007-02-25 19:11:44 -07:00
Brian
313d50e903
fix bounds checking in get_register_pointer()
2007-02-25 19:01:16 -07:00
Brian
b85d4d61a7
define and use MAX_PROGRAM_ADDRESS_REGS
2007-02-25 18:56:57 -07:00
Brian
33eac56e4a
Add EnvParams field to gl_program_machine, avoid passing ctx to a bunch of functions.
2007-02-25 18:52:41 -07:00
Brian
6774f32adb
simplify _mesa_get_program_register()
2007-02-25 18:39:46 -07:00
Brian
21bcb2e1f6
s/GetFragmentProgramRegister/GetProgramRegister/
2007-02-25 18:35:47 -07:00
Brian
cfd0011f2f
minor clean-ups in _mesa_execute_program()
2007-02-25 18:30:45 -07:00
Brian
8b34b7da41
remove 'maxInst' parameter from _mesa_execute_program()
2007-02-25 18:26:50 -07:00
Brian
085d7d59f0
remove unused 'element' parameter from _mesa_execute_program()
2007-02-25 18:23:37 -07:00
Brian
12fd8faa5d
s/attribs/results/
2007-02-25 18:08:16 -07:00
Brian
29796b62bd
remove unused VaryingPtr
2007-02-25 17:33:46 -07:00
Brian
e71a33bbf8
Optimize the loop for copying output results.
2007-02-25 17:29:00 -07:00
Brian
f68067e101
add texture rotation
2007-02-25 17:24:40 -07:00
Brian
9854a17f29
only copy used outputs
2007-02-25 12:47:25 -07:00
Brian
21625d729c
output texcoord in vertex program
2007-02-25 12:46:56 -07:00
Nian Wu
675f7f627b
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2007-02-25 09:40:28 -08:00
Brian
32fbbf38b4
Revert "option to test mipmapping"
...
This reverts commit a127537efb
.
Meant to do this on the trunk.
2007-02-24 18:27:46 -07:00
Brian
a127537efb
option to test mipmapping
2007-02-24 18:20:35 -07:00
Brian
fbc4929185
add missing code for newer STATE_INTERNAL items
2007-02-24 17:00:50 -07:00
Brian
efcfdbd4d1
Undo some changes to _mesa_UpdateTexEnvProgram(). Fixes broken i915 texturing.
2007-02-24 15:51:41 -07:00
Brian
292a80466d
Outputs[] array wasn't large enough, define MAX_PROGRAM_OUTPUTS, new assertions.
2007-02-24 15:49:54 -07:00
Brian
5e80c62f31
Remove unneeded _Fragment/VertexShaderPresent fields, update comments.
2007-02-24 15:39:37 -07:00
Brian
197af3dc32
Use prog_execute.c to run vertex programs until t_vb_arbprogram.c is updated to
...
handle branch instructions, etc.
2007-02-24 11:16:58 -07:00
Brian
824dcd4399
remove comment
2007-02-24 11:15:27 -07:00
Brian
761728afe8
Fix assertion in get_register_pointer(), fix EXP case.
...
Note that GL_ARB_v_p and GL_NV_v_p define the z component of the EXP instruction
differently. We follow the ARB extension.
2007-02-24 11:14:57 -07:00
Brian
f183a2d7ea
added ARL, EXP, LOG, relative indexing
2007-02-23 17:14:30 -07:00
Brian
a2786a97d7
add some missing cases in _mesa_program_state_string()
2007-02-23 17:13:30 -07:00
Brian
f1390a3424
fix fog breakage
2007-02-23 17:11:01 -07:00
Brian
e80d901d98
reindent
2007-02-23 16:53:24 -07:00
Brian
6df328e84d
don't pass program ptr to fetch_vector[14]()
2007-02-23 16:48:07 -07:00
Brian
064ae479a7
Update DRI drivers for new glsl compiler.
...
Mostly:
- update #includes
- update STATE_* token code
2007-02-23 13:40:13 -07:00
Brian
36a0ee199d
expose _mesa_load_tracked_matrices()
2007-02-23 13:38:37 -07:00
Brian
15b3bd1689
added linux-dri-debug
2007-02-23 11:58:46 -07:00
Brian
cc6a08b2a0
SWvertex no longer has texcoord field, use attrib field instead
2007-02-23 11:45:15 -07:00
Brian
fce8409cbb
s/GLint/gl_state_index/, length is now 5 not 6
2007-02-23 11:44:44 -07:00
Brian
9fe3e2efc3
s/GLint/gl_state_index/, length is now 5 not 6
2007-02-23 11:44:14 -07:00
Brian
0020d1022f
re-expose _mesa_print_alu_instruction()
2007-02-23 11:43:44 -07:00
Brian
ef0cc9db54
remove dead code
2007-02-23 11:43:14 -07:00
Brian
aa9d22a1c0
replace GLint with gl_state_index
2007-02-23 11:21:03 -07:00
Brian
99902198de
comments, clean-up
2007-02-23 10:19:55 -07:00
Brian
5186ae9bbe
remove unused slang_atom_pool_gen()
2007-02-23 10:12:38 -07:00
Brian
308be21c2f
added slang_label.c
2007-02-23 10:04:18 -07:00
Brian
c2a261f493
comments, clean-up
2007-02-23 09:55:21 -07:00
Brian
75d4ed968d
Replace slang_ir_node::Target w/ Field. Remove Comment field. Clean-up.
2007-02-23 09:42:11 -07:00
Brian
c18c75b0b7
remove old _slang_gen_if()
2007-02-23 09:38:46 -07:00
Brian
afbf7c7e6b
Re-implement branching with slang_labels.
...
This eliminates the NOP instructions that had been used as placeholders for
branch targets.
Also, fix "return" statement bug.
2007-02-23 09:38:17 -07:00
Brian
d8d07b2a8a
label routines for implementing branches, jumps
2007-02-23 09:36:29 -07:00
Brian
0cc9419631
debug code for emitting variable allocation comments
2007-02-22 17:46:20 -07:00
Brian
059376c855
expose _mesa_swizzle_string()
2007-02-22 17:45:32 -07:00
Cyril Brulebois
0aa8f1df3c
* Non-maintainer upload.
...
* Backport a fix from mesa 6.5.2 to mesa 6.5.1 which:
- fixes braces around the ASSERT macro;
- fixes a clipping problem, which leads to systematic segfaults of the
X server (Closes : #405803 ).
2007-02-23 00:48:40 +01:00
Brian
ff0cc92757
glslcompiler build instructions
2007-02-22 16:29:48 -07:00
Brian
bc18ac45a3
updated for vbo
2007-02-22 16:29:25 -07:00
Brian
da46353056
Remove obsolete files.
2007-02-22 16:14:02 -07:00
Brian
13e3b21b16
New, unified interpretor/executor for vertex and fragment programs.
...
This replaces the code formerly in nvvertexec.c and s_fragprog.c.
Currently, DDX, DDY don't work.
2007-02-22 16:09:40 -07:00
Brian
7aaefcbe48
use _mesa_get_program_register()
2007-02-22 16:08:30 -07:00
Brian
f6803de739
Use the new unified vertex/fragment program interpreter from prog_execute.c.
...
Currently, DDX, DDY don't work.
2007-02-22 16:08:01 -07:00
Brian
e382efc85d
use new _mesa_execute_program() function
2007-02-22 16:07:17 -07:00
Brian
6cfe2114f1
FORCE_PROG_EXECUTE_C cpp flag, misc changes
2007-02-22 16:06:54 -07:00
Brian
fd89396012
fix assertion
2007-02-22 16:02:18 -07:00
Brian
7c86e10193
emit high-level IF/ELSE/ENDIF for vertex progs now
2007-02-22 16:02:08 -07:00
Brian
740a8b0b66
_mesa_ExecuteProgramNV is now a no-op
2007-02-22 16:00:54 -07:00
Brian
ef64cda978
remove nvvertexec.c, add prog_execute.c
2007-02-22 16:00:31 -07:00
Brian
3ed1acd13c
use MAX_PROGRAM_ENV_PARAMS
2007-02-22 14:57:40 -07:00
Brian
b7aeac0de1
added MAX_PROGRAM_ENV_PARAMS
2007-02-22 14:57:19 -07:00
Brian
79fb4527ca
added CallStack, StackDepth
2007-02-22 14:56:43 -07:00
Brian
29925c6dcd
remove unneeded #includes, misc clean-up
2007-02-22 14:56:22 -07:00
Brian
e47c60443f
reorg/clean-up/indent
2007-02-22 14:55:35 -07:00
Brian
11b9ef9454
start implementing conditions, branching
2007-02-22 14:43:41 -07:00
Brian
2eeaae6cbc
get rid of some unused slang_variable fields
2007-02-22 11:00:10 -07:00
Brian
50040573d7
Replace slang_allocate_storage() with simpler _slang_attach_storage()
2007-02-22 10:56:41 -07:00
Brian
b618ac8c0b
updated debug code
2007-02-22 09:39:25 -07:00
Brian
776bc9cf55
Undo some STATE_POINT/FOG changes. Max length of state token array is now 5.
2007-02-22 09:29:46 -07:00
Brian
3f4826a358
XXX comments about shaders
2007-02-22 09:10:38 -07:00
Brian
6ec7484ae8
use ctx->VertexProgram._Current instead of ctx->VertexProgram._Enabled
2007-02-22 09:10:24 -07:00
Brian
96abc6bf72
merge fix: add STATE_FOG_PARAMS_OPTIMIZED, STATE_SPOT_DIR_NORMALIZED
2007-02-22 09:08:53 -07:00
Brian
7b30053b26
fix negative indentation problem
2007-02-22 09:08:36 -07:00
Brian
29c471aafc
Merge branch 'origin' into glsl-compiler-1
...
Conflicts:
src/mesa/main/state.c
src/mesa/shader/program.c
src/mesa/shader/program.h
src/mesa/shader/programopt.c
src/mesa/shader/slang/slang_execute.c
src/mesa/sources
src/mesa/swrast/s_arbshader.c
src/mesa/swrast/s_context.c
src/mesa/swrast/s_span.c
src/mesa/swrast/s_zoom.c
src/mesa/tnl/t_context.c
src/mesa/tnl/t_save_api.c
src/mesa/tnl/t_vb_arbprogram.c
src/mesa/tnl/t_vp_build.c
src/mesa/tnl/t_vtx_eval.c
2007-02-22 08:53:33 -07:00
Brian
6d4cf6be4e
updated info about arrays, predefined uniforms
2007-02-21 16:07:03 -07:00
Brian
5a2c1ad625
disable debug
2007-02-21 16:05:56 -07:00
Brian
917a5086b3
Use gl_LightSource[0].position intead of a light position uniform.
2007-02-21 15:57:55 -07:00
Brian
5d89b027ee
remove unneeded #includes
2007-02-21 15:42:50 -07:00
Brian
502c132738
fix copy&paste errors
2007-02-21 15:42:10 -07:00
Brian
f958aabdf3
more minor changes to STATE_ indexing
2007-02-21 15:23:11 -07:00
Brian
78399d23dc
remove dead code
2007-02-21 15:22:17 -07:00
Brian
f941892829
Reimplement the _slang_alloc_statevar() function.
...
After several tries at making a table-based system for examining pre-defined
uniforms to find statevar indexes, give up and do it the simple way (lots of
strcmp() calls). Not terribly elegant, but perfectly functional.
2007-02-21 15:21:58 -07:00
Brian
6531952b3c
adjustments to STATE_ token layout/format so token[1] is always the array index
2007-02-21 11:08:21 -07:00
Brian
c3301d038d
checkpoint overhaul of pre-defined uniform code
2007-02-21 09:15:39 -07:00
Brian
aa7ddbd0ff
clean-up, move IR_ELEMENT code
2007-02-20 17:00:16 -07:00
Brian
760c114b24
alloc IR_FIELD's Storage in codegen, like IR_ELEMENT
2007-02-20 16:56:49 -07:00
Brian
10f42ddb9e
work on struct/array handling
2007-02-20 15:22:38 -07:00
Brian
361b60678e
forgot to return length in parse_array_len()
2007-02-20 15:20:46 -07:00
Brian
243c2dd746
implement support for pre-defined uniform structs (state vars)
2007-02-20 14:03:43 -07:00
Brian
48d65aabbc
added slang_builtin.c
2007-02-20 14:03:10 -07:00
Brian
bd894c4705
added SWIZZLE_XXXX, SWIZZLE_YYYY, etc
2007-02-20 10:40:08 -07:00
Brian
174c555414
remove accidental check-in
2007-02-20 08:05:29 -07:00
Brian
3d001b81c2
Merge branch 'glsl-compiler-1' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into glsl-compiler-1
2007-02-20 08:04:40 -07:00
Brian
9449a4d894
s/PROG_PRINT_ARB/PROG_PRINT_DEBUG/
2007-02-17 09:41:59 -07:00
Brian
61d31ae10d
info about stand-alone compiler
2007-02-17 09:41:19 -07:00
Brian
cc153541a2
stand-alone GLSL compiler
2007-02-17 09:15:39 -07:00
Brian
501ee87180
Lots of changes to prog_print.c code.
...
Mainly, allow printing programs in either ARB, NV or "debug" formats.
2007-02-17 09:15:00 -07:00
Brian
00647c39de
remove dead code
2007-02-16 09:59:27 -07:00
Brian
c177191804
s/_slang_link2/_slang_link/
2007-02-16 09:56:19 -07:00
Brian
1c1a0a23d3
change all enum tokens to uppercase
2007-02-16 09:31:35 -07:00
Brian
d15059b128
abort upon errors (temporary)
2007-02-16 09:06:09 -07:00
Brian
d30806b0c5
added a comment
2007-02-16 09:05:11 -07:00
Brian
9ea2315d2d
Allow int->float argument conversion in _slang_locate_function().
2007-02-16 09:04:53 -07:00
Brian
d003877c66
implement IR_I_TO_F
2007-02-16 08:58:42 -07:00
Brian
ed490e4643
remove dead code
2007-02-13 09:23:00 -07:00
Brian
5620392d67
add prog_debug.c
2007-02-09 15:40:15 -07:00
Brian
942ee02590
move GL_MESA_program_debug funcs to prog_debug.c
2007-02-09 15:40:00 -07:00
Brian
383ecc0374
Move experimental GL_MESA_program_debug functions into new file.
2007-02-09 15:39:32 -07:00
Brian
b3893baf80
comments, etc
2007-02-09 14:19:12 -07:00
Brian
3d479b9638
re-enable free'ing of IR trees
2007-02-09 14:18:41 -07:00
Brian
cf490a7f81
always init param vars to silence valgrind warnings
2007-02-09 12:04:52 -07:00
Brian
5e6908944b
do full swizzled matching in _mesa_lookup_parameter_constant()
2007-02-08 20:39:42 -07:00
Brian
bd9615bbc5
Check for constant-valued while/do loop conditions.
...
Allows us to:
1. avoid generating constant-valued BRK test for while(1)..
2. discard entire loop for while(0).
3. detection infinite loops at compile-time.
2007-02-08 17:40:29 -07:00
Brian
c0a9f554be
optimize conditional breaks/continues
2007-02-08 17:11:18 -07:00
Brian
6230ae7faf
cont at top of loop, little clean-ups
2007-02-08 15:09:47 -07:00
Brian
a1c2e87c4b
remove some cruft
2007-02-08 15:08:16 -07:00
Brian
fbf0f400b7
fix broken BRA for return stmts
2007-02-08 14:10:54 -07:00
Brian
34af2b7194
consolidate BRA with BRK, CONT
2007-02-08 14:10:19 -07:00
Brian
c81aedeaec
change BranchTarget to GLint
2007-02-08 14:09:34 -07:00
Brian
b768c48547
Use conditional break in for/do/while loops.
2007-02-08 13:23:17 -07:00
Brian
97125fb370
Simplify code with eval_condition(). Implement conditional BRK.
2007-02-08 13:22:31 -07:00
Brian
2c75ef62ea
remove old loop break/cont stuff
2007-02-07 16:19:19 -07:00
Brian
b35b4566c2
high vs. low level if/then/else code emit
2007-02-07 16:11:00 -07:00
Brian
c5e6bf63e6
s/%f/%g/
2007-02-07 16:09:13 -07:00
Brian
a7c2c7d6b2
Remove old functions for generating BRA-based looping.
2007-02-07 15:14:20 -07:00
Julien Cristau
d39147a8a1
Fix FTBFS on amd64.
...
Set LIB_DIR and EXTRA_LIB_PATH in configs/debian-default to override
settings in configs/linux-x86-64. This fixes a FTBFS on amd64, thanks to
Marc 'HE' Brockschmidt for the report (closes : #410118 ).
2007-02-07 23:13:59 +01:00
Brian
4aa487e796
Use IR_LOOP to represent do-while and for-loops.
...
Also, start moving high vs. low-level instruction selection into slang_emit.c
2007-02-07 15:12:13 -07:00
Brian
1f99a7514e
BRK and CONT work the same
2007-02-06 22:34:09 -07:00
Brian
f22ed0986a
Implement CONT, improve BRK.
...
IR_LOOP's BranchNode ptr is the head of a linked list of CONT and BRK nodes.
After emitting loop, walk over the linked list, filling in the CONT/BRK
instruction's BranchTarget field (location of the ENDLOOP instruction, or
one past).
2007-02-06 22:31:19 -07:00
Brian
5f7d4668c4
replace IR_BEGIN_LOOP/IR_END_LOOP with IR_LOOP
2007-02-06 21:33:29 -07:00
Brian
7e73bc32f5
new_node[0123]() functions
2007-02-06 20:53:09 -07:00
Brian
2043364516
redo IR_IF node, removing IR_ELSE, IR_ENDIF
2007-02-06 20:45:43 -07:00
Brian
d434019633
additional comments for BranchTarget
2007-02-05 18:04:35 -07:00
Brian
2755c798f3
BRK instruction's BranchTarget field now used for efficiently breaking out of loops.
...
BRK's BranchTarget field actually points to the top of the loop, not the
bottom, since we don't know the later's location yet. In the interpreter,
basically do an indirect jump to update the PC.
2007-02-05 18:01:02 -07:00
Brian
8608079647
Use IR node's BranchNode field for IF/ELSE/ENDIF instructions.
...
This allows us to back-patch the IF/ELSE instruction's BranchTarget field
to point to the location of the ELSE/ENDIF instructions. No longer have to
search for ELSE/ENDIF in the interpreter. Also makes it trivial to translate
IF/ELSE instructions into conditional/unconditional BRA instructions.
2007-02-05 17:18:10 -07:00
Brian
d9731b26e7
minor formatting changes
2007-02-05 15:17:06 -07:00
Brian
5e73284cee
set UseHighLevelInstructions = false for now
2007-02-05 15:00:48 -07:00
Brian
cf92c72797
Initial implementation of high-level flow-control instructions.
...
IF/ELSE/ENDIF and BEGIN_LOOP/END_LOOP/BREAK instructions seem to work.
Disabled by default though until better tested.
Implemented IR_NOT, but needs optimization.
2007-02-05 15:00:07 -07:00
Brian
5db088d70f
indentation for program instructions (if/else, loops)
2007-02-05 14:58:15 -07:00
Brian
01001d80e2
Initial support of loop and subroutine instructions.
...
New high-level flow-control instructions, both at IR level and GPU instructions
for looping and subroutines.
2007-02-05 11:28:15 -07:00
Brian
dd34fe8679
Merge SWvertex texcoord and varying fields into attrib[] array field.
...
Fragment texcoords and varying code is now unified in the point/line/triangle
rasterization code. In the future, merge color, fog, etc. attribs.
2007-02-05 10:10:01 -07:00
Julien Cristau
7991f7e936
* Add myself to Uploaders.
2007-02-04 21:17:18 +01:00
Julien Cristau
10011efcd7
Add bug closer for #409638 .
2007-02-04 17:21:57 +01:00
Julien Cristau
0058815c8f
Re-add src/glut/mini/ which was deleted by mistake.
2007-02-04 15:21:46 +01:00
Julien Cristau
02048984b7
Delete directories not included in the mesa tarballs.
2007-02-04 15:15:43 +01:00
Julien Cristau
544601e9f4
Fix FTBFS on non-i386 archs.
...
Build architecture-independant debs in binary-indep, and use the debhelper -s
option for commands in binary-arch, because architectures other than i386
don't have to build libgl1-mesa-swx11-i686.
2007-02-04 14:05:23 +01:00
Brian
93b975a1d9
Add literal_size field to slang_operation.
...
Used to track the number of components in a float/int/bool literal.
Helps with some typechecking things.
Fixes problems with calls such as "distance(v2, vec2(1.0, 2.0))"
2007-02-03 17:24:24 -07:00
Brian
5ee684cba9
minor tweaks to distance() funcs
2007-02-03 17:21:33 -07:00
Brian
82f53f45d9
remove unused slang_operation fields
2007-02-03 16:25:44 -07:00
Brian
edf24e699e
shading language texture demo/test
2007-02-03 11:36:16 -07:00
Brian
00d63aafc6
added FLUSH_VERTICES() in _mesa_use_program()
2007-02-03 11:35:02 -07:00
Brian
8e0c6fc0be
added texdemo1
2007-02-03 11:33:13 -07:00
Brian
68fc4ff1d7
Add _NEW_PROGRAM flag to _MESA_NEW_NEED_EYE_COORDS.
...
This fixes a segfault in the texgen code that can occur after we've
disabled a vertex program.
2007-02-03 10:31:16 -07:00
Brian
fee9bbe475
Only glUniform1i() can be used to set sampler uniforms. Generate error otherwise.
2007-02-02 18:05:43 -07:00
Brian
a90e4c3ddf
add vec4_texcube to AsmInfo[]
2007-02-02 18:00:26 -07:00
Brian
1b3092e4bb
add _slang_multiply_swizzles()
2007-02-02 18:00:03 -07:00
Brian
bf823b6b77
clean-ups
2007-02-02 16:46:50 -07:00
Brian
670e900719
clean-ups
2007-02-02 16:45:07 -07:00
Brian
31d2a00192
clean-ups
2007-02-02 16:41:52 -07:00
Brian
b4f38a4d60
remove slang_builtin_vec4.gc
2007-02-02 16:38:04 -07:00
Brian
4bbef7a644
remove slang_builtin_vec4.gc
2007-02-02 16:38:00 -07:00
Brian
d9dbb3e154
remove slang_export.[ch]
2007-02-02 16:14:55 -07:00
Brian
e1b47b68ec
reformat, clean-up comments
2007-02-02 16:12:20 -07:00
Brian
1f9def3163
move _slang_locate_function()
2007-02-02 16:10:02 -07:00
Brian
9cfee527f6
remove multibyte chars
2007-02-02 16:08:45 -07:00
Brian
3f71282850
remove unused field
2007-02-02 15:33:16 -07:00
Brian
72c3672857
remove slang_asm_string()
2007-02-02 15:32:32 -07:00
Brian
0d1cd6d41c
s/SLANG_ASSEMBLE_TYPEINFO_H/SLANG_TYPEINFO_H/
2007-02-02 15:31:21 -07:00
Brian
1bc71e32ea
s/slang_assembly_typeinfo/slang_typeinfo/
2007-02-02 15:30:50 -07:00
Brian
fe45343df9
s/slang_assembly_name_space/slang_name_space/
2007-02-02 15:29:48 -07:00
Brian
884fdfeb22
remove slang_library_texsample.[ch]
2007-02-02 15:23:38 -07:00
Brian
4a2ef4fd88
remove slang_library_texsample.[ch]
2007-02-02 15:23:33 -07:00
Brian
6c52dd3852
rename slang_link2.c slang_link.c
2007-02-02 15:22:05 -07:00
Brian
5c1763e7b5
rename slang_link2.c slang_link.c
2007-02-02 15:22:02 -07:00
Brian
f65091c947
rename slang_assemble_typeinfo.[ch] to slang_typeinfo.[ch]
2007-02-02 15:19:58 -07:00
Brian
7ace638da2
rename slang_assemble_typeinfo.[ch] to slang_typeinfo.[ch]
2007-02-02 15:19:48 -07:00
Brian
4f22bdf3e5
remove more slang assembly-related code
2007-02-02 15:17:46 -07:00
Brian
640afdf4f2
remove more slang assembly-related files, codee
2007-02-02 15:16:51 -07:00
Brian
452217e29a
removed obsolete shader assembly files
2007-02-02 15:10:34 -07:00
Brian
11e92390f6
remove more assembly-related code
2007-02-02 15:05:46 -07:00
Brian
b94c14114f
remove slang_assemble*.c files
2007-02-02 14:51:34 -07:00
Brian
8d39610037
move some functions, disable some code in preparation for removing assembly code
2007-02-02 14:51:09 -07:00
Brian
fa1fe5f6f3
fix emit_tex() breakage
2007-02-02 14:47:03 -07:00
Brian
1b24e2d5a7
remove slang_export.c and related code
2007-02-02 14:24:24 -07:00
Brian
5072fd3a64
Remove old slang linker code.
2007-02-02 14:05:55 -07:00
Brian
8b60787e85
remove slang_link.c and slang_analyse.c
2007-02-02 14:05:25 -07:00
Brian
d79fd74871
remove old linker stuff
2007-02-02 14:04:58 -07:00
Brian
a4f4ca7767
added newline at end
2007-02-02 13:54:24 -07:00
Brian
ccd3e7dcef
Remove obsolete files.
2007-02-02 13:53:28 -07:00
Brian
650d46a107
remove slang_execute.c, slang_execute_x86.c
2007-02-02 13:49:39 -07:00
Brian
d265bdf81a
Remove all dependencies on the old slang interpreter/executor.
2007-02-02 13:49:07 -07:00
Brian
aa6866d63c
reindent
2007-02-02 12:08:26 -07:00
Brian
b12b13f832
_slang_evaluate_int() no longer used
2007-02-02 12:07:57 -07:00
Brian
06daf74a71
use _slang_simplify() to evaluate array sizes
2007-02-02 12:02:53 -07:00
Brian
70570d4199
Move guts of slang_lookup_constant() into a new function in slang_simplify.c
2007-02-02 12:01:29 -07:00
Brian
5c21747783
replace abort() with _mesa_problem()
2007-02-02 11:42:04 -07:00
Brian
2f5b3c9607
fix maxInst argument
2007-02-02 11:37:58 -07:00
Brian
e53ec3a862
try to simplify variable initializers
2007-02-02 11:32:59 -07:00
Brian
6147ccba63
unroll inner loop of interpolate_varying()
2007-02-02 11:23:16 -07:00
Brian
531348e814
simplify derivative-related code
2007-02-02 11:20:08 -07:00
Brian
e4f976b8b9
simplify interpolate_texcoords()
2007-02-02 11:19:43 -07:00
Brian
9ab512ad8c
Replace color, z, w, texture interpolants with new generic attrib interpolants.
2007-02-02 11:01:01 -07:00
Brian
462d8f5faf
New span attrStart/attrStepX/attrStepY fields to replace fog, specular, etc. fields. More to come.
2007-02-02 09:46:43 -07:00
Brian
4e7fd7ad96
get rid of unused span->start field
2007-02-02 09:09:13 -07:00
Wang Zhenyu
51bfb8fc8c
Add Intel 965GM chipset info
2007-02-02 10:04:48 +08:00
Wang Zhenyu
6b6760d6bc
Revert origin crestline pci id patch
2007-02-02 10:01:42 +08:00
Brian
9742547245
Fix logic in _slang_simplify(): vec2() constructor case wasn't getting used.
2007-02-01 18:11:19 -07:00
Brian
abeca8d17d
comments
2007-02-01 10:08:07 -07:00
Brian
496aa47042
remove slang_label.c until it's ready
2007-02-01 09:52:26 -07:00
Brian
f3e507ef9f
New SWspanarrays attribs[] array.
...
Replace texcoord[], varying[], etc. arrays with single attribs[] array, indexed
by FRAG_ATTRIB_* values.
Eliminates need to copy data into fragment program machine input registers.
Will lead to future clean-ups.
2007-02-01 09:51:48 -07:00
Brian
81ef03be65
silence uninitialized var warning
2007-02-01 09:25:55 -07:00
Brian
8fa6f7363e
silence uninitialized var warning
2007-02-01 09:24:41 -07:00
Brian
3866558c98
move span-related types/tokens into s_span.h
2007-02-01 08:24:02 -07:00
Brian
f673b24017
additional assertions, bump up MAX_EXEC
2007-02-01 08:18:03 -07:00
Julien Cristau
2634f06c20
Merge branch 'upstream-experimental' into debian-experimental
...
Conflicts:
progs/util/README
progs/util/glstate.c
progs/util/glstate.h
progs/util/sampleMakefile
src/glu/sgi/libnurbs/interface/bezierEval.h
src/glu/sgi/libnurbs/interface/bezierPatch.cc
src/glu/sgi/libnurbs/interface/bezierPatch.h
src/glu/sgi/libnurbs/interface/bezierPatchMesh.cc
src/glu/sgi/libnurbs/interface/bezierPatchMesh.h
src/glu/sgi/libnurbs/interface/glcurveval.cc
src/glu/sgi/libnurbs/interface/glimports.h
src/glu/sgi/libnurbs/interface/glinterface.cc
src/glu/sgi/libnurbs/interface/glrenderer.h
src/glu/sgi/libnurbs/interface/incurveeval.cc
src/glu/sgi/libnurbs/interface/insurfeval.cc
src/glu/sgi/libnurbs/interface/mystdio.h
src/glu/sgi/libnurbs/interface/mystdlib.h
src/glu/sgi/libnurbs/internals/arc.h
src/glu/sgi/libnurbs/internals/arcsorter.cc
src/glu/sgi/libnurbs/internals/arcsorter.h
src/glu/sgi/libnurbs/internals/arctess.h
src/glu/sgi/libnurbs/internals/backend.cc
src/glu/sgi/libnurbs/internals/backend.h
src/glu/sgi/libnurbs/internals/basiccrveval.h
src/glu/sgi/libnurbs/internals/basicsurfeval.h
src/glu/sgi/libnurbs/internals/bezierarc.h
src/glu/sgi/libnurbs/internals/bin.cc
src/glu/sgi/libnurbs/internals/bin.h
src/glu/sgi/libnurbs/internals/bufpool.cc
src/glu/sgi/libnurbs/internals/bufpool.h
src/glu/sgi/libnurbs/internals/cachingeval.cc
src/glu/sgi/libnurbs/internals/cachingeval.h
src/glu/sgi/libnurbs/internals/ccw.cc
src/glu/sgi/libnurbs/internals/coveandtiler.h
src/glu/sgi/libnurbs/internals/curve.cc
src/glu/sgi/libnurbs/internals/curve.h
src/glu/sgi/libnurbs/internals/curvelist.cc
src/glu/sgi/libnurbs/internals/curvelist.h
src/glu/sgi/libnurbs/internals/curvesub.cc
src/glu/sgi/libnurbs/internals/dataTransform.cc
src/glu/sgi/libnurbs/internals/dataTransform.h
src/glu/sgi/libnurbs/internals/defines.h
src/glu/sgi/libnurbs/internals/displaylist.cc
src/glu/sgi/libnurbs/internals/displaylist.h
src/glu/sgi/libnurbs/internals/displaymode.h
src/glu/sgi/libnurbs/internals/flist.cc
src/glu/sgi/libnurbs/internals/flist.h
src/glu/sgi/libnurbs/internals/flistsorter.cc
src/glu/sgi/libnurbs/internals/flistsorter.h
src/glu/sgi/libnurbs/internals/gridline.h
src/glu/sgi/libnurbs/internals/gridtrimvertex.h
src/glu/sgi/libnurbs/internals/gridvertex.h
src/glu/sgi/libnurbs/internals/hull.cc
src/glu/sgi/libnurbs/internals/hull.h
src/glu/sgi/libnurbs/internals/intersect.cc
src/glu/sgi/libnurbs/internals/jarcloc.h
src/glu/sgi/libnurbs/internals/knotvector.h
src/glu/sgi/libnurbs/internals/mapdesc.cc
src/glu/sgi/libnurbs/internals/mapdesc.h
src/glu/sgi/libnurbs/internals/mapdescv.cc
src/glu/sgi/libnurbs/internals/maplist.cc
src/glu/sgi/libnurbs/internals/maplist.h
src/glu/sgi/libnurbs/internals/mesher.cc
src/glu/sgi/libnurbs/internals/mesher.h
src/glu/sgi/libnurbs/internals/monoTriangulationBackend.cc
src/glu/sgi/libnurbs/internals/monotonizer.cc
src/glu/sgi/libnurbs/internals/monotonizer.h
src/glu/sgi/libnurbs/internals/myassert.h
src/glu/sgi/libnurbs/internals/mycode.cc
src/glu/sgi/libnurbs/internals/mystring.h
src/glu/sgi/libnurbs/internals/nurbsconsts.h
src/glu/sgi/libnurbs/internals/nurbstess.cc
src/glu/sgi/libnurbs/internals/patch.cc
src/glu/sgi/libnurbs/internals/patch.h
src/glu/sgi/libnurbs/internals/patchlist.cc
src/glu/sgi/libnurbs/internals/patchlist.h
src/glu/sgi/libnurbs/internals/pwlarc.h
src/glu/sgi/libnurbs/internals/quilt.cc
src/glu/sgi/libnurbs/internals/quilt.h
src/glu/sgi/libnurbs/internals/reader.cc
src/glu/sgi/libnurbs/internals/reader.h
src/glu/sgi/libnurbs/internals/renderhints.cc
src/glu/sgi/libnurbs/internals/renderhints.h
src/glu/sgi/libnurbs/internals/simplemath.h
src/glu/sgi/libnurbs/internals/slicer.cc
src/glu/sgi/libnurbs/internals/slicer.h
src/glu/sgi/libnurbs/internals/sorter.cc
src/glu/sgi/libnurbs/internals/sorter.h
src/glu/sgi/libnurbs/internals/splitarcs.cc
src/glu/sgi/libnurbs/internals/subdivider.h
src/glu/sgi/libnurbs/internals/tobezier.cc
src/glu/sgi/libnurbs/internals/trimline.cc
src/glu/sgi/libnurbs/internals/trimline.h
src/glu/sgi/libnurbs/internals/trimregion.cc
src/glu/sgi/libnurbs/internals/trimregion.h
src/glu/sgi/libnurbs/internals/trimvertex.h
src/glu/sgi/libnurbs/internals/trimvertpool.cc
src/glu/sgi/libnurbs/internals/trimvertpool.h
src/glu/sgi/libnurbs/internals/types.h
src/glu/sgi/libnurbs/internals/uarray.cc
src/glu/sgi/libnurbs/internals/uarray.h
src/glu/sgi/libnurbs/internals/varray.cc
src/glu/sgi/libnurbs/internals/varray.h
src/glu/sgi/libnurbs/nurbtess/definitions.h
src/glu/sgi/libnurbs/nurbtess/directedLine.h
src/glu/sgi/libnurbs/nurbtess/glimports.h
src/glu/sgi/libnurbs/nurbtess/gridWrap.cc
src/glu/sgi/libnurbs/nurbtess/gridWrap.h
src/glu/sgi/libnurbs/nurbtess/monoChain.cc
src/glu/sgi/libnurbs/nurbtess/monoChain.h
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.cc
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h
src/glu/sgi/libnurbs/nurbtess/mystdio.h
src/glu/sgi/libnurbs/nurbtess/mystdlib.h
src/glu/sgi/libnurbs/nurbtess/partitionX.cc
src/glu/sgi/libnurbs/nurbtess/partitionX.h
src/glu/sgi/libnurbs/nurbtess/partitionY.cc
src/glu/sgi/libnurbs/nurbtess/partitionY.h
src/glu/sgi/libnurbs/nurbtess/polyDBG.h
src/glu/sgi/libnurbs/nurbtess/polyUtil.cc
src/glu/sgi/libnurbs/nurbtess/polyUtil.h
src/glu/sgi/libnurbs/nurbtess/primitiveStream.cc
src/glu/sgi/libnurbs/nurbtess/primitiveStream.h
src/glu/sgi/libnurbs/nurbtess/quicksort.cc
src/glu/sgi/libnurbs/nurbtess/quicksort.h
src/glu/sgi/libnurbs/nurbtess/rectBlock.cc
src/glu/sgi/libnurbs/nurbtess/rectBlock.h
src/glu/sgi/libnurbs/nurbtess/sampleComp.cc
src/glu/sgi/libnurbs/nurbtess/sampleComp.h
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.cc
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.cc
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.cc
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.cc
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h
src/glu/sgi/libnurbs/nurbtess/sampledLine.cc
src/glu/sgi/libnurbs/nurbtess/sampledLine.h
src/glu/sgi/libnurbs/nurbtess/searchTree.cc
src/glu/sgi/libnurbs/nurbtess/searchTree.h
src/glu/sgi/libnurbs/nurbtess/zlassert.h
src/glu/sgi/libtess/README
src/glu/sgi/libtess/alg-outline
src/glu/sgi/libtess/dict-list.h
src/glu/sgi/libtess/dict.c
src/glu/sgi/libtess/dict.h
src/glu/sgi/libtess/geom.c
src/glu/sgi/libtess/memalloc.c
src/glu/sgi/libtess/memalloc.h
src/glu/sgi/libtess/mesh.c
src/glu/sgi/libtess/mesh.h
src/glu/sgi/libtess/normal.h
src/glu/sgi/libtess/priorityq-heap.c
src/glu/sgi/libtess/priorityq-heap.h
src/glu/sgi/libtess/priorityq-sort.h
src/glu/sgi/libtess/priorityq.c
src/glu/sgi/libtess/priorityq.h
src/glu/sgi/libtess/render.c
src/glu/sgi/libtess/render.h
src/glu/sgi/libtess/sweep.h
src/glu/sgi/libtess/tess.h
src/glu/sgi/libtess/tessmono.c
src/glu/sgi/libtess/tessmono.h
src/glu/sgi/libutil/error.c
src/glu/sgi/libutil/glue.c
src/glu/sgi/libutil/gluint.h
src/glu/sgi/libutil/project.c
src/glu/sgi/libutil/registry.c
2007-02-01 11:50:36 +01:00
Brian
d9d33b6fc8
disable all x86 code, broken and will eventually be removed
2007-01-31 17:01:52 -07:00
Brian
b63c100677
Overhaul handling of writemasks/swizzling. This fixes two problem cases:
...
vec2 v; v.x = v.y = 1.0; // chained assignment
vec4 v; v.zx = vec2(a,b); // swizzled writemask
2007-01-31 16:34:54 -07:00
Brian
309d5b6650
New asm instruction and IR_CLAMP node type to allow clamping to [0,1] with instruction saturate-write option. Not finished yet.
2007-01-31 08:55:10 -07:00
Brian
9d5853813f
allow fragment-only and vertex-only programs
2007-01-31 08:47:12 -07:00
Brian
7162398778
fix _mesa_get_uniform_location() so it uses the given program handle
2007-01-30 16:55:03 -07:00
Brian
fc5a7ea5de
noise() works now
2007-01-28 19:02:03 -07:00
Brian
7aece10039
noise functions
2007-01-28 19:01:35 -07:00
Brian
f94e4f216f
simple noise test
2007-01-28 19:01:04 -07:00
Brian
a06f929362
combine emit_unop(), emit_binop(), emit_triop() into emit_arith()
2007-01-28 16:26:09 -07:00
Brian
62e7c033c0
implement mix() with LRP instruction
2007-01-28 16:11:11 -07:00
Brian
4de6fac4da
Lots of vartable clean-ups, fixes. Report an error message when we run out
...
of registers, rather than crash.
2007-01-28 12:49:47 -07:00
Brian
602dc1a638
minor clean-ups
2007-01-28 12:13:27 -07:00
Brian
bbec2fdb3a
minor updates
2007-01-28 12:11:10 -07:00
Julien Cristau
7549426a16
Sync Section and Priority for all packages with the override.
2007-01-28 18:18:38 +01:00
Brian
513325fa32
Clean-up of var/temp allocation function parameters.
2007-01-27 20:29:33 -07:00
Brian
d6772f157a
Improved register allocation: allow four 'float' vars or temporaries to share a single register. Clean-up needed.
2007-01-27 20:06:41 -07:00
Brian
ea8b68e0f7
asst fixes, tranpose span->varying array indexes
2007-01-25 10:54:52 -07:00
Brian
ff13f0ea4d
fixes, clean-ups, transpose span->varying array indexing
2007-01-25 10:52:48 -07:00
Brian
5ef553da9a
new comments, ideas
2007-01-25 10:51:53 -07:00
Brian
e713c21bd0
remove some parenthesis
2007-01-24 14:15:01 -07:00
Brian
ff917003f6
use FRAG_BIT_TEX()
2007-01-24 14:14:14 -07:00
Brian
ccea3ff8a9
fix varying interpolation
2007-01-24 14:13:36 -07:00
Brian
0552abce0e
only setup varying vars that will be used
2007-01-24 14:13:02 -07:00
Brian
07373512c7
added FRAG_BIT_TEX() and FRAG_BIT_VAR() macros
2007-01-24 14:12:08 -07:00
Brian
c920d201c2
updated comment
2007-01-23 17:41:25 -07:00
Brian
6d4e561e39
indicate which opcodes are used by Mesa GLSL, updated comments
2007-01-23 17:39:25 -07:00
Brian
223d7cb3c7
fix g++ warnings/errors
2007-01-23 16:37:51 -07:00
Brian
bc5d480e2c
added shading.html link
2007-01-21 10:37:25 -07:00
Brian
9595d1935c
Added a page with shading language status, tips, etc.
2007-01-20 13:40:57 -07:00
Brian
059e901446
Add a simple mechanism for annotating instructions for easier debugging.
2007-01-20 10:47:10 -07:00
Brian
f116fcc328
optimization: emit MAD instructions when possible
2007-01-20 09:46:02 -07:00
Brian
1f208c3546
remove unused swizzle parameter to -storage_to_src_reg()
2007-01-20 09:29:04 -07:00
Brian
5ae49cf3ed
Initial implementation of OPCODE_IF/ELSE/ENDIF instructions.
2007-01-20 09:27:40 -07:00
Brian
a3e938b8da
Reimplement && and || to do short-circuit evaluation.
...
Improved shader error handling.
2007-01-20 09:22:13 -07:00
Brian
9f07ed00e4
rewrite more __postIncr functions
2007-01-20 07:56:00 -07:00
Brian
3cec66512d
Implement do/while loops. Replace IR_CJUMP with IR_CJUMP0 and IR_CJUMP1 so
...
we can either jump on zero, or non-zero predicate.
2007-01-19 13:13:15 -07:00
Brian
eff9690351
Rewrite normalize(vec3/vec4) to use one less register.
2007-01-19 12:19:38 -07:00
Brian
dceae2829e
report error message when something fails
2007-01-19 12:02:31 -07:00
Brian
203946e1f9
print error msg when there's a problem
2007-01-19 12:02:06 -07:00
Brian
74b27674a8
remove stray tab
2007-01-19 10:31:52 -07:00
Brian
a0092c51b1
Implement fragment discard/kill.
2007-01-19 10:15:34 -07:00
Brian
8374ccb66f
change while-loop to create new scope for loop body, per spec
2007-01-19 10:02:58 -07:00
Brian
16183e6430
Implement constant sharing so that 4 float constants can share a single
...
float[4] register slot.
2007-01-18 17:29:23 -07:00
Brian
ce6640001d
_mesa_add_unnamed_constant() now tries to re-use constants already in
...
the parameter list.
2007-01-18 17:23:48 -07:00
Brian
d70771752f
Reimplement code for swizzling so that expressions like (p+q).x for vectors p and q works correctly.
2007-01-18 15:35:44 -07:00
Brian
d885ff470a
rewrite a bunch of assignment operators (like +=)
2007-01-18 15:33:13 -07:00
Brian
e4e66476a9
remove debug code
2007-01-18 15:23:45 -07:00
Brian
f43eac3ed8
remove swizzle param from new_var()
2007-01-18 09:22:44 -07:00
Zou Nan hai
c171166987
1. Fix bug #155
...
2. I notice multiple ARB_occlusion_query should be able to overlap according to spec.
3. Declaring extern variables in a .c file is evil, fix it.
2007-01-18 14:41:38 +08:00
Brian
8a2368edce
rewrite additional matrix-related functions to reduce register needs
2007-01-17 18:37:20 -07:00
Brian
89a3bafe04
rewrite mat4 * mat4 operator to use fewer temps
2007-01-17 18:30:53 -07:00
Brian
272622a2e0
do bounds check in _slang_push_var_table(), added comment
2007-01-17 18:21:00 -07:00
Brian
2585b74e19
rewrite matrix constructors
2007-01-17 18:06:40 -07:00
Brian
4864aaeb02
handle var size > 4 in _slang_pop_var_table()
2007-01-17 18:02:44 -07:00
Brian
f4e345c1a8
minor fprintf() change
2007-01-17 16:30:11 -07:00
Brian
eb0c478b17
Rewrite a bunch of constructors. It's now important that the first
...
constructor for any given type be the one that takes the most parameters
as this is the constructor that'll be used when there's no perfect match
to the caller's arguments.
See the _slang_adapt_call() function for details.
2007-01-17 16:29:51 -07:00
Brian
3a3bb953b6
_slang_gen_function_call_name() now tries to adapt function calls (expand
...
vectors, insert casts) when a perfect match isn't found.
2007-01-17 16:14:03 -07:00
Brian
eabb7e66bd
New _slang_adapt_call() function.
...
This is used to modify function calls (when possible) to make the arguments
map to the function parameters. This includes "unrolling" vector types
and doing casts.
Example:
vec2 v2 = vec2(1.2, 3.4)
ivec3 iv = ivec3(false, v2);
Is converted into:
ivec3 iv = ivec3(int(false), int(v2[0]), int(v2[1]))
2007-01-17 16:11:50 -07:00
Brian
397b807ad5
code clean-up, re-org. Added IR_F_TO_I support.
2007-01-17 16:05:03 -07:00
Brian
bb53124fca
added IR_F_TO_I, update comments
2007-01-17 15:58:24 -07:00
Brian
0bad236cfb
Added OPCODE_INT to convert 4 floats to 4 ints.
2007-01-17 15:54:14 -07:00
Brian
46a9241248
add texturing, other options
2007-01-17 10:25:44 -07:00
Brian
811f54fa75
Fix/clean-up a number of things related to variable/temporary allocation.
2007-01-17 09:54:31 -07:00
Brian
552a65e454
Implement codegen for the selection operator ( b ? x : y )
2007-01-16 17:38:39 -07:00
Brian
3596903068
fix typo
2007-01-16 16:53:41 -07:00
Brian
271d504ed7
draw a box, press 'a' to animate
2007-01-16 15:27:11 -07:00
Brian
9d0ae967d4
added some VerteAttrib funcs
2007-01-16 14:57:12 -07:00
Brian
f44ba11815
Added toyball and bumpmap tests using shaders from the OpenGL Shading Language (orange) book.
2007-01-16 14:55:43 -07:00
Brian
9b5dc1358a
when automatically binding vertex attributes, start with attrib 1, not 0
2007-01-16 14:52:22 -07:00
Brian
4f027a33b9
remove dead code
2007-01-16 14:19:37 -07:00
Brian
0f91310bf3
comments
2007-01-16 14:17:57 -07:00
Brian
d90c655b05
implement logical or, xor, not
2007-01-16 14:15:05 -07:00
Brian
99e788fe56
some additional vector constructors
2007-01-16 14:10:30 -07:00
Brian
156e583a35
fix _slang_gen_subscript() for the case when a simple vector is accessed as an array: convert index to a swizzle/writemask
2007-01-16 10:45:34 -07:00
Brian
0d55346156
Use arrow keys to pan and z/Z to zoom in/out to explore the fractal.
2007-01-15 17:48:19 -07:00
Brian
2ccd264695
Added new directory of GL shading language demos: glsl
2007-01-15 17:27:24 -07:00
Brian
f6507157e2
Reimplement the post-increment/decrement functions.
...
Instead of defining functions with an extra dummy parameter to distinguish
from the pre-incr/decr functions, just use new function names: __postIncr
and __postDecr.
2007-01-15 16:54:38 -07:00
Brian
c410994653
Implement the ++var and --var operators, improve some constructors.
2007-01-15 16:38:12 -07:00
Brian
0a097675f1
added vec3 constructor code
2007-01-15 16:34:33 -07:00
Brian
82258b7af3
added IR_ELEMENT
2007-01-15 16:33:54 -07:00
Brian
04ac15fd80
checkpoint: ++, -- and && operators
2007-01-15 15:51:49 -07:00
Brian
83d3ff590d
Redo the way array indexes are handled. Resolve storage location at code emit time, not codegen time.
2007-01-15 13:58:45 -07:00
Brian
c807169888
remove old globals
2007-01-15 11:10:11 -07:00
Brian
a5bbe206a8
comments
2007-01-15 11:08:10 -07:00
Brian
8de3dc1701
Move some global vars into slang_assemble_ctx.
2007-01-15 11:07:46 -07:00
Brian
4f5901b265
fix the subassig, mulassign and divassign cases
2007-01-15 10:35:59 -07:00
Brian
629fd78f79
clean-up slang_allocate_storage()
2007-01-15 10:35:03 -07:00
Brian
64414ea0e9
added glUniform1fv_func, glUniform2fv_func
2007-01-13 14:51:02 -07:00
Brian
691ed5e54b
Rework code related to temp register allocation, both for user variables
...
and expression temporarires. Much better register utilization now.
Lots of other fixes.
The OpenGL GLSL "orange book" brick shader demo works now.
2007-01-13 14:49:52 -07:00
Brian
5daa99d2a4
slang_variable_scope now stores array of pointers to slang_variables.
2007-01-13 14:47:48 -07:00
Brian
97c7937c65
added another vec4 constructor, updated += operator
2007-01-13 14:46:12 -07:00
Brian
95a441112e
Fix a problem with inlined "return" statements. Make some attempt to free temporaries.
2007-01-11 11:22:26 -07:00
Brian
063f3f7fc4
disable some code that'll eventually go away
2007-01-11 11:21:38 -07:00
Brian
749ed66549
new vec3 constructor, replace float_add w/ vec4_add
2007-01-11 11:20:23 -07:00
Brian
c8e148e38c
tweak output
2007-01-11 11:19:11 -07:00
Thierry Reding
6dcb9a3434
Give credit where credit is due.
2007-01-11 15:09:23 +01:00
Thierry Reding
e5a31c00ec
libosmesa6{,-dev} replace libgl1-mesa-swx11{,-dev} and mesa-common-dev.
...
libosmesa6 and libosmesa6-dev are now the only packages to contain OSMesa
libraries and header files so they can be installed independent of which libGL
is installed. They statically link in the software rasterization code.
2007-01-11 15:06:42 +01:00
Thierry Reding
00295242fd
mesa-common-dev needs to replace libgl1-mesa-swx11-dev and libgl1-mesa-dev.
...
The GLX headers were previously shipped in both packages and have been moved
to mesa-common-dev.
2007-01-11 14:56:48 +01:00
Thierry Reding
21b6ed7c29
Build the DRI modules with the default optimization flags.
2007-01-11 14:40:10 +01:00
Brian
c0c31024a3
checkpoint: codegen for global vars/constants now working
2007-01-10 13:51:48 -07:00
Brian
88e2dbfd10
checkpoint: codegen for global vars w/ initializers
2007-01-10 13:33:38 -07:00
Brian
8a48f35574
assorted code clean-ups
2007-01-10 12:18:50 -07:00
Brian
ee11842bfc
fix size bug in _mesa_add_attribute()
2007-01-10 12:18:33 -07:00
Brian
29bff4e12d
simplify _mesa_add_state_reference()
2007-01-10 08:37:59 -07:00
Brian
88f7212312
Update _save_VertexAttrib() functions for non-aliasing behaviour.
2007-01-10 08:15:35 -07:00
Thierry Reding
01894cbf10
Revert the previous changes to the libgl1-mesa-{glx,swx11} shlibs.
2007-01-10 15:23:29 +01:00
Thierry Reding
28cad2b9d9
Bump libgl1-mesa-glx, libgl1-mesa-swx11 and libosmesa6 shlibs files.
2007-01-10 13:55:19 +01:00
Brian
01a91eb657
get rid of STATE_USER_ATTRIB/STATE_AUTO_ATTRIB
2007-01-09 19:26:22 -07:00
Brian
b7978af693
clean up a bunch of program parameter stuff
2007-01-09 19:17:17 -07:00
Brian
cc858bfa84
added a few more 2.0 functions
2007-01-09 17:49:53 -07:00
Brian
3209c3ed0d
Implement vertex attribute binding.
...
Users can set explicit binding with glBindAttribLocation(), otherwise the
linker will allocate generic attribute slots.
2007-01-09 17:49:24 -07:00
Brian
5e75db12d7
more debug code (disabled)
2007-01-09 17:47:13 -07:00
Brian
e8673143ea
add code for generic attributes 16..31
2007-01-09 17:46:45 -07:00
Brian
048412473b
added _mesa_count_texture_indirections(), _mesa_count_texture_instructions()
2007-01-09 11:00:47 -07:00
Brian
21f99792a9
Moved NumTexInstructions, NumTexIndirections, etc. into gl_program since
...
they can now apply to vertex programs.
2007-01-09 11:00:21 -07:00
Brian
ae80d13f6d
remove old comment
2007-01-09 10:10:59 -07:00
Brian
829da4c345
Vertex program texture samplers done, but untested (need to add TEX/TXB to
...
the T&L vertex program interpreter).
2007-01-09 09:31:30 -07:00
Brian
855ebb26d1
Implement shadow samplers and dFdx(), dFdy() code generation.
2007-01-09 09:14:32 -07:00
Brian
20aec24ac7
implement biased texture functions
2007-01-08 16:56:52 -07:00
Brian
41a4e828d9
check if _Current == NULL for TXB
2007-01-08 16:49:43 -07:00
Brian
8cad795a80
added 1D texture functions
2007-01-08 16:10:55 -07:00
Brian
9a78ef980d
Remove if (tObj) conditional so that texture units without a texture image
...
return black (0,0,0,1) when sampled.
2007-01-08 16:10:34 -07:00
Brian
85e0634b54
update texture1D functions
2007-01-08 16:02:40 -07:00
Brian
42153d7858
Implement projective texture sampling, 3D textures. Disable some debug output.
2007-01-08 15:58:14 -07:00
Brian
483ca39bca
Move some code around, add some comments.
2007-01-08 14:11:54 -07:00
Brian
d3fe7398e3
Move storage allocation functions from slang_emit.c to slang_codegen.c
2007-01-08 14:06:00 -07:00
Brian
27cc9068ce
checkpoint: more work on variable/storage allocation
2007-01-08 13:36:53 -07:00
Brian
cf4d4342c9
Checkpoint: re-org of (global) variable allocation code. More to come...
2007-01-08 13:09:47 -07:00
Thierry Reding
71d7b7dbe7
Drop noop line.
2007-01-08 13:36:25 +01:00
Thierry Reding
4563723db1
Make sure all files in the mesa-swx11-source package have permissions 0644.
2007-01-08 13:36:16 +01:00
Thierry Reding
0bce6a1899
Compile with -O2 optimization instead of -O3 which might lead to problems.
2007-01-08 11:43:25 +01:00
Thierry Reding
e71d6dbd9c
Make debugging symbol packages depend on the corresponding binary package and
...
put them into the libdevel section.
2007-01-08 11:41:02 +01:00
Thierry Reding
132ecd19f3
Do not build any linux*-static configuration with -fPIC.
2007-01-08 10:07:08 +01:00
Thierry Reding
a404143f4c
Add patches 04_cleanup-osmesa-configs and 05_static-nonpic.
...
04_cleanup-osmesa-configs makes the OSMesa configurations behave as expected.
That is respect the OPT_FLAGS, PIC_FLAGS, ARCH_FLAGS and DEFINES variables.
The patch also makes the files more consistent by inheriting from more general
configurations.
05_static-nonpic fixes the linux-static configuration to not use -fPIC for
compiling code because it would violate Debian policy.
2007-01-08 08:35:42 +01:00
Keith Packard
a27d3e43fe
Merge branch 'master' into crestline
2007-01-07 23:03:01 -08:00
Keith Packard
6a632de96d
Merge branch 'origin' into crestline
2007-01-07 20:57:56 -08:00
Keith Packard
92de58f001
Merge branch 'master' into crestline
2007-01-06 17:14:14 -08:00
Wang Zhenyu
caf8010652
Merge branch 'master' into crestline
...
Conflicts:
src/mesa/drivers/dri/i965/brw_tex_layout.c
Michel Dänzer replaced the copy of the 945 mipmap layout code with that from
the 945 driver directly.
2007-01-06 15:49:23 -08:00
Brian
5cf7326132
Checkpoint glsl compiler work: sampler uniforms now implemented, linked properly.
2007-01-05 16:02:45 -07:00
Brian
b2ab693d68
added PROGRAM_SAMPLER
2007-01-05 16:01:43 -07:00
Brian
eef70ff79a
added Sampler field to prog_instruction struct
2007-01-05 16:01:26 -07:00
Brian
288c5396e6
added PROGRAM_SAMPLER
2007-01-05 16:01:11 -07:00
Brian
9805e76744
added _mesa_add_sampler()
2007-01-05 16:00:57 -07:00
Julien Cristau
44467ca45e
* Drop obsolete depends on xlibs.
2007-01-05 15:44:51 +01:00
Brian
4cc90ee0b0
update TexturesUsed[] in slang_update_inputs_outputs()
2007-01-04 17:44:04 -07:00
Brian
4428e8f20f
update TexturesUsed[] in slang_update_inputs_outputs()
2007-01-04 17:43:53 -07:00
Brian
64f78dd6a8
compute InputsRead/OutputsWritten with slang_update_inputs_outputs()
2007-01-04 17:30:30 -07:00
Brian
c9db223f90
move TexturesUsed[] into gl_program since vertex programs/shaders can use textures nowadays
2007-01-04 17:22:19 -07:00
Brian
7edd2ecb55
simplify update_texture_state() a bit, compute _EnabledCoordUnits for shaders
2007-01-04 16:19:54 -07:00
Brian
ff81f074fb
minor formatting fix
2007-01-04 15:25:29 -07:00
Brian
de03fe4a3f
added texture attribs in slang_find_input()
2007-01-04 15:06:50 -07:00
Brian
7b4d10b4a3
added glUniform1i_func
2007-01-04 14:40:56 -07:00
Brian
e640300602
initial code to get texture sampling limping along
2007-01-04 14:40:02 -07:00
Brian
6a92d98d1a
temporary disable some memory deallocations to work around a memory corruption bug
2007-01-04 14:38:45 -07:00
Brian
89dc48569a
finish some loose ends in _mesa_uniform()
2007-01-04 14:35:44 -07:00
Brian
602045fd7b
update_texture_state() updated for new shaders
2007-01-04 14:33:42 -07:00
Julien Cristau
f70ea0747d
Import changelog entry from the 6.5.1-0.5 NMU.
2007-01-04 21:30:49 +01:00
Thierry Reding
c619abf18a
Hijack the package (set XSF as maintainer, add myself to uploaders). \o/
2007-01-04 16:35:14 +01:00
Brian
439758353a
Fix some incorrect GL error values. Reorganize _mesa_compile_shader() code.
2007-01-04 08:21:09 -07:00
Julien Cristau
6da1323437
* Non-maintainer upload.
...
* Build with -fno-strict-aliasing to fix misbuild of i965_dri.so
(closes : #394311 ). Thanks to Michel Dänzer for the fix, and to Ryan
Richter for the report and testing.
2007-01-03 16:59:06 +01:00
Julien Cristau
1dd29785cf
Import changes from the mesa 6.5.1-0.4 NMU.
2007-01-03 13:43:46 +01:00
Julien Cristau
5681987ee4
Import changes from the mesa 6.5.1-0.3 NMU.
2007-01-03 13:41:57 +01:00
Nian Wu
f34cad0f97
Merge branch 'crestline' into crestline-qa
2006-12-26 16:46:51 -08:00
Haihao Xiang
adccb084df
Support linear format in i965.
...
Fix bug #117 #118
2006-12-26 16:45:02 -08:00
Brian
d8babcfc57
fix typos
2006-12-22 10:26:22 -07:00
Brian
aa710c3e6b
implement unary +, -
2006-12-22 10:18:50 -07:00
Brian
9b694589e9
chmod a-x
2006-12-21 18:12:03 -07:00
Brian
01f2e7f62f
checkpoint: pre/post incr/decr operators
2006-12-21 18:05:06 -07:00
Brian
392d9701e3
added INTERP_VARYING code
2006-12-21 17:50:22 -07:00
Brian
eb2a6d62f9
s/attribute/varying/
2006-12-21 17:50:07 -07:00
Brian
2905385744
comment about uniforms
2006-12-21 11:21:26 -07:00
Brian
58af54c767
checkpoint: rewrite vec/mat products
2006-12-21 10:56:09 -07:00
Brian
c155ae1dfe
fix typos
2006-12-21 10:49:27 -07:00
Brian
a0d6b506cd
added IR_NEG for negation
2006-12-21 10:47:28 -07:00
Brian
356f8ea213
checkpoint: matrix/float, unary negation rewrite
2006-12-21 10:45:49 -07:00
Brian
c73e07405c
checkpoint: ivec/int and mat/mat operations
2006-12-21 10:03:15 -07:00
Brian
bb1bf8b3aa
checkpoint: more basic math rewritting
2006-12-21 09:40:08 -07:00
Brian
a33532f5f4
checkpoint: re-org assignment operator functions
2006-12-20 18:04:59 -07:00
Brian
1ff1e89ff4
added glUniformMatrix2/3fv_func
2006-12-20 17:56:29 -07:00
Brian
cec316c9eb
checkpoint: more basic math operator re-org
2006-12-20 17:55:42 -07:00
Brian
8d239a6880
Checkpoing: re-organization of basic arithmetic functions.
2006-12-20 17:43:56 -07:00
Brian
2a62cbd24b
handle PROGRAM_UNIFORM, fix a _mesa_problem() call
2006-12-20 17:19:45 -07:00
Brian
3a8e2776a6
Uniform matrix support.
...
Implement _mesa_uniform_matrix()
Support for program parameters/uniforms with more than 4 elements.
Store 4x4 matrices in column-major order in registers.
Update mat mul built-in functions accordingly.
2006-12-20 17:19:16 -07:00
Brian
83ca3ff384
added _mesa_print_parameter_list()
2006-12-20 17:17:38 -07:00
Brian
2cc7dba718
New IR_COND node for evaluating conditional expressions (for if/while/for).
2006-12-20 12:41:59 -07:00
Brian
79a340bc15
use cast wrappers for sanity checking
2006-12-20 09:57:56 -07:00
Brian
f2923613a4
code re-org
2006-12-20 09:56:44 -07:00
Brian
d881a9c136
Minor clean-ups, reformatting, comment changes.
2006-12-20 09:31:07 -07:00
Brian
9e4bae9cca
Fix shader object reference counting and hash table deallocation.
2006-12-20 09:27:42 -07:00
Brian
65a18442e5
Clean-up and re-org of the main GLSL object types.
...
Use the gl_shader struct as it should be.
Renamed gl_linked_program to gl_shader_program.
Store both shaders and programs in the same hash table and use the Type field
to distinguish them.
2006-12-19 18:46:56 -07:00
Brian
0bf5dbe002
Overhaul of GLSL API functions, dispatching, etc.
2006-12-19 18:02:41 -07:00
Brian
5b01c5e9d2
Overhaul of GLSL API functions, dispatching, etc.
2006-12-19 18:02:03 -07:00
Brian
46b06bdb26
Massive re-org of GLSL-related API functions.
...
Added new GLSL functions to struct dd_function_table.
main/shaders.c calls GLSL functions through the dd_function_table.
shader/shader_api.c implements the API functions.
Other assorted changes, fixes everywhere else.
2006-12-19 17:59:32 -07:00
Brian
2e76f0a846
check for null Parameters ptr in _mesa_clone_program()
2006-12-19 09:52:07 -07:00
Brian
af1d46b68a
lots of clean-up and re-org
2006-12-19 08:59:51 -07:00
Brian
bb8f7627f7
additional error checking
2006-12-19 08:59:36 -07:00
Brian
8473ae475f
new error msg
2006-12-19 08:59:19 -07:00
Brian
194bc5afbd
rewrite +=, -= etc for floats
2006-12-19 08:58:56 -07:00
Brian
8e20c417d4
Implement array indexing of simple vec2/3/4 types. A bit of a hack for now...
2006-12-18 17:54:58 -07:00
Brian
d22079217c
Added instruction counter to catch infinite loops (temporary).
2006-12-18 16:22:27 -07:00
Brian
b50280e95f
Check for inst->CondUpdate, print .C suffix.
2006-12-18 16:21:58 -07:00
Brian
fbb71da2b9
Generate IR code for for/while loops, break and continue statements.
2006-12-18 14:45:26 -07:00
Brian
1aee657b0f
Implement if-conditionals and while loops, added temporary resolve-branches function in linker.
2006-12-18 10:05:24 -07:00
Brian
34ae99d604
GLSL API functions.
2006-12-18 08:28:54 -07:00
Brian
ad2519ac6b
Use _mesa_free_linked_program_data()
2006-12-18 08:28:06 -07:00
Brian
962a9f2f9d
comments
2006-12-18 08:25:23 -07:00
Nian Wu
ead0f46d5f
Merge branch 'crestline' into crestline-qa
2006-12-17 10:49:43 -08:00
Brian
0031ea7d85
fix comment, handle NOP
2006-12-16 12:52:55 -07:00
Brian
f7159552ae
Initial code for conditional constructs.
2006-12-16 12:52:19 -07:00
Brian
3a2815370d
print BRA instructions
2006-12-16 12:51:34 -07:00
Brian
3e1f4bc15b
added cases for BRA, NOP
2006-12-16 12:51:12 -07:00
Brian
b456413d76
cases for NOP, BRA
2006-12-16 12:50:51 -07:00
Brian
a4be104887
start implementing relational operators
2006-12-15 17:05:53 -07:00
Brian
cb7ccc4b14
start rewriting the matrix/vector functions
2006-12-15 16:47:42 -07:00
Brian
f167d0e7d5
added assertion to catch use of too many temporaries
2006-12-15 15:37:32 -07:00
Brian
fa8059a89c
fix double-printing of comment info
2006-12-15 15:36:29 -07:00
Brian
9b00fa9ac2
code movement
2006-12-15 15:36:09 -07:00
Brian
bfc02dd30f
Lots of assorted changes.
...
Implement assignment/move for types larger than 4 floats.
Fix codegen bug for "return expr" in inlined functions.
More clean-up of storage allocation code (slang_resolve_storage).
2006-12-15 15:35:57 -07:00
Brian
6579245800
redo mat4 addition, mat4 constructor from vec4s
2006-12-15 15:32:11 -07:00
Brian
4b4632f94c
vertex/fragment program field changes
2006-12-15 10:10:23 -07:00
Brian
d6aff512fe
varying var changes
2006-12-15 10:10:01 -07:00
Brian
464b9f4f6c
varying var changes
2006-12-15 10:09:49 -07:00
Brian
9abf73b8cc
varying changes
2006-12-15 10:09:33 -07:00
Brian
a7e252026d
updated includes
2006-12-15 10:09:12 -07:00
Brian
60a7200c0d
updated includes
2006-12-15 10:08:59 -07:00
Brian
89f88058b9
use MAX_VARYING
2006-12-15 10:08:24 -07:00
Brian
e3b2668865
use MAX_VARYING
2006-12-15 10:08:15 -07:00
Brian
a7a582296b
more debug output
2006-12-15 10:08:02 -07:00
Brian
a90046f109
Lots of assorted changes for new GLSL compiler backend.
...
New datatypes, constants, variables.
2006-12-15 10:07:26 -07:00
Brian
becb393d42
Use extfuncs.h helper. Added command line options for loading
...
vertex/fragment shaders from files.
2006-12-15 09:31:14 -07:00
Brian
e55b771a1e
simple extension function wrangler
2006-12-15 09:30:31 -07:00
Brian
39adc30250
change/add/rm several filenames
2006-12-15 08:55:49 -07:00
Brian
c968d3d410
Renamed s_nvfragprog.[ch] to s_fragprog.[ch]
2006-12-15 08:50:02 -07:00
Brian
b78fb7abaf
Renamed s_nvfragprog.[ch] to s_fragprog.[ch], program_instruction.h to prog_instruction.h
2006-12-15 08:49:27 -07:00
Brian
6232438acb
remove unneeded includes
2006-12-14 15:54:01 -07:00
Brian
885afd59ec
remove unneeded includes
2006-12-14 15:53:49 -07:00
Brian
2c1f975852
remove unneded includes
2006-12-14 15:50:34 -07:00
Brian
901c1bb402
remove some unneeded includes
2006-12-14 15:49:09 -07:00
Brian
0831ef5038
include prog_print.h
2006-12-14 15:47:54 -07:00
Brian
cc6a141dc1
Remove some moved extern decls.
2006-12-14 15:47:34 -07:00
Brian
464b82b1e6
Move some code from prog_print.c to prog_instruction.c
2006-12-14 15:47:08 -07:00
Brian
865f88afc0
Renamed from s_nvfragprog.[ch]
2006-12-14 15:14:14 -07:00
Brian
49f82803cc
Updated includes.
2006-12-14 15:13:06 -07:00
Brian
60417b646d
chmod a-x
2006-12-14 15:03:33 -07:00
Brian
57d9531cd6
Updated includes.
2006-12-14 15:03:04 -07:00
Brian
c0551f0a46
Updated includes.
2006-12-14 15:02:37 -07:00
Brian
a7a89e362b
Updated #includes after splitting program.h
2006-12-14 15:02:19 -07:00
Brian
0560d81ce9
Move many functions into new files.
2006-12-14 15:01:28 -07:00
Brian
00cdc0a472
Split the program.[ch] files into several new files.
2006-12-14 15:01:06 -07:00
Brian
200736ebd8
Modify _mesa_strdup() so it handles NULL correctly.
2006-12-14 13:59:53 -07:00
Brian
cc0c8b2248
Updates for new linker (merged varying/uniform vars).
2006-12-14 13:59:25 -07:00
Brian
ef264c2971
Assorted fix-ups for the new linker.
...
Disable some of the excessive debug output.
2006-12-14 13:58:57 -07:00
Brian
d4f7e4cc01
The new linker actually does a few things right now:
...
The varying vars used by the vertex and fragment shader are merged so they
agree.
Similarly, uniforms are merged (along with constants, etc).
The vertex/fragment program instructions are then cloned and rewritten
with the newly resolved uniform/varying locations.
2006-12-14 13:58:32 -07:00
Brian
b2a3a8554a
New functions for cloning programs and parameter lists.
2006-12-14 13:56:58 -07:00
Brian
e7e4181361
Remove include of s_arbshader.h
2006-12-14 09:51:54 -07:00
Brian
2a9950dcb3
Remove unneeded -I directories (3Dlabs headers).
2006-12-13 19:20:45 -07:00
Brian
2cbfbcd972
Obsolete.
2006-12-13 15:38:07 -07:00
Brian
33ae886bbd
Remove unused 3Dlabs code.
2006-12-13 15:36:26 -07:00
Brian
aed4f2cc2c
Remove unused 3Dlabs code.
2006-12-13 15:36:00 -07:00
Brian
05dab5eaa2
Checkpoint GLSL compiler work. Add new sources, remove obsolete.
2006-12-13 15:34:10 -07:00
Brian
1fbb1c8d78
Obsolete.
2006-12-13 15:33:41 -07:00
Brian
a5011d9753
Not needed.
2006-12-13 15:33:09 -07:00
Brian
cefc983bec
Retire old GLSL shader code.
2006-12-13 15:06:28 -07:00
Brian
12ef1fbefc
Checkpoint for GLSL compiler changes.
...
In brief:
Check for enabled fragment program by looking at ctx->FragmentProgram._Current.
New code for varying variables.
2006-12-13 15:05:23 -07:00
Brian
a328e469d3
Checkpoint work for new GLSL compiler back-end.
...
Among changes:
Remove ctx->FragmentProgram._Active
Remove _UseTexEnvProgram
Move _MaintainTnlProgram, _MaintainTexEnvProgram, _TexEnvProgram and
_TnlProgram fields.
Remove/disable old GLSL interpreter code.
2006-12-13 14:58:13 -07:00
Brian
fe1d01cb39
Checkpoint of work for new GLSL compiler back-end. Lots of assorted changes.
2006-12-13 14:54:47 -07:00
Brian
8627bf1452
Rewrite/simplify most built-in functions to use updated set of __asm instructions.
2006-12-13 14:49:41 -07:00
Nian Wu
77b862a849
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
2006-12-13 13:49:00 -08:00
Brian
aff8e204d2
Checkpoint new GLSL compiler back-end to produce fp/vp-style assembly instructions.
2006-12-13 14:48:36 -07:00
Zou Nan hai
ed7fbad206
Fix bug #93 , i965 driver not thread safe.
...
I am not confident of it is 100% thread safe now.
bufmgr_fake.c need a total rewrite later
(cherry picked from 606632ca27558ee1335be2f4a5906f2baa240a6a commit)
2006-12-13 13:29:37 -08:00
Zou Nan hai
4720cd0050
fix bug #99 .
...
prim_count overflow when there is more than 1 cliprect
(cherry picked from 84b958d66fe7d3fe03ed12b493e3f3197f656531 commit)
2006-12-13 13:29:20 -08:00
Michel Dänzer
c9795c6ca2
minstall: Pass correct destination file path to $RM regardless of source path.
...
(cherry picked from 26626c0052
commit)
2006-12-13 13:26:09 -08:00
Michel Dänzer
bce82efe1f
minstall: Always remove destination file before (re-)creating it.
...
This avoids issues with overwriting files that are being used.
(cherry picked from d71a5647a3
commit)
2006-12-13 13:25:42 -08:00
Zou Nan hai
aeda4c589a
ARB_occlusion_query support
2006-12-13 13:25:12 -08:00
Zou Nan hai
696fe3f52e
if (tex width < 4), mipmap calculation will be out of range
2006-12-13 13:24:35 -08:00
Zou Nan hai
c34d026eb0
Fix bug #93
2006-12-13 15:27:17 +08:00
Zou Nan hai
de90bbd0b7
fix for bug #99
2006-12-12 15:00:27 +08:00
Eric Anholt
d214138910
Merge branch 'origin' into crestline
2006-12-11 10:50:25 -08:00
Wang Zhenyu
89433fef0d
ARB_occlusion_query support
2006-12-11 00:01:56 -08:00
Wang Zhenyu
b4d9c0048f
if (tex width < 4), mipmap calculation will be out of range
2006-12-11 00:00:51 -08:00
Eric Anholt
9a94dae4c2
Avoid branch instructions while in single program flow mode.
...
There is an errata for Broadwater that threads don't have the instruction/loop
mask stacks initialized on thread spawn. In single program flow mode, those
stacks are not writable, so we can't initialize them. However, they do get
read during ELSE and ENDIF instructions. So, instead, replace branch
instructions in single program flow mode with predicated jumps (ADD to the ip
register), avoiding use of the more complicated branch instructions that may
fail. This is also a minor optimization as no ENDIF equivalent is necessary.
2006-12-10 12:24:51 -08:00
Eric Anholt
183abbcd6b
Connect INTEL_DEBUG=sync up to cmd/batch ioctls.
2006-12-10 12:24:46 -08:00
Wang Zhenyu
0536268267
adding pci id of Crestline
2006-12-10 12:24:40 -08:00
Thierry Reding
6eeb18fc68
Build the i915tex DRI module on the i386 and amd64 architectures.
2006-12-05 00:45:42 +00:00
Thierry Reding
01c90575b4
Add missing changelog entry and bug closer.
2006-12-04 07:23:14 +00:00
Thierry Reding
32e9cb0275
Update to new upstream release (6.5.2).
2006-12-02 23:46:07 +00:00
Thierry Reding
017bade93c
Update to latest upstream release candidate (6.5.2 RC3).
2006-12-01 00:16:33 +00:00
Thierry Reding
c9c79e7cae
Add manpages to the mesa-utils package.
2006-11-29 18:07:26 +00:00
Thierry Reding
777d41dd07
Mark the latest changelog entries as NMUs.
2006-11-26 02:40:01 +00:00
Thierry Reding
6238c30913
Revert maintainer and uploaders fields. Integrate latest NMUs into the
...
changelog and be a little more verbose in the debian/rules rewrite
changelog entries.
2006-11-26 02:38:31 +00:00
Thierry Reding
db164ab514
Update to latest upstream release candidate.
2006-11-22 19:50:34 +00:00
Thierry Reding
c72ef17731
Add libOSMesa16 and libOSMesa32 entries to libosmesa6.shlibs so packages
...
linking against those libraries will get the correct dependencies.
2006-11-22 19:47:56 +00:00
Thierry Reding
8dbee7867f
Use the new upstream minstall utility to install files and directories. Using
...
/usr/bin/install would result in a symlink's target being copied instead of
the symlink.
2006-11-18 21:28:07 +00:00
Thierry Reding
f403108f5f
Fix typo in changelog. libdrm2-dev is not a package.
2006-11-18 21:22:52 +00:00
Thierry Reding
223a97f92a
Bump build-dependency on libdrm-dev (>= 2.2.0).
2006-11-18 21:21:18 +00:00
Thierry Reding
bb44a8ae1f
Update to latest upstream release candidate.
...
Update patches.
2006-11-18 17:59:25 +00:00
Thierry Reding
b5a5062176
Target the mesa package at experimental until etch is released.
2006-11-18 17:50:44 +00:00
Thierry Reding
50faa32ce3
Move the code to choose which configurations to build to a separate script in
...
order to keep debian/rules cleaner.
2006-11-10 09:00:00 +00:00
Thierry Reding
b6caed527c
Also add release notes of version 6.5.1 and the release notes index.
2006-11-10 08:50:35 +00:00
Thierry Reding
d5ef77353b
Build Mesa utility programs (glxdemo, glxgears, glxheads, glxinfo) together
...
with the DRI/GLX-enabled libGL. Don't build the utilities on CPU-optimized
configurations.
2006-11-10 08:40:03 +00:00
Thierry Reding
336beba81b
Update Debian changelog.
2006-11-02 21:20:33 +00:00
Thierry Reding
5d23a7905c
Add code to provide a mesa-utils package since those utilities are shipped in
...
the MesaDemos tarball.
2006-11-02 21:05:29 +00:00
Thierry Reding
143dfcc904
Make mesa-common-dev depend on libx11-dev to provide Xlib.h and Xutil.h needed
...
by the GLX headers.
2006-11-01 07:54:40 +00:00
Thierry Reding
e076cd42f0
Bug #387706 should also be closed because we move libOSMesa to libosmesa6 and
...
statically link in the software rasterization code.
2006-10-25 00:17:42 +00:00
Thierry Reding
5bed38974e
Close 392715 because we now ship the contents of the three Mesa tarballs in
...
the original source.
2006-10-24 14:45:18 +00:00
Thierry Reding
35bc4b82ff
Since the original tarball is repackaged to include the three upstream
...
tarballs (MesaDemos, MesaGLUT and MesaLib), remove files that are not supposed
to be there.
Note that when importing initially, some files were not even added to the SVN
repository because SVN ignored them. These were configs/diffs~ and
docs/RELNOTES-6.1~. I removed those from the tarball as well.
2006-10-24 14:33:30 +00:00
Thierry Reding
4e5d870f72
Make libosmesa6-dev binNMU-safe again (mesa-common-dev is Architecture: all).
2006-10-24 14:29:11 +00:00
Thierry Reding
83def94db5
Make libgl1-mesa-dev Architecture: all, because all we ship with it is a
...
symbolic link. Make it binNMU-safe by making it depend on libgl1-mesa-glx and
libgl1-mesa-dri both >= ${Source-Version} instead of exact versions.
Add packages containing debugging symbols for libgl1-mesa-swx11,
libgl1-mesa-glx and libgl1-mesa-dri.
2006-10-24 12:16:16 +00:00
Thierry Reding
9d74c1ef2a
-fno-strict-aliasing actually *does* fix #394311 according to the submitter.
2006-10-24 10:31:28 +00:00
Thierry Reding
6023d4bdb5
Build with -fno-strict-aliasing, which should fix bug #394311 .
2006-10-24 10:29:21 +00:00
Thierry Reding
5e38f566f2
Provide libgl-dev as alternative to the mesa-common-dev dependency of the
...
libosmesa6-dev package.
2006-10-23 16:45:00 +00:00
Thierry Reding
b57341a78b
Move the glx*.h headers from libgl1-mesa(-swx11)-dev into mesa-common-dev
...
because both packages provide identical files.
2006-10-23 16:43:41 +00:00
Thierry Reding
910c32c0e9
Install the osmesa.h header in the libosmesa6-dev package where it belongs,
...
now that all OSMesa libraries have been split off into libosmesa6{,-dev}.
Don't make libosmesa6-dev depend on libgl1-mesa-swx11-dev anymore because it
no longer needs a libGL, only the gl.h header provided by mesa-common-dev.
2006-10-23 16:02:22 +00:00
Thierry Reding
e49456d8d8
Don't force -fPIC everywhere, because it seems only unused on x86 which we
...
build with assembler optimizations by default, resulting in non-PIC libraries
anyway.
2006-10-23 14:40:10 +00:00
Thierry Reding
c46becc9b3
Move the libOSMesa shlibs entry from libgl1-mesa-swx11 to libosmesa6 because
...
that's where libOSMesa is now installed.
2006-10-23 08:30:53 +00:00
Thierry Reding
b6e637106f
Add the static libGLw and the corresponding headers to the
...
libgl1-mesa-swx11-dev package again.
2006-10-23 08:23:27 +00:00
Thierry Reding
787cffe3d0
Always force -fPIC.
2006-10-23 08:22:25 +00:00
Thierry Reding
9d914e6809
Make sure the install-source.sh script is executable before trying to run it.
2006-10-20 20:56:41 +00:00
Thierry Reding
4e183c66e9
Add comments to patches and enable the previously disabled patches.
2006-10-20 19:41:00 +00:00
Thierry Reding
b1630fcbe8
Add build-dependency on lesstif2-dev needed to build the GLw libraries.
2006-10-20 19:17:34 +00:00
Thierry Reding
cd44f730cc
Enable building the GLw libraries.
2006-10-20 19:07:36 +00:00
Thierry Reding
ce5a39559e
Install several documents from the docs subdirectory into the mesa-common-dev
...
package.
2006-10-20 17:51:36 +00:00
Thierry Reding
ccffaef603
Build architecture-specific static libraries where available.
2006-10-20 12:15:29 +00:00
Thierry Reding
ae41f3a3ee
Don't make libgl1-mesa-swx11-dev depend on lesstif2-dev anymore because we
...
don't ship anything related to LessTif in that package.
2006-10-20 12:06:20 +00:00
Thierry Reding
c7e576d6bf
No longer install the default build of libOSMesa in the libgl1-mesa-swx11
...
package, but in the libosmesa6 package.
Modify the 01_fix-makefile patch to not build libOSMesa on stand-alone builds,
so that it is only created when building OSMesa explicitly.
Build libOSMesa with 8 bits per color channel (the default) in dynamic and
static versions separately from the software rasterization libGL with the
software rasterization code linked in statically so that libOSMesa can run in
parallel with any libGL. This should fix the problem Yann Dirson mentioned a
while ago.
Use the install-source.sh script to install the Mesa sources needed for the
mesa-swx11-source package instead of doing it in the debian/rules file itself.
2006-10-20 07:56:11 +00:00
Thierry Reding
f069b2812e
Add a set of files to enable an i686 optimized build of the DRI/GLX-enabled
...
libGL and the DRI drivers. Disabled for now.
2006-10-20 07:47:37 +00:00
Thierry Reding
f20ff6213e
Add a shell script to install the Mesa sources for the mesa-swx11-source
...
package.
2006-10-20 07:45:39 +00:00
Thierry Reding
24ff74bdcb
Add configurations to build static versions of the default OSMesa library.
...
In all Debian-specific configurations, include the Debian defaults
configuration after the Mesa configurations and drop the 'override' for all
variables because it is no longer needed.
2006-10-20 07:43:50 +00:00
Thierry Reding
230e79916f
Merge in the old Debian changelog entries and the old copyright file.
2006-10-17 19:35:35 +00:00
Thierry Reding
9f14b4db35
Use -march in favor of the deprecated -mcpu.
2006-10-17 19:13:27 +00:00
Thierry Reding
ec916398e7
Don't install libOSMesa development files in the libgl1-mesa-swx11 package.
2006-10-16 14:43:43 +00:00
Thierry Reding
6befad112e
Actually do rename debian-static to debian-swx11+glu-static.
2006-10-16 13:54:24 +00:00
Thierry Reding
55ce23b8db
Beautify IEEE floating point patch.
2006-10-16 13:34:57 +00:00
Thierry Reding
1292ec1ecf
Fix typo in the filename of the IEEE FP on s390 and m68k patch.
2006-10-16 13:11:51 +00:00
Thierry Reding
65a324062f
Add patches extracted from older Debian diffs but not applied yet because it's
...
not certain yet that they are needed.
2006-10-16 13:05:42 +00:00
Thierry Reding
c9db617e0b
Make the debian-static a subclass of debian-swx11+glu-default, because that's
...
what it actually is. Rename it accordingly and add it to SWX11_GLU_CONFIGS.
Install the libOSMesa.so symlink and the libOSMesa static library in the
libgl1-mesa-swx11-dev package.
Add .shlibs files for the libgl1-mesa-swx11, libgl1-mesa-glx and libglu1-mesa
packages.
2006-10-16 13:04:29 +00:00
Thierry Reding
b43137d0cc
Build libGLU by default for swx11+glu configurations but not in the
...
configurations targetting specific CPU's because it is unlikely to result in
an increase in performance.
2006-10-16 11:53:06 +00:00
Thierry Reding
eeca642778
Add versioned build-dependency on dpkg-dev (>= 1.13.19) to make sure the
...
binary:Version and source:Version substitution variables can be used.
2006-10-16 11:49:46 +00:00
Thierry Reding
5cef6ca36a
Move the detection of architecture-specific configurations to the debian/rules
...
file.
Add the configs target to debian/rules for checking whether the correct
configurations will be built.
2006-10-16 10:03:32 +00:00
Thierry Reding
be2b518f7b
Also build a static version of libGLU.
2006-10-16 09:53:30 +00:00
Thierry Reding
1b0d29afbc
Rename the CPU optimization configurations to make it clear that they only
...
build swx11 and GLU.
Build architecture-optimized swx11 and GLU where possible.
2006-10-16 09:39:59 +00:00
Thierry Reding
55cf480c0b
Drop the libgl1-mesa-swx11-dbg package until there's a decision as to whether
...
it is really needed.
Allow more than one type of optimization libraries to be built for any given
architecture. Currently optimization configurations are provided for i386
[i686], alpha [ev5], amd64, powerpc [603], ppc64 and sparc [ultrasparc].
However, only i686 and amd64 are enabled for now for safety.
Add the libgl1-mesa-swx11-i686 for i686 optimized libraries.
Drop the debian-common configuration because it is no longer used.
Don't build libGLU in all configurations, only when needed.
2006-10-16 08:58:05 +00:00
Thierry Reding
84db6912f0
Add missing build-dependencies.
2006-10-15 18:02:33 +00:00
Thierry Reding
7495cc28a0
Only build the i810, i915, i965, sis and unichrome DRI drivers on i386 and
...
amd64.
Only build the ffb DRI driver on sparc.
2006-10-15 16:17:53 +00:00
Thierry Reding
87744f786b
Use STAMP_DIR consistently throughout the debian/rules file.
...
Make the BUILD_STAMPS targets depend on patch so that when they are built
separately the patches will also be applied. Thanks to Michel Dänzer for
catching this.
Make symlinking the source tree idempotent by adding the -f option to cp.
Thanks again Michel Dänzer.
2006-10-15 14:41:12 +00:00
Thierry Reding
5bcfa4c859
Build only optimized versions of the DRI drivers, only using no optimizations
...
when not supported.
Add configuration to build the DRI drivers on amd64.
2006-10-15 13:30:22 +00:00
Thierry Reding
8ef731bcd1
Add a patch (00_create-libdir) that fixes the upstream build system to make
...
sure the LIB_DIR is created or bail out.
Update the 01_fix-makefile patch to only install libGL/libOSMesa if they
exist. Don't make installation dependent on which drivers are built.
Build optimized versions of the swx11 libraries in addition to those that
should work on the least-capable supported processor for the given
architecture.
Have most configurations include debian-default instead of debian-common so
that INSTALL_DIR is correctly defined. debian-common can probably be dropped
anyway.
2006-10-15 13:15:56 +00:00
Thierry Reding
8d02f3c68a
Add patch to fix upstream build system to correctly install libOSMesa and
...
variants. This patch also fixes the build system not to install libGL if only
the OSMesa library is built.
Update *.install files to install more files. Pretty much everything except
debugging and optimized libraries is now built and installed.
Enable building static libraries for inclusion in the -dev packages.
2006-10-15 00:49:41 +00:00
Thierry Reding
b1f8b49e8b
Add build-dependency on quilt.
...
Remove shlibs:Depends substitution variable from -dev packages, which doesn't
make sense.
2006-10-15 00:42:25 +00:00
David Nusinow
75733e4237
Commit diff of 6.5.1-0.2 so we've got a record of it here.
2006-10-14 22:42:57 +00:00
Thierry Reding
6e318e2cd1
Base the Debian OSMesa configurations on linux-osmesa* provided upstream.
...
Add a configuration for building a static version of OSMesa with 32 bits per
color channel.
2006-10-14 17:04:02 +00:00
Thierry Reding
01e6b84b14
Fix some small inconsistencies involving configuration names.
2006-10-14 16:32:25 +00:00
Thierry Reding
69705d22be
Rename the debian-dri-common configuration to debian-dri-default, to make it
...
consistent with the naming scheme of debian-default.
2006-10-14 16:29:32 +00:00
Thierry Reding
b16d1dcff5
Add a default Debian-specific configuration which overrides settings from the
...
default Mesa configuration.
2006-10-14 16:28:45 +00:00
Thierry Reding
10c5b5d5ba
Comment the Debian-specific configurations.
2006-10-14 16:25:30 +00:00
Thierry Reding
d9c5c170f6
Rename the -default configurations to -any, which is a more appropriate name.
2006-10-14 15:44:15 +00:00
Thierry Reding
32c7138d86
Move the debian/debian-dri configurations to debian-default/debian-dri-default
...
respectively, and use debian/debian-dri to choose an architecture specific
configuration.
2006-10-14 15:42:59 +00:00
Thierry Reding
d29244d872
Add OSMesa configurations and made fixed several issues here and there.
2006-10-14 15:11:31 +00:00
Thierry Reding
0fca6eda1e
Initial version of a new build system for Mesa.
2006-10-14 04:33:41 +00:00
Thierry Reding
1ddf606332
Import Mesa 6.5.1 (MesaLib, MesaDemos, MesaGLUT).
2006-10-14 03:46:41 +00:00
David Nusinow
bc8084da74
Fix goofed patch from before
2006-09-26 01:36:37 +00:00
David Nusinow
5eed400862
Prepare changelog for release
2006-09-26 01:21:59 +00:00
David Nusinow
a37a0959ac
* Add patch from Cyril Brulebois to allow package to build on HURD, which
...
lacks DRI and directfb. This includes not using lib-directfb in the
build-depends for hurd-i386. It also creates a new debian config,
debian-indirect, which is used when building for HURD. This config is
invoked in the debian-dri config on hurd-i386. Thanks to Cyril Brulebois
for the patch, Michael Banck, Michel Dänzer, and Samuel Thibault for
input on an appropriate fix. (closes : #358065 )
2006-09-26 00:46:14 +00:00
David Nusinow
53845c52e5
* Re-add s390 and m68k to the USE_IEEE test in src/mesa/main/imports.h. This
...
package seriously needs to store patches somewhere that are easy to find
and re-apply.
2006-09-26 00:32:06 +00:00
David Nusinow
d429f0b14f
* Make sure that libGl looks for the dri drivers in the proper location. Do
...
this by setting the appropriate variables in the debian config
2006-09-25 02:57:24 +00:00
David Nusinow
02339187ad
* Stuff not in the upstream tarballs
...
* Bump libdrm-dev build-dep to >= 2.0.2
* Add libdrm cflags to the debian-dri config. This allows the build system
to find drm.h
2006-09-24 22:55:41 +00:00
David Nusinow
827f778525
* Stuff not in the upstream tarballs
...
+ os2 glut stuff
+ docs/gears.png
2006-09-24 21:54:25 +00:00
David Nusinow
d3fc85eea9
Remove os2 glut stuff. It's not in the tarballs
2006-09-24 21:50:01 +00:00
David Nusinow
9a62963129
Add glut
2006-09-24 21:40:02 +00:00
David Nusinow
a0b2543ba1
Add mesa demos
2006-09-24 21:29:21 +00:00
David Nusinow
387acaac69
* New upstream version
2006-09-24 21:21:15 +00:00
David Nusinow
952b775dbe
Rename mesa dir
2006-09-24 21:18:17 +00:00
David Nusinow
eadb76b3f8
Bump to latest mesa in Debian
2006-09-24 21:11:46 +00:00
Steve Langasek
b3f7313ae4
Nuke the directory for an obsolete version of mesa -- no reason to merge
...
it anywhere, it's already superseded
2006-09-18 23:49:49 +00:00
David Nusinow
0c97d48027
* Install the glx sources with the rest in the sources package. This will
...
allow building of Xgl
2006-04-08 18:28:29 +00:00
David Nusinow
c4a678de9e
Update source package install file, change version number to match reality, and note NMU in changelog
2006-04-07 06:36:53 +00:00
David Nusinow
2c834f4d29
* Don't build now non-existant i830 driver in debian dri configs. Fixes
...
FTBFS.
2006-04-07 03:11:47 +00:00
David Nusinow
b93d290c9f
* Remove set_buffer function from idirectfbgl_mesa.c in directfb driver.
...
Also remove the line that sets SetBuffer to it. Fixes FTBFS.
2006-04-07 02:22:22 +00:00
David Nusinow
32266bb21a
* Re-Add s390 and m68k to the USE_IEEE test in src/mesa/main/imports.h.
...
I need to submit this upstream.
2006-04-07 01:50:23 +00:00
David Nusinow
cab39103b7
* Increment libdrm-dev build-dep to 2.0.1
2006-04-07 00:38:00 +00:00
David Nusinow
5c56a80ac9
Copy over Debian packaging from 6.4.1
2006-04-07 00:35:30 +00:00
David Nusinow
d0bac31721
Copy vendor drop of Mesa 6.5 over to working branch
2006-04-07 00:30:49 +00:00
David Nusinow
9258e54cfa
Move incorrect vendor drop of Mesa 6.5
2006-04-07 00:29:08 +00:00
David Nusinow
ccb68495e0
Vendor drop of Mesa 6.5
2006-04-07 00:24:21 +00:00
David Nusinow
db4236fe0b
* Add versioned conflict between libgl1-mesa-dri and xlibmesa-dri so that
...
the xlibmesa-dri transitional upgrade package works
2006-03-07 02:48:44 +00:00
David Nusinow
a4e43427f8
* Move compatibility packages to the xorg source package. The versioning on
...
these packages will be too low without an epoch and they definitely fit
with the xorg package anyway.
2006-02-24 05:43:01 +00:00
David Nusinow
829190abdd
* Provide compatibility packages for the Xorg 6.9 mesa packages. This
...
package will be the only source of mesa packages in Debian for the
present, and these packages will provide for smooth upgrades and
compatibility.
2006-02-22 03:22:26 +00:00
David Nusinow
99688cd051
Add m68k to previous fix to fix its FTBFS also
2006-02-11 23:00:27 +00:00
David Nusinow
1ba0a92702
* Add s390 to the USE_IEEE test in src/mesa/main/imports.h.
...
(closes : #349437 )
2006-02-09 01:24:52 +00:00
David Nusinow
065d5a8d17
* Remove makedepend from build-depends. Now we'll just build-dep on xutils
...
to get the app, which will translate over to our own xorg 7.0 plans.
2006-02-01 00:22:24 +00:00
David Nusinow
3b53c0ac19
* Re-add dh_installdirs call to binary-indep target so that we get
...
arch-specific dirs for the mesa-swx11-source package
2006-01-30 04:02:11 +00:00
David Nusinow
ed56fe4e82
* mesa-swrast-src.install stop looking for the swx11 dir and look for swrast
2006-01-22 19:50:19 +00:00
David Nusinow
1fbbe807ed
Make libglu1-mesa default to depending on libgl1-mesa-glx. Thanks Michel Dänzer for catching this one.
2006-01-22 00:07:07 +00:00
David Nusinow
c3dccfa05b
Use appropriate version number for an NMU. Thanks Julien for catching this one
2006-01-21 23:40:34 +00:00
David Nusinow
7703d9293f
Incorporate other NMU for xlibs-dev transition
2006-01-21 23:32:52 +00:00
David Nusinow
bcf560e4b8
* Change libgl1-mesa to be named libgl1-mesa-glx
2006-01-19 23:45:36 +00:00
David Nusinow
9d944b501a
* Change libgl1-mesa-swrast to be named libgl1-mesa-swx11
2006-01-16 22:19:03 +00:00
David Nusinow
cf013a5384
Add more closers
2006-01-11 04:10:39 +00:00
David Nusinow
2f367491c4
Add closer
2006-01-11 04:00:15 +00:00
David Nusinow
e7d93b62ec
* Change libgl1-mesa-swrast Depends on libx11-6-dev to libx11-dev.
...
(closes : #347205 )
* Add closer for packaging new upstream
2006-01-11 03:48:31 +00:00
David Nusinow
a5b309c0c9
Document that we'll be NMU'ing this for modular work
2006-01-06 03:09:12 +00:00
David Nusinow
df46b96ab0
Re-add mesa-6.4.1 which was accidentally deleted
2006-01-03 05:15:27 +00:00
David Nusinow
bda1e332ce
Update libs to 7.0 release with packaging
2005-12-30 20:12:45 +00:00
David Nusinow
53b2ad5fd0
Rename mesa lib dir to appropriate version
2005-12-16 04:04:38 +00:00
David Nusinow
b44d9c657d
Changelog version bump
2005-12-16 04:03:27 +00:00
David Nusinow
92ef7527d1
* New upstream version (6.4.1)
...
* Merge changes from Ubuntu version 6.4.1-0ubuntu1
+ Add new files required by xorg-server GL build to mesa-swrast-source.
2005-12-14 01:43:13 +00:00
David Nusinow
c37d6b4ca8
Commit Mesa 6.4 sources and packaging
2005-11-09 02:46:07 +00:00