Commit graph

12064 commits

Author SHA1 Message Date
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
Kristian Høgsberg
94f39f2e7c Add another missing check for uninitialized DRI.
Spotted by Chris Taylor.
2008-03-12 02:04:16 -04:00
Dan Nicholson
f1e1267372 Fix include path for rain demo so glut.h is found 2008-03-11 06:24:56 -07:00
Dan Nicholson
b957655a91 autoconf: Enable xdemos by default when we build libGL
Since the xdemos only link to libGL now, we can enable them for all but
the osmesa driver target.
2008-03-10 16:11:04 -07:00
Jeremy Huddleston
4dfd2dcbe7 Darwin: Fixed small error in darwin config files
(cherry picked from commit a21c61ee8b)
2008-03-10 16:03:29 -07:00
Kristian Høgsberg
fe23dc5eca Move make install logic for libGL back into src/mesa/Makefile.
This makes make install work again for non-glx libGL implementations.
The make install logic is split into three sub-targets: install-libgl,
install-osmesa, install-drivers.  The install target in src/glx/x11
is then implemented using the src/mesa make install-libgl rule.

Thanks to Dan Nicholson for pointing out the breakage.
2008-03-10 18:46:19 -04:00
Kristian Høgsberg
3731159ec6 Only try to call DRI function if DRI got initialized properly. 2008-03-10 18:46:19 -04:00
Jeremy Huddleston
7c7fece977 Darwin: Config/source fixes to now build glxdemo apps and OSMesa
Also added darwin-fat-32bit darwin-fat-all configs and deleted old darwin-x86ppc config
(cherry picked from commit 7120c0089d)
2008-03-10 15:21:39 -07:00
Dan Nicholson
460d25dca1 autoconf: Add autogen.sh from Xorg for easier setup from git
The defacto method to rebuild the autotools and run the generated
configure is an autogen.sh script. It is much more discoverable than the
custom `make configure' used here. The Makefile targets are still useful
for creating tarballs, though. This autogen.sh is copied from Xorg.
2008-03-10 12:36:57 -07:00
Dan Nicholson
ab5750f143 Ignore more demo programs 2008-03-10 12:36:10 -07:00
Brian
9162bc8f48 remove extra #include of assert.h (bug 14932) 2008-03-10 07:43:40 -06:00
Brian
dd0a9203e3 fix parsing of state.texenv.color (bug 14931) 2008-03-10 07:43:40 -06:00
Dave Airlie
20e0a8a1ca dri: fix function call to add new parameter.
This may not be correct but it should get the build going.
2008-03-10 19:13:34 +10:00
Kristian Høgsberg
dcbe215c01 DRI2: Make setTexBuffer take a __DRIdrawable instead of a BO handle.
This fixes a problem where texturing from the same Pixmap more than
once per batchbuffer would hang the DRI driver.  We just use the region
associated with the front left renderbuffer of the __DRIdrawable for
texturing, which avoids creating different regions for the same BO.

This change also make GLX_EXT_texture_from_pixmap work for direct
rendering, since tracking the __DRIdrawable -> BO handle now uses
the standard DRI2 event buffer.  Of course, DRI2 direct rendering
doesn't exist yet.

Finally, this commit bumps the DRI interface version again, accounting
for the change in the DRI_TEX_BUFFER extension and the change in
commit 0bba0e5be7 to pass in the
event buffer head index on drawable creation.
2008-03-09 21:28:04 -04:00
Kristian Høgsberg
180b41594c DRI2: Drop DriverAPI.UpdateBuffer.
__dri2ParseEvents() would determine the kind of event, but then call
UpdateBuffer() in either case, and UpdateBuffer() would then have to
figure that out again to dispatch to HandleBufferAttach() or
HandleDrawableConfig().  Pretty pointless.
2008-03-09 21:22:49 -04:00
Kristian Høgsberg
2d5ea175f7 DRI2: Pass the context instead of the screen to __dri2ParseEvents().
Makes a lot more sense, since the screen is always implicit in the
DRI drawable, but it may not be possible to track down a context from
just a drawable.
2008-03-09 21:19:17 -04:00
Kristian Høgsberg
0bba0e5be7 DRI2: Add event buffer head as an argument to driCreateNewDrawable().
The DRI driver needs to know where in the buffer to start reading.
2008-03-09 21:16:30 -04:00
Brian
810e0549af fix botched test for clearing color buffers (should fix depth peeling regression) 2008-03-09 18:30:07 -06:00
Markus Amsler
29fbf72dbf Set normalized flag for GLubyte arrays in _mesa_VertexAttribPointerNV() 2008-03-09 17:54:32 -06:00
Markus Amsler
507da24767 init vertex weight attrib to (1,0,0,0) 2008-03-09 17:54:32 -06:00