Brian Paul
bb659f6e53
progs/tests: additional debug code
2009-10-01 16:43:22 -06:00
Brian Paul
4ca9ba2544
mesa: move mesa_set_fetch_functions()
2009-10-01 16:42:37 -06:00
Brian Paul
073d55f584
radeon: fix tx_table[] entry
...
XXX need to still verify that the table entries are in correct order.
2009-10-01 16:41:52 -06:00
Brian Paul
4208a8c026
savage: s/Xfree/_mesa_free/
2009-10-01 16:41:24 -06:00
Brian Paul
354d66e2f5
mesa: simplify _mesa_compressed_texture_size()
2009-10-01 16:30:47 -06:00
Brian Paul
b6bdafdf2c
mesa: remove gl_texture_image::IsCompressed field
...
Use _mesa_is_format_compressed() instead.
2009-10-01 16:29:44 -06:00
Brian Paul
040fd7ed44
mesa: added _mesa_format_row_stride()
2009-10-01 16:27:23 -06:00
Brian Paul
1c7ec97ec4
mesa: added _mesa_format_image_size()
2009-10-01 15:59:13 -06:00
Eric Anholt
81aa5d717b
i915: Add stub ARB_occlusion_query support under a driconf debug option.
...
This is useful for enabling our GLSL testcases using the 2.0 entrypoints
even though we don't have full GL 2.0.
2009-10-01 14:54:15 -07:00
Eric Anholt
862a2a55b3
i915: Add optional support for ARB_fragment_shader under a driconf option.
...
Other vendors have enabled ARB_fragment_shader as part of OpenGL 2.0
enablement even on hardware like the 915 with no dynamic branching or
dFdx/dFdy support. But for now we'll leave it disabled because we don't
do any flattening of ifs or loops, which is rather restrictive.
This support is not complete, and may be unstable depending on your shaders.
It passes 10/15 of the piglit glsl tests, but hangs on glean glsl1.
2009-10-01 14:52:44 -07:00
Eric Anholt
67f4d626d3
i915: Add support or fallbacks for GLSL fragment shader opcodes.
2009-10-01 14:31:04 -07:00
Eric Anholt
f9f31b2574
i915: Add support for varying inputs.
2009-10-01 14:31:04 -07:00
Eric Anholt
7d4b7460b0
i915: Enable ARB_vertex_shader for both i915 and i830.
...
Since the TNL is all done in software anyway, it should be the same to
the user who's probably using ARB_vertex_program otherwise, but gives them
a nicer programming environment.
2009-10-01 14:31:03 -07:00
Eric Anholt
96a3c69d48
i915: Increase maximum program size to the hardware limits.
...
This fixes potential heap trashing if the program of choice exceeds limits,
and fixes the native instructions limit being lower than what can be
used by valid programs.
2009-10-01 14:31:03 -07:00
Eric Anholt
61b512c47c
i915: Update and translate the fragment program along with state updates.
...
Previously, we were doing it in the midst of the pipeline run, which gave
an opportunity to enable/disable fallbacks, which is certainly the wrong
time to be doing so. This manifested itself in a NULL dereference for PutRow
after transitioning out of a fallback during a run_pipeline in glean glsl1.
2009-10-01 14:31:03 -07:00
Eric Anholt
d6fbf87575
Revert "i915: don't validate PS program when falling back to software"
...
This reverts commit e7044d552c . It
prevented the driver from ever recovering from a software fallback due
to a program error. The original bug it claimed to fix doesn't appear to
exist post-revert.
2009-10-01 14:31:03 -07:00
Eric Anholt
4ff816751f
i915: Bail when the fragment program has too many total instructions.
...
Previously, we'd go trashing the heap.
2009-10-01 14:31:03 -07:00
Eric Anholt
994d1db079
i915: Let i915_program_error take a format string, and don't use _mesa_problem.
...
It's misleading to report things like the program having too many native
instructions as a Mesa implementation error, when the program may just be
too big for the hardware.
2009-10-01 14:31:03 -07:00
Brian Paul
167ffa9e03
mesa: fix memory leak when generating mipmaps for compressed textures
2009-10-01 14:55:13 -06:00
Brian Paul
0574954238
mesa: fix mem leaks
2009-10-01 14:52:28 -06:00
Brian Paul
0f291f2efe
gallium/util: silence uninitialized var warning
2009-10-01 14:52:10 -06:00
Brian Paul
63064cf7c3
mesa: add missing return when out of memory
2009-10-01 14:51:43 -06:00
Brian Paul
7b568614a2
mesa: fix potential uninitialized memory reads
2009-10-01 14:51:26 -06:00
Brian Paul
9b27a0d063
glsl: fix mem leak
2009-10-01 14:50:45 -06:00
Brian Paul
b3e41e0d5e
st/mesa: check for null before asserts, fix possible mem leak
2009-10-01 14:49:39 -06:00
Brian Paul
b154497bef
st/mesa: silence hidden parameter warning
2009-10-01 14:49:04 -06:00
Brian Paul
5d2413fca4
Merge branch 'mesa_7_6_branch'
2009-10-01 13:35:42 -06:00
Brian Paul
495628bc5c
st/mesa: fix non-mipmap lastLevel calculation.
...
reviewed by Brian Paul.
(cherry picked from master, commit ae2daacbac )
2009-10-01 13:34:49 -06:00
Vinson Lee
18883cdf23
mesa: Return -FLT_MAX instead of 0 for LG2(0).
...
lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0
for LG2(0).
2009-10-01 13:33:20 -06:00
Brian Paul
15c57648cd
objviewer: remove disabled code
2009-10-01 13:14:50 -06:00
Brian Paul
9745e26adb
objviewer: mouse/keyboard info in README file
2009-10-01 13:14:50 -06:00
Brian Paul
d622c4ddba
docs: added objviewer to release notes
2009-10-01 13:14:50 -06:00
Brian Paul
24f31ab861
mesa: add objviewer to PROGRAM_DIRS
2009-10-01 13:14:50 -06:00
Brian Paul
0b1de63ad8
mesa: add progs/objviewer to tarball list
2009-10-01 13:14:50 -06:00
Brian Paul
8d93a4c639
objview: clean up drawing VBO code
2009-10-01 13:14:50 -06:00
Brian Paul
c7c62521fb
objview: set skybox texture filter
2009-10-01 13:14:50 -06:00
Brian Paul
336994e54c
objview: check GL version/extension
2009-10-01 13:14:49 -06:00
Brian Paul
ca1bda552d
progs/objviewer: Wavefront .obj file loader/viewer demo
...
Adapted from code written by Nate Robins. See README.txt.
2009-10-01 13:14:48 -06:00
Michel Dänzer
e32a341be6
st/xorg: Check that ms->api->destroy is not NULL before calling it.
...
Fixes potential crash on X server shutdown.
2009-10-01 16:45:11 +02:00
Robert Noland
0b466c8705
util: Enable sockets on BSD
...
I think this should be safe for all of the BSDs.
Signed-off-by: Robert Noland <rnoland@2hip.net>
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-01 08:42:48 -06:00
Robert Noland
908ecb3faa
util: define PIPE_OS_FREEBSD to correct u_cpu_detect on FreeBSD.
...
Since the various BSDs use some different features here,
define PIPE_OS_OPENBSD and PIPE_OS_NETBSD as well
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-01 08:40:30 -06:00
Brian Paul
f8d8f45278
mesa: better debug message
2009-10-01 08:38:38 -06:00
Keith Whitwell
4456006ba6
gallium: remove depth.occlusion_count flag
...
This was redundant as drivers can just keep track of whether they are
inside a begin/end query pair. We want to add more query types later
and also support nested queries, none of which map well onto a flag like
this. No driver appeared to be using the flag.
2009-10-01 14:34:23 +01:00
Cooper Yuan
ae2daacbac
st/mesa: fix non-mipmap lastLevel calculation.
...
reviewed by Brian Paul.
2009-10-01 17:54:27 +08:00
Brian Paul
8c36ca707c
swrast: fix some texformat regressions
...
Need to be careful with component ordering for MESA_FORMAT_RGB888
and MESA_FORMAT_RGBA8888.
2009-09-30 22:50:08 -06:00
Brian Paul
3d6a20e5b6
mesa: rename texformat_tmp.h to texfetch_tmp.h
2009-09-30 21:08:06 -06:00
Brian Paul
60843e3ee5
mesa: remove MESA_FORMAT_RGBA4444
...
Not used by any hardware driver. ARGB4444 and ARGB4444_REV remain.
2009-09-30 21:04:17 -06:00
Brian Paul
3fa7dbf368
mesa: remove GLchan-based formats; use hw 8-bit/channel formats instead
...
Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
2009-09-30 21:00:16 -06:00
Brian Paul
74ae14a2bd
mesa: move texel fetch/store into new texfetch.[ch] files
2009-09-30 20:47:54 -06:00
Brian Paul
884d1abb2a
st/mesa: update comment
2009-09-30 20:36:25 -06:00