Commit graph

12307 commits

Author SHA1 Message Date
Michal Wajdeczko
76430815a7 [intel] Use mesa texmemory functions to allocate teximage Data.
Failure to consistently do so resulted in mismatched aligned versus
unaligned alloc/free.
2008-03-26 13:33:34 -07:00
Eric Anholt
b4cbf6983e [965] Don't let the negate flags of src0 affect 1 constants in precalc_dst/lit
This patch is a variant of a submission by Michal Wajdeczko to fix
oglconform fpalu failures.
2008-03-26 13:23:43 -07:00
Michal Wajdeczko
13a6f73a64 [965] Correctly set read mask for OPCODE_SWZ in pass1.
While OPCODE_SWZ has usually been optimized away in pass0, it may still
exist if a SWZ with dst saturate was emitted in pass_fp.  Fixes an error
in oglconform fpalu.c.
2008-03-26 13:00:03 -07:00
Eric Anholt
5cc56cbad8 [965] Clean up whitespace and dead code from do_unfilled change. 2008-03-26 12:59:17 -07:00
Oliver McFadden
e49ec6e2a4 r300: Indented the vertex program code... 2008-03-26 08:01:13 +00:00
Oliver McFadden
82770b8c83 r300: Cleaned up the default vertex program code with longer lines. 2008-03-26 07:53:16 +00:00
Oliver McFadden
a2c1aad27d r300: Removed the last of the duplicate vertex program macros. 2008-03-26 07:28:29 +00:00
Oliver McFadden
863ab98ac7 r300: Added Copyright lines to the vertex program code. 2008-03-26 07:09:21 +00:00
Zou Nan hai
d24a5254c2 [i915] don't use 4x4 filter for 1D shadowmap 2008-03-26 14:40:30 +08:00
Oliver McFadden
42a04ada10 r300: Renamed the Mesa opcode translation functions. 2008-03-26 06:31:33 +00:00
Oliver McFadden
2ac2911554 r300: Renamed the destination-and-opcode/source macros to more appropriate names. 2008-03-26 06:24:48 +00:00
Brian
d3ebaa41f5 implement glGet/BindAttribLocationARB() for display lists
More such shader functions are needed...
2008-03-25 14:03:52 -06:00
Brian
4e6c2c4f85 updated to version 40 2008-03-25 08:12:19 -06:00
Xiang, Haihao
0e34dcc6df intel: fix the issue "VBO: Cannot allocate memory for a BO" on
965 after merging intel_context.c from i915 and i965. fix bug# 15152.
2008-03-25 17:29:38 +08:00
Brian
816fbeaa81 add GL_READ_FRAMEBUFFER_BINDING_EXT case, regenerate get.c file 2008-03-24 19:56:30 -06:00
Brian
7048545c44 fix wrong values for GL_READ/DRAW_FRAMEBUFFER_BINDING_EXT tokens 2008-03-24 19:56:30 -06:00
Alex Deucher
b469e9e93c R300: fix typo r300 fog reg
Noticed by pzad on IRC
2008-03-24 14:49:43 -04:00
Oliver McFadden
74aee365e3 r300: Merged the constant zero/one source macros. 2008-03-24 12:53:57 +00:00
Oliver McFadden
c75ffff84a r300: Merged the Vector and Math Engine opcode macros. 2008-03-24 12:53:57 +00:00
Eric Anholt
c986421694 autoconf: Add a workaround for second AC_PROG_PATH not overwriting results. 2008-03-22 11:03:16 -07:00
Brian
dc6fab90b4 use ctx->Driver.DeleteProgram() in a few more places 2008-03-22 10:27:03 -06:00
Brian
731dec1bd5 delete default programs with ctx->Driver.DeleteProgram() 2008-03-22 09:13:28 -06:00
Dave Airlie
9566cf0e2f r500: fixup fake shader to keep gears going 2008-03-22 11:00:25 +10:00
Dave Airlie
4feac4e40e r500: enable gb tiling for r5xx 2008-03-22 10:56:48 +10:00
Dave Airlie
583ed4bde3 r500: fixup support for emitting fragment program to hardware.
Also fixup the constant emission

