Brian Paul
a577471c54
mesa: use the IROUND() macro in pixel packing code
...
It turns out some tests are sensitive to rounding vs. truncating when
converting float color values to integers in glReadPixels(). In particular,
this matters when the destination format is 5/6/5 or 4/4/4/4, etc.
2009-03-18 15:45:38 -06:00
Alan Hourihane
cac1ce09ac
slang: redo the last commit for if/break & if/continue tests as it
...
wasn't good enough for deeply nested if's.
2009-03-18 21:42:14 +00:00
Alan Hourihane
192b7bc706
Revert "slang: if we detect an if/break or if/continue within a loop and we're"
...
This reverts commit 752296b8f3
.
2009-03-18 21:40:03 +00:00
Alan Hourihane
752296b8f3
slang: if we detect an if/break or if/continue within a loop and we're
...
trying to unroll, bail, and fallback to doing the real loop.
2009-03-18 21:17:35 +00:00
Keith Whitwell
08d44512e9
st: call _glapi_check_multithread from st_make_current
...
This function is called from many OS-dependent versions of MakeCurrent.
Move the check for multithreading to this central location to avoid
having to make this check from all the callers.
2009-03-18 19:14:45 +00:00
Thomas Hellstrom
caf99be999
stw: Fix makeCurrent.
...
Flush if we change current context.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-03-18 18:02:58 +00:00
José Fonseca
1f118c2557
progs: Build the wgl examples with scons.
2009-03-18 16:40:57 +00:00
Jakob Bornecrantz
3f17030d9c
progs/trivial: Make quad-tex-sub repeat patterns
2009-03-18 17:27:34 +01:00
Brian Paul
4c460cfd2b
tests: remove/update old comments
2009-03-18 10:24:19 -06:00
Brian Paul
0b0e2159f2
st: need to free/realloc pipe texture when we're handed image level > last_level
...
Fixes progs/tests/tri-fbo-tex-mip.c
2009-03-18 10:24:19 -06:00
Brian Paul
a0509f7d28
st: clean up some if-statment code
2009-03-18 10:24:19 -06:00
Brian Paul
9808ae688a
softpipe: more texture transfer fixes.
...
Need to null-out pointers after freeing transfer objects.
Fix mix-ups between tc->transfer and tc->tex_trans fields.
2009-03-18 10:24:19 -06:00
Brian Paul
71e3aa14fb
softpipe: need to set tc->transfer=NULL after destroying the transfer object
...
This fixes a number of crashes/regressions in programs such as lodbias.c,
mipmap_limits.c, etc.
2009-03-18 10:24:19 -06:00
Brian Paul
3151f5d75a
st: update texture comments
2009-03-18 10:24:19 -06:00
Jakob Bornecrantz
87bcb328c1
progs/trivial: Add quad-tex-sub
...
Tests glTexSubImage
2009-03-18 17:17:45 +01:00
Dan Nicholson
13345a9540
Use the specified X11 headers for xlib mesa
...
The xlib build was using the system's Xlib headers or bombing if they
weren't available.
2009-03-18 07:37:08 -07:00
Keith Whitwell
f02aaa83c1
tests: add simplest mipgen test
2009-03-18 14:13:59 +00:00
Keith Whitwell
33c1bec73b
pipe/atomic: dont use ms interlock calls from gcc
2009-03-18 13:27:53 +00:00
Keith Whitwell
0c550b0425
util: avoid clashprone UINT, UBYTE enum values
2009-03-18 13:04:43 +00:00
Keith Whitwell
5488fe84f9
draw: use AOS_ERROR rather than clash-prone ERROR() macro
2009-03-18 13:04:43 +00:00
Keith Whitwell
eddfad3955
pipe/atomic: clean up #ifdef maze
2009-03-18 13:04:43 +00:00
Jakob Bornecrantz
a528eb51eb
progs/tests: Update mipmap_limits to show image and colors
2009-03-18 13:30:34 +01:00
Thomas Hellstrom
d405ba3151
xlib st: Fix makeCurrent.
...
Flush if we change context.
Also reinstate the old optimization of doing nothing if
nothing changes.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-03-18 11:58:40 +01:00
Jakob Bornecrantz
ae36fadb7f
progs/trivial: Add tri-fbo-tex-mip
...
Tests rendering to mip levels other then first
2009-03-18 11:30:34 +01:00
Ben Skeggs
e00ae524e2
nouveau: rewrite winsys in terms of drm_api, support dri2 state tracker
...
drm_api is a set of hooks used by the dri2 state tracker, this wraps our
dri1 code around the same set of hooks.
Currently the dri2 build will produce nouveau_dri2.so which you'll need
to install as nouveau_dri.so if you wish to try it. The dri2 state
tracker doesn't make it easy for a driver to support both paths in the
same binary.
2009-03-18 09:44:40 +10:00
Ben Skeggs
b46fcf25be
st/dri2: use pipe_screen.is_format_supported to choose depth/stencil format
2009-03-18 09:44:40 +10:00
Corbin Simpson
5deefb7ea5
r300-gallium: Move all unsorted state into invariant state.
...
Gotta just slowly whittle this down.
2009-03-17 13:14:03 -07:00
Corbin Simpson
f822ac0fff
r300-gallium: Emit invariant state, no matter what.
...
It's called "invariant" for a reason. :3
2009-03-17 13:14:03 -07:00
Corbin Simpson
9d5e6f66f0
r300-gallium: Quick little cleanup of surface_fill state.
2009-03-17 13:14:02 -07:00
José Fonseca
05318c5afa
tgsi: Restore statement ordering.
2009-03-17 19:50:42 +00:00
Corbin Simpson
e87f26a9b6
r300-gallium: Debugging for the more sensitive card registers.
...
These are nearly always the cause of hardlocks, so let's dump them.
2009-03-17 11:51:15 -07:00
Corbin Simpson
0f0d0b62ff
r300-gallium: r500-fs: Fixup immediate->constant counting a bit.
2009-03-17 11:51:14 -07:00
Corbin Simpson
fbd758c55e
r300-gallium: More query stuff.
...
Should work, but doesn't. At least it doesn't hardlock.
2009-03-17 11:51:14 -07:00
Brian Paul
c334ce273e
swrast: use better _swrast_compute_lambda() function
...
The MAX-based function can produce values that are non-monotonic for a span
which causes glitches in texture filtering. The sqrt-based one avoids that.
This is perhaps slightly slower than before, but the difference
probably isn't noticable given we're doing software mipmap filtering.
Issue reported by Nir Radian <nirr@horizonsemi.com>
2009-03-17 10:28:32 -06:00
Vinson Lee
1eee1bac1f
mesa: update/fix doxygen comments
2009-03-17 09:34:30 -06:00
José Fonseca
c1f8de9954
util: Realloc takes bytes.
2009-03-17 14:38:55 +00:00
Michal Krol
f20a0155f3
wgl: Port sharedtex_mt to WGL.
2009-03-17 14:27:47 +01:00
Michal Krol
ed3781fdc5
tgsi: Document ps_2_0 instruction set operations.
2009-03-17 12:42:45 +01:00
Michal Krol
223bf49b20
tgsi: Document ps_1_4 instruction set operations.
2009-03-17 12:42:43 +01:00
Michal Krol
95ef9803da
tgsi: Document ps_1_1 instruction set operations.
2009-03-17 12:42:41 +01:00
Michal Krol
f07400592f
tgsi: Begin documenting GLSL instruction set operations.
2009-03-17 12:42:38 +01:00
Michal Krol
0ff360c829
tgsi: Begin documenting NV_geometry_program4 instruction set operations.
2009-03-17 12:42:36 +01:00
Thomas Hellstrom
1d2b14cf56
xdemos: Fix sharedtex_mt.
...
1) Don't allow multiple threads sharing current context,
even if they are mutex protected.
2) Remove all XLockDisplay(), XUnLockDisplay() calls, as they were
only workarounds for xcb.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-03-17 11:38:00 +01:00
Michal Krol
7f1062584e
python: Return on unknown pixel format.
2009-03-17 11:34:42 +01:00
Michal Krol
c337bafeb9
gallium: Use `_new' name, `new' is a reserved keyword in C++.
2009-03-17 10:56:00 +01:00
Michal Krol
1e23dac869
gallium: Provide unprotected atomic implementation for display and miniport interfaces.
2009-03-17 10:54:08 +01:00
Michal Krol
709b3128f3
python: Fix build after refcount rework.
2009-03-17 10:43:04 +01:00
Michal Krol
7b0c459bb4
python: Include `p_winsys_screen.h'.
2009-03-17 10:33:25 +01:00
Michal Krol
4e1c925ef5
python: Do not pass screen object to pipe_buffer_reference.
2009-03-17 10:26:38 +01:00
Michal Krol
627c2d2f0a
tgsi: Silence const pointer cast warnings.
2009-03-17 10:18:24 +01:00