Commit graph

11890 commits

Author SHA1 Message Date
Eric Anholt
eed5e6f40f [915] Don't attempt our accelerated drawpixels if no color buffer is attached.
Otherwise, glDrawBuffer(GL_NONE); glDrawPixels() results in a segfault when
we try to emit the color buffer state during setup.
2008-02-15 13:43:29 -08:00
Eric Anholt
19420e6c25 [915] Revert broken context creation change from IS_915 commit.
The IS_945 case was left to fall through to the 830 case, along with the
not-recognized-at-all case, making that dead code.
2008-02-15 13:18:09 -08:00
Brian
1d0ddea92f Fix glBindTexture crash (bug 14514) 2008-02-15 13:42:12 -07:00
Adam Jackson
4955325ae9 chmod a-x **/glslnoise.c 2008-02-15 15:05:42 -05:00
Adam Jackson
37e45b9b78 Fix parallel build by making symlinks before makedepend. 2008-02-15 14:59:30 -05:00
Adam Jackson
3ddd339ce3 Fix sis_dri on ia64. 2008-02-15 14:57:51 -05:00
Adam Jackson
49a3483756 Fix build on ia64. 2008-02-15 14:56:32 -05:00
Adam Jackson
cf0d91ae1d Add IS_915(), simplify IS_9XX() a bit. 2008-02-15 14:52:58 -05:00
Eric Anholt
c51eb3ec40 [intel] Bug #13636: Allow recursive buffer mapping in bufmgr_ttm. 2008-02-15 11:51:32 -08:00
Adam Jackson
39bcbe0921 Add E7221 variant to i915. 2008-02-15 14:46:25 -05:00
Adam Jackson
66611f2298 Trivial SELinux awareness. Enable with --enable-selinux.
Avoids AVC warnings when allocating executable memory by first checking
if the current process has permission to do so.
2008-02-15 13:49:12 -05:00
Roland Scheidegger
bf4a0fafc8 fix bug with generated fragment programs if vertex shader is active
When generating a fragment program from fixed function, checking
texUnit->_ReallyEnabled is not sufficient, need texUnit->Enabled too
since the former also represents texture enables from an active vertex
shader.
2008-02-15 17:26:06 +01:00
Xiang, Haihao
83068115e2 i965: don't swizzle fogcoord if FogOption is FOG_NONE.
fix #10788 issue on 965.
2008-02-15 16:13:11 +08:00
Xiang, Haihao
7eef52e975 i915: set fogcoord to (f,0,0,1). fix #10788 issue on 915. 2008-02-15 15:20:45 +08:00
Kristian Høgsberg
6d48779c7e Add TTM buffer object based texture from pixmap implementation.
Currently only implemented for intel hw.
2008-02-14 22:12:51 -05:00
Kristian Høgsberg
5961ed5fbc Add GLXPixmap version of glxgears to show case new GLX Pixmap functionality. 2008-02-14 22:05:55 -05:00
Kristian Høgsberg
c5c73c1b60 Hook up i915 driver to new DRI2 infrastructure. 2008-02-14 17:56:44 -05:00
Kristian Høgsberg
7da5705b09 Add new DRI2 infrastructure. 2008-02-14 17:56:42 -05:00
caner
5047a8ae19 miniglx doc updates 2008-02-14 09:33:26 -07:00
Xiang, Haihao
4813946d36 i965: use setup attributes as inputs when allocating registers
for WM payload.  fix #10767
2008-02-14 13:24:27 +08:00
Zou Nan hai
1202c434d9 [i965] flip point sprite 2008-02-14 11:01:34 +08:00
Zou Nan hai
08fd2488b0 [i965] gl_FrontFacing support 2008-02-14 10:12:03 +08:00
Dave Airlie
eb9da9706e i965: remove unused hal hooks
These don't appear to have ever been used.
2008-02-14 10:44:43 +10:00
Eric Anholt
85063f14ea [965] Fix ARB_occlusion_query from intel_screen.c merge.
It wasn't being initialized at screen setup, so we were getting stub
entrypoints even though it was exposed as enabled.  Fixes arbocclude mesa demo.
2008-02-13 16:08:35 -08:00
Eric Anholt
822b2481ff [intel] Fix 965 rendering with non-TTM by merging intel_ioctl between 915/965.
The 965 path wasn't setting pClipRects for batch submission since it didn't
want kernel cliprect handling before.  The 915 path also grew the INTEL_NO_HW=1
option for testing just driver overhead.
2008-02-13 10:38:05 -08:00
Eric Anholt
ee781a41af When mapping, wait on the buffer's fence, not hardware idle, in bufmgr_fake 2008-02-13 10:34:48 -08:00
Eric Anholt
ee8dfa8964 Remove O(n^2) debugging code from non-debug path of dri_bufmgr_fake. 2008-02-13 10:34:48 -08:00
Xiang, Haihao
e45e338542 _mesa_swizzle_ubyt_image: Don't use single swizzle_copy call
if components don't match. fix #13508
2008-02-13 16:00:25 +08:00
Eric Anholt
9365738c36 [intel] Remove cached reloc data buffer now that it's not a BO.
It's not worth the extra effort to avoid a free/malloc, and we'd rather
auto-size the reloc data buffer at some point so we don't need to have
max_relocs.
2008-02-12 16:06:02 -08:00
Eric Anholt
4e2a0b6aa6 [intel] Fix type of some more flags variables for uint64_t flags.
Harmless since we don't yet have any bits above 31 for flags.
2008-02-12 16:06:02 -08:00
Eric Anholt
da428c709a [intel] Note when BO map/unmap fail with TTM. 2008-02-12 16:06:02 -08:00
Eric Anholt
7ea767f9fa [intel] Fix INTEL_DEBUG=bufmgr after relocation interface fixups. 2008-02-12 16:06:02 -08:00
Eric Anholt
1fd82451eb [965] Remove stale brw_state_cache.c comment and function export. 2008-02-12 16:06:02 -08:00
Brian
22ab7fa466 Fix broken test.
As-is, if the texture was too large for the target, an assertion would fail.
Now check proxy texture first and if it works, then test non-proxy target.
2008-02-12 16:56:18 -07:00
Brian
edc7cfa6e6 Set Min/MaxLod with glTexParameterf, not glTexParameteri 2008-02-12 15:53:37 -07:00
Brian
fb3ca7ee2d tweak incr/decrements amounts for keyboard options 2008-02-12 15:00:14 -07:00
Brian
76295f0c31 press 0,1,2,etc keys for specific bias values 2008-02-12 15:00:14 -07:00
Dan Nicholson
929b6d2ebf glapi: Correct prerequisites for gl_and_glX_API.xml
The indirect_dispatch.h and indirect_table.c source files use
gl_and_glX_API.xml in their generation rather than glX_API.xml, but it
wasn't listed in their prerequisites. In turn, gl_and_glX_API.xml uses
glX_API.xml, but this is already listed in $(COMMON_GLX).
2008-02-12 06:43:23 -08:00
Dan Nicholson
fc67d47708 glapi: Use make automatic variables to clean up the commands
Make use of the make automatic variables $@ (the target) and $< (first
prerequisite) to clean up the commands for the glapi generation. This
improves readability and guards against typos since words are repeated
less frequently.
2008-02-12 06:43:23 -08:00
Dan Nicholson
817af9bec2 glapi: Use variable for indent and flags
Put the path to indent and the flags to call it with in configs/default
rather than in the Makefile. This makes it easier to change the values
globally.
2008-02-12 06:43:23 -08:00
Ben Skeggs
532828b1d3 nouveau: ddx versioning changed 2008-02-12 17:28:31 +11:00
Claudio Ciccani
2c9fdaf729 [directfb] Added RGB444 and RGB555.
Also added color expansion for RGB16, ARGB1555 and ARGB4444.
2008-02-08 12:36:45 +01:00
Claudio Ciccani
c231f8ff35 [glut-directfb] Fixed displaying of single buffered window. 2008-02-08 12:35:08 +01:00
Claudio Ciccani
5edede94bb [glut-directfb] When converting microseconds to milliseconds, round to the next integer. 2008-02-08 12:03:53 +01:00
Eric Anholt
70908a793b [965] Flush icache on new batch, not just new context.
This is required since our buffer manager may now move our
instruction-containing buffers at any batchbuffer emit.
2008-02-07 13:14:59 -08:00
Andy Skinner
5c0c883104 added -altopts to allow overriding all other opts 2008-02-07 13:21:14 -07:00
Eric Anholt
700a77fb48 [915] Fix COS function using same plan as SIN.
The previous COS function failed badly outside of [-pi/2, pi/2].
2008-02-06 15:43:05 -08:00
Eric Anholt
2551a5ee80 [915] Use a quartic term to improve the accuracy of SIN results.
This is described in the link in the comment, and is the same technique that
r300 uses.
2008-02-06 15:40:32 -08:00
Eric Anholt
d98abcbef0 [915] Fix fp SIN function, and use a quadratic approximation instead of Taylor.
The Taylor series notably fails at producing sin(pi) == 0, which leads to
discontinuity every 2*pi.  The quadratic gets us sin(pi) == 0 behavior, at the
expense of going from 2.4% THD with working Taylor series to 3.8% THD (easily
seen on comparative graphs of the two).  However, our previous implementation
was producing sin(pi) < -1 and worse, so any reasonable approximation is an
improvement.  This also fixes the repeating behavior, where the previous
implementation would repeat sin(x) for x>pi as sin(x % pi) and the opposite
for x < -pi.
2008-02-06 15:26:00 -08:00
Eric Anholt
c0e026c809 [965] Bug 14314: assertion failure with with !AIGLX and depth=24 visual. 2008-02-05 11:01:14 -08:00