this breaks glxgears from what I can see but its another step to correctness
2008-03-22 10:55:32 +10:00
Michal Wajdeczko
c60b5dfde8 [965] Avoid emitting dead code for DPx/math instructions.
The pass1 optimization stage clears out writemasks and registers, but the
instructions themselves are still being processed at this stage, and could
have resulted in them still being emitted.
2008-03-21 14:19:30 -07:00
Michal Wajdeczko
bb419970ef [965] Improve pinterp performance by delaying reads of just-written regs. 2008-03-21 14:19:30 -07:00
Michal Wajdeczko
6c1a98e97a [965] Fix negating of unsigned value in emit_wpos_xy. 2008-03-21 14:19:30 -07:00
Michal Wajdeczko
5f10438f2d [965] Add MVP code for position invariant vertex programs.
This fixes the arbvptorus demo.
2008-03-21 14:19:30 -07:00
Michal Wajdeczko
31fe7cf5e3 [win32] Use native aligned memory allocation functions. 2008-03-21 14:19:30 -07:00
Michal Wajdeczko
aa8a7ef823 [965] Shuffle state flags to match the order we initialize them in. 2008-03-21 14:19:30 -07:00
Michal Wajdeczko
9f6e8e89c8 intel: Use _mesa_ffs wrapper, and fix a use-after-free with INTEL_DEBUG=buf. 2008-03-21 14:19:30 -07:00
Eric Anholt
050c533cbf autoconf: automatically detect if -ldl is required.
This logic was copied from the xserver.
2008-03-21 14:19:30 -07:00
Eric Anholt
bcb61987fb Fix xdemos build on FreeBSD: <sys/types.h> before <netinet/tcp.h> 2008-03-21 14:19:30 -07:00
Eric Anholt
5ad06156b2 Fix autoconf build on FreeBSD: detect gmake, and put -D*_SOURCE under linux. 2008-03-21 14:19:29 -07:00
Brian
d933be6baf Refactor PBO validate/map code.
We always need to do PBO validation, so do that in core Mesa before calling driver routine.
2008-03-21 14:19:28 -06:00
Brian
3c9862d337 include varray.h to silence warning 2008-03-21 13:42:36 -06:00
Brian
a429a25cd5 add a number of PBO validate/map/unmap functions
Helper functions for (some) drivers, including swrast.
2008-03-21 13:41:00 -06:00
Brian
85ea7ff25c Fix some PBO breakage.
In _mesa_Bitmap, can't early return if bitmap ptr is NULL, it may be an offset
into a PBO.  Similarly for _mesa_GetTexImage.
2008-03-21 12:33:28 -06:00
Zou Nan hai
7936c614ab [i965] multiple rendering target fix 2008-03-21 18:16:11 +08:00
Dave Airlie
3eb8e5871f r500: setup fragment program constant emission atom 2008-03-21 17:05:29 +10:00
Zou Nan hai
7233eabaf0 [i915] GL_DEPTH_TEXTURE_MODE fix 2008-03-20 17:47:02 +08:00
Dave Airlie
ed18005a99 r300: add rv530 pci id for the t60p laptop 2008-03-20 14:34:04 +10:00
Dave Airlie
d019f101e8 r300: this code really shouldn't be here.
For R500 just ignore it for now while I do something interesting like
run glxgears.
2008-03-20 14:30:59 +10:00
Dave Airlie
2b8e422b31 mesa: cleanup state emission and rs for r500
trivial clear app now renders
2008-03-20 14:21:10 +10:00
Dave Airlie
9e6e4ae49a r500 RS unit setup 2008-03-20 13:57:22 +10:00
Xiang, Haihao
bff94a91c6 mesa: The span array is only populated in single-pixel
point drawing function.
2008-03-20 11:34:14 +08:00
Eric Anholt
7183ccaa9d [965] Initialize region surface key structure padding.
Fixes valgrind warnings, and potential performance loss from cache misses.
2008-03-19 17:54:06 -07:00
Eric Anholt
7d5f713fa5 [intel] Fix an uninitialized variable access in PRESUMED_OFFSET clearing.
It was harmless, as the only time we need to clear PRESUMED_OFFSET, the
variable had been initialized already.
2008-03-19 17:54:06 -07:00
Brian
e03dd83209 fix IEEE_ONE definition for ICC compiler (bug 15134) 2008-03-19 17:25:50 -06:00