Commit Graph

12268 Commits

Author SHA1 Message Date
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
Zou Nan hai 7233eabaf0 [i915] GL_DEPTH_TEXTURE_MODE fix 2008-03-20 17:47:02 +08: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
Alex Deucher 65c4ced1cc Radeon 9500 (0x4144) only has one pipe
confirmed by Reid Linnemann <lreid@cs.okstate.edu>
2008-03-19 18:10:47 -04:00
Brian b5292b4d99 x86_init_func_size() returns int to indicate success/fail (bug 15119) 2008-03-19 09:52:08 -06:00
Brian 29054676a0 s/x86_init_func/x86_init_func_size (fixes bug 15119) 2008-03-19 08:38:28 -06:00
Zou Nan hai 947312e464 [i915] arb point sprite only support in i965 2008-03-19 16:32:29 +08:00
Zou Nan hai c62f504eb6 [i915] fix fragment.position 2008-03-19 16:29:47 +08:00
Eric Anholt b790b24ff9 [i915] Bug #13634: Fix bugs in 945 cube mipmap layout.
The most egregious, and the one the bug report and failure in the cubemap
demo were about was introduced with intel_mipmap_pitch_align(), where a
"* 2" for the pitch calculation was lost.  The base size < 32 case also
failed to align, which may have caused problems with render to texture.
Another bug would have broken 2x2/1x1 base mipmap levels by placing the
data where the hardware wouldn't look for it.

Other bugs remain with the layout of the small mipmap faces (hardware looks
for them in X,Y,Z,-X,-Y,-Z order along the bottom row, but we lay them out
X,-X,Y,-Y,Z,-Z).
2008-03-18 20:17:56 -07:00
Eric Anholt c2814f2a3f [i915] Add comments about how cube texture layout works. 2008-03-18 20:17:56 -07:00
Eric Anholt 45adf29ed0 [i915] Move miptree layout code into separate functions per target.
Also clean up some other miscellaneous formatting nits while I'm at it.
2008-03-18 20:17:56 -07:00
Eric Anholt e5f50f2fa3 [intel] Clarify miptree layout by using byte offsets to images. 2008-03-18 20:17:56 -07:00
Eric Anholt 363d878519 [945] Remove conditional in 945 3D mipmap layout checking for cube layout. 2008-03-18 20:17:55 -07:00
Alan Hourihane a3b5ae783e set outputs_safe to 0 as it's possible for the code generation
to slip over the allocated memory for the vb.

pull in sse fixes from gallium-0.1
2008-03-19 01:04:32 +00:00
Zou Nan hai f7cfc51b05 Revert "[i965] make stipple pattern continue across GL_LINE_LOOP and GL_LINE_STRIP"
There is no information in GS to determinate when to reset line stipple count, still fallback to software
This reverts commit 5a0314b431.
2008-03-18 17:37:25 +08:00
Xiang, Haihao ae2c31ed66 glx: Add isDirect back to __GLXcontextRec. It is needed
to check whether oldGC is used for direct rendering in
function MakeContextCurrent. However it is possible
oldGC->driContext is already freed. fix bug #14926.
2008-03-18 15:02:57 +08:00
Zou Nan hai 5a0314b431 [i965] make stipple pattern continue across GL_LINE_LOOP and GL_LINE_STRIP 2008-03-18 10:27:20 +08:00
Dave Airlie 48efb769e9 r300: add new rs690 pci id 2008-03-18 10:29:16 +10:00
Andrzej Trznadel 3105bc1d88 [965] Fix fp temp reg release code to not usually release all temps.
Also, use wrapped ffs() instead of native.
2008-03-17 15:56:26 -07:00
Andrzej Trznadel e9809a36aa Fix compat implementation of ffs() to return 1-based bit numbers. 2008-03-17 15:52:08 -07:00
Markus Amsler f2b914298f only set InputsRead bit if input is really used 2008-03-17 08:35:27 -06:00
Markus Amsler d787850ae6 mesa: Add vertex.attrib 0-15 to arb_input_attrib_string. 2008-03-17 12:11:11 +01:00
Markus Amsler c48212fe58 r300: Simplify r300VAPInputRoute1. 2008-03-17 12:03:54 +01:00
Markus Amsler f0c8863dbb r300: Simplify r300VAPInputRoute0, check for valid input. 2008-03-17 12:02:56 +01:00
Zou Nan hai 8d5231a358 [i965] round pointsize to nearest int according to spec 2008-03-17 17:52:26 +08:00
Xiang, Haihao 4a556bcb17 intel: fix the error in commit 7ed1fd5d84 2008-03-17 17:02:42 +08:00
Xiang, Haihao 4478926b3a intel: It is needed to allocating texture memory to accommodate
a texture when calling TexImage with pixels set to NULL pointer.
2008-03-17 16:52:07 +08:00
Xiang, Haihao 7ed1fd5d84 intel: Remove an assertion from intel_miptree_create. TexImage
call with zero width/height/depth matches GL spec.
2008-03-17 16:50:20 +08:00
Xiang, Haihao 0819b25dfb mesa: avoid to unlock an unlocked array in _mesa_PopClientAttrib 2008-03-17 16:48:36 +08:00
Xiang, Haihao 07ff7c2285 mesa: Follow GL spec to draw DEPTH_COMPONENT pixels when
there's no depth buffer. Fix bug #11580
2008-03-17 16:47:42 +08:00
Zou Nan hai b0f681b458 [i965] fix wpos height 1 pixel higher 2008-03-17 16:39:10 +08:00
Kristian Høgsberg 98e13fecd0 Test createNewScreen for NULL, not createNewScreenName in driCreateScreen(). 2008-03-15 14:06:42 -04:00
Brian e80a2888bb init tmpNode to zeros 2008-03-14 14:15:55 -06:00
Brian 868193d54e mesa: fix emit_clamp() so that we don't use an output register as temporary
IR_CLAMP is decomposed into OPCODE_MIN+OPCODE_MAX.  Allocate a temporary
register for the intermediate value so we don't inadvertantly use an output
register (which are write-only on some GPUs).
2008-03-14 13:59:32 -06:00
Xiang, Haihao 42c279a03b glx: fix rotation regression. bug #14963 2008-03-14 15:27:15 +08:00
Xiang, Haihao f94d317d7a intel: fix abort issue with shadowtex demo when use
DEPTH_STENCIL texture. (bug#14952).
2008-03-14 11:50:11 +08:00
Roland Scheidegger 142fcd3a13 fix state.lightprod ambient/specular w value (bug #14983) 2008-03-13 12:43:04 +01:00
Zou Nan hai fcb7cb9e72 [i965] multiple rendering target support 2008-03-13 14:46:38 +08:00
Kristian Høgsberg 9110425c72 libGL: Pull the drawable hash back out in the generic code.
This will be shared between dri and dri2 code.
2008-03-12 02:18:12 -04:00