Commit graph

14452 commits

Author SHA1 Message Date
Eric Anholt
23db6287d4 Bug #13492: Only call ProgramStringNotify if program parsing succeeded.
Wine intentionally tries some out-of-spec programs to test strictness, and
calling ProgramStringNotify on the results of a failed program parse resulted
in crashes in the 965 driver.
2008-05-14 16:37:20 -06:00
Brian
217e5b5551 fix swizzle error test (bug 11881) 2008-05-14 16:35:51 -06:00
Brian Paul
087fa7e390 fix-up inlined/non-inlined function inconsistencies
cherry-picked from master
2008-05-14 16:32:18 -06:00
Brian Paul
7aed3751c7 mesa: rm unneeded file 2008-05-14 16:30:15 -06:00
Brian Paul
215a847e3f mesa: prefix rm command with - 2008-05-14 16:27:34 -06:00
Brian Paul
753f979a32 rewrite some of the mat*mat, mat*vec intrinsics
Also, remove obsolete matrix codegen code.

cherry-picked from master
2008-05-14 16:20:28 -06:00
Brian Paul
8cf38c7e6a mesa: regenerate slang built-in data (asin(vec4) fix) 2008-05-14 16:07:18 -06:00
Brian Paul
a9997657b9 mesa: fix missing w assignment in asin(vec4) 2008-05-14 16:06:10 -06:00
Brian Paul
26988c170c mesa: use CALLOC_STRUCT() 2008-05-14 16:05:48 -06:00
Brian Paul
afa4c792b0 mesa: sync up swrast/s_fragprog.c with master 2008-05-14 16:05:25 -06:00
Brian Paul
4f915b0f83 mesa: updated comment 2008-05-14 16:04:51 -06:00
Brian Paul
05cacc06cc mesa: minor bug fixes from master 2008-05-14 16:04:29 -06:00
Brian Paul
fcb23d7db7 mesa: dead code removal 2008-05-14 16:04:00 -06:00
Brian Paul
c4ceb4e4f3 mesa: minor bug fixes, null ptr checks, dead code removal 2008-05-14 16:03:38 -06:00
Brian Paul
6c536b9924 mesa: fix errors in LightModelProduct state, other misc error cases 2008-05-14 16:02:20 -06:00
Brian Paul
f84005c0a1 mesa: glUniform(location==-1) is not an error 2008-05-14 16:01:31 -06:00
Brian Paul
d791386b09 fix some additional program refcounting bugs
cherry-picked from master
2008-05-14 12:19:22 -06:00
Zack Rusin
19f15277d1 adjust llvm code to the changes in 2.3 2008-05-12 17:17:18 -04:00
Brian
6807b4f6b1 gallium: optimize the flush_spans() function 2008-05-10 12:46:55 -06:00
Brian
140b3f7f9c gallium: remove unused code 2008-05-10 12:46:55 -06:00
Michel Dänzer
7462f0557f draw: Fix number of vertices allocated in draw_pt_emit(). 2008-05-09 18:15:49 +01:00
Keith Whitwell
1a03812fb5 draw: mimize cost of translate key compares, use cache universally 2008-05-09 13:10:15 +01:00
Keith Whitwell
80474d576c translate: helper functions for mimizing cost of key compares 2008-05-09 13:09:58 +01:00
Keith Whitwell
b514f5f3ba draw: only fill in / compare the part of the translate key we're using.
It's quite a big struct & we examine it a lot (too much).  Reduce
the impact of this by just looking at the active part where possible.
2008-05-08 22:15:00 +01:00
Keith Whitwell
fec1d215f6 xlib: more SP_NO_RAST support
For some resaon normal (non-display-buffer) buffers are being allocated
through Xshm...  Bypass at least for SP_NO_RAST
2008-05-08 22:14:59 +01:00
Keith Whitwell
9002cdb48e softpipe: don't calc det if NO_RAST set 2008-05-08 22:14:59 +01:00
Michel Dänzer
1dfb3d4729 cso_cache: Fix test for currently bound blend state. 2008-05-08 19:00:11 +01:00
Brian Paul
deceeca18d mesa: update/add newer GL ES headers 2008-05-07 08:47:55 -06:00
Brian
05370685fe mesa: free shader program data before deleting shader objects.
Picked from master.
Fixes mem corruption seen when glean/api2 test exits.
2008-05-06 23:08:02 -06:00
Brian
103ae5d16f gallium: implement full reference counting for vertex/fragment programs
Use _mesa_reference_vert/fragprog() wherever we assign program pointers.
Fixes a memory corruption bug found with glean/api2 test.
Another memory bug involving shaders yet to be fixed...
2008-05-06 22:13:06 -06:00
Brian
10f6ae0355 mesa: comments, whitespace 2008-05-06 19:16:26 -06:00
Brian Paul
66f703dca9 gallium: change calculate_first_last_level() to match gallium-tex-surfaces branch 2008-05-06 08:40:41 -06:00
Alan Hourihane
f77442fbd3 fix _mesa_ffs for alternative compilers 2008-05-05 23:09:38 +01:00
Alan Hourihane
736374c105 declare atoms as extern 2008-05-05 23:08:59 +01:00
Brian Paul
736f535b4f gallium: fix warnings 2008-05-03 09:26:25 -06:00
Brian Paul
bc57a7c9f7 Press <space> to reset limit/bias values, clean-up limit/bias printf 2008-05-03 09:10:44 -06:00
Brian Paul
3837d401cc gallium: fix sampler->max_lod computation 2008-05-03 09:07:11 -06:00
Brian Paul
3668d20a9f gallium: fix computation of sampler->min_lod
The texture BaseLevel is accounted for in texture layout so it doesn't factor
in here.  May also need to adjust max_lod...
2008-05-03 08:58:44 -06:00
Brian Paul
6e004e973b gallium: remove 0.5 vertex biases in set_vertex_data()
These should not be needed and were causing garbage to appear along the
edges of the mipmap images.
2008-05-02 14:00:35 -06:00
Brian Paul
07aaf3a7a7 gallium: remove obsolete PIPE_CAP_BITMAP_TEXCOORD_BIAS 2008-05-02 14:00:08 -06:00
Brian Paul
ce50940173 gallium: minor code, comments clean-up 2008-05-02 10:43:29 -06:00
Brian Paul
479d19f5a2 gallium: in st_finalize_texture() check texture dimensions
Check dimensions in addition to target, format, etc.
Fixes a bug where we failed to detect a change in texture image sizes and
wound up using the old texture data.
2008-05-02 10:38:39 -06:00
Brian Paul
3d53d38d5e gallium: new debug code (disabled) 2008-05-02 10:37:20 -06:00
Brian Paul
cc2af38f2a gallium: fix typos, comments, whitespace 2008-05-02 09:31:38 -06:00
Brian Paul
cff8d3bdcb gallium: remove ^M (CR) chars 2008-05-02 09:31:38 -06:00
Brian Paul
e9513bd403 gallium: code movement (XSHM code) 2008-05-02 09:31:38 -06:00
Brian Paul
522f11b632 set TextureID = NULL after deleting the array 2008-05-02 09:31:38 -06:00
Brian Paul
8a5bf456dc gallium: comments, clean-ups 2008-05-02 09:31:38 -06:00
Michel Dänzer
d4074c509b gallium: Reallocate pipe_texture in st_TexImage if the texture object was used.
Fixes problems with interleaved glTexImage and rendering calls.
2008-05-02 16:22:20 +01:00
Alan Hourihane
be8a42b4fc snprintf -> util_snprintf 2008-05-02 15:26:45 +00:00