Commit graph

23538 commits

Author SHA1 Message Date
José Fonseca
719984afca llvmpipe: Avoid yet another variable size array. 2009-10-22 19:12:14 +01:00
José Fonseca
ba8c11923a llvmpipe: Define rdtsc for MSVC. 2009-10-22 19:12:14 +01:00
José Fonseca
9aafa1fbd2 llvmpipe: Avoid variable size arrays.
Not really variable size, but MSVC still doesn't like them.
2009-10-22 19:12:14 +01:00
José Fonseca
01b85e2923 llvmpipe: Use the pack/unpack functions for 8bit unsigned norm multiplication. 2009-10-22 19:12:13 +01:00
José Fonseca
4458695bda llvmpipe: Utility function to double the bit width of a type. 2009-10-22 19:12:13 +01:00
José Fonseca
421507de06 llvmpipe: Factor vector packing/unpacking to a separate source file.
These functions will be needed to implement many of the 8bit operations,
and they are quite complex on its own.
2009-10-22 19:12:13 +01:00
José Fonseca
a07437f8a6 llvmpipe: Call util_cpu_detect() from the unit tests. 2009-10-22 19:12:13 +01:00
José Fonseca
4797ce0d19 util: Set cpu endianness too. 2009-10-22 19:12:13 +01:00
Alex Deucher
f8bee0e412 Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa 2009-10-22 12:29:36 -04:00
Zack Rusin
1f5b568fbe st/xorg: cleanup the checks for whether the op is accelerated 2009-10-22 12:21:35 -04:00
Alex Deucher
5e77b61e39 Merge branch 'mesa_7_6_branch' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa 2009-10-22 12:02:31 -04:00
Zack Rusin
c4af8ce69e st/xorg: lots of render fixes
fixes all the blend modes, fixes flushing/finishing semantics, adds
acceleration for the component alpha modes that we can support, fixes
src in mask shader and general cleanups
2009-10-22 11:53:10 -04:00
Chia-I Wu
60cf250d47 egl_glx: Add support for eglWaitClient and eglWaitNative.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
7ffe64a7ae egl_glx: Clean up eglGetProcAddress.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
a206436577 egl_glx: Clean up context functions.
This lifts the requirement that a context must be direct.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
c407c70244 egl_glx: Clean up surface functions.
Separete Drawable and GLXDrawable.  Add support for pbuffer and pixmap
surfaces on GLX <= 1.3.  Remove surface binding code that will never
work.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
78c3a351bc egl_glx: Clean up the initialization code.
Proper detection of GLX extensions.  Convert fbconfigs or visuals in a
more unified way and validate the resulting configs.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
326baecd75 egl: Correct conversion of native visual type.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Ben Skeggs
eebf4b5299 nv50: support 3D class 0x8597, remove redundant unknown chipset detection 2009-10-22 21:56:32 +10:00
Corbin Simpson
511bd5f32b r300g: Check for NULL Draw during flush.
Split from the fastpath WIP.
2009-10-22 00:21:08 -07:00
Andre Maasikas
869e20bcb7 r600: set barrier for tex inst if dst is used earlier, might overwrite it otherwise 2009-10-22 09:45:11 +03:00
Andre Maasikas
a88c9296cb r600: need to export something from PS
Also avoids empty shader for "END" - seems to be somewhat valid fp
 Maybe this can be done differently in the future (fake FRAG_RESULT_COLOR
 already in Map_Fragment_Program() or is there a way to program the chip
 to not hang in case of no exports.
2009-10-22 09:44:03 +03:00
Andre Maasikas
b86302283b r600: add beginnings of ARL instruction 2009-10-22 09:42:42 +03:00
Corbin Simpson
0a8cd4862c r300g: Update comments, function names in r300_state_inlines. 2009-10-21 23:26:02 -07:00
Corbin Simpson
034db65f08 r300g: Update comments, asserts, indents in r300_texture.
I wish I knew enough about textures to really really REALLY fix that file.
2009-10-21 23:23:37 -07:00
Corbin Simpson
5a653ada41 r300g: Remove unused debug flag. 2009-10-21 22:54:52 -07:00
Corbin Simpson
40247d87d2 r300g: Cleanup old static shader state. 2009-10-21 22:53:37 -07:00
Marc Dietrich
b2b239691d gallium/util: fix cpu detection on ppc
As we are compiling with -D_BSD_SOURCE, sigjmp_buf and siglongjmp
should be replaced by the non-sig functions (see man 3 setjmp).
Tested on linux/cell.
2009-10-21 15:15:03 -06:00
Brian Paul
2cc5a0e6bb mesa: added _mesa_dump_renderbuffers() debug code 2009-10-21 15:14:30 -06:00
Patrice Mandin
d364f662c6 nouveau: nv30: Do not use assert to return NULL 2009-10-21 22:01:03 +02:00
Patrice Mandin
cb351bdd6e nouveau: nv30: check number of colour buffers to bind 2009-10-21 21:56:09 +02:00
José Fonseca
ce98860012 llvmpipe: Remove extraneous name in lp_type pre-declaration. 2009-10-21 15:53:37 +01:00
Corbin Simpson
3b8dad47f8 r300g: No debug in r300_state. 2009-10-21 06:52:25 -07:00
Corbin Simpson
6a448a525b r300g: Cleanup header includes. 2009-10-21 06:52:25 -07:00
Corbin Simpson
babadb8bb9 r300g: Don't use getenv; use debug_get_*_option instead. 2009-10-21 06:52:24 -07:00
Corbin Simpson
5a0598f235 r300g: Don't use the hashtable internally.
As osiris pointed out, glxgears slowly gets slower for some reason
when it's enabled, and it's not helping at the moment, so just turn
it off.
2009-10-21 06:52:24 -07:00
Corbin Simpson
b589e39809 r300g: Examine vertex attribute type on HW TCL too. 2009-10-21 06:52:23 -07:00
Corbin Simpson
b21df2620e r300g: Also kill r300_shader_inlines with fire. 2009-10-21 06:52:23 -07:00
Corbin Simpson
58abfebaad r300g: Kill r300_surface with fire.
If you really want to see it again, check the history.
2009-10-21 06:52:22 -07:00
Eric Anholt
d56125a298 intel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).
Bug #24435
2009-10-20 14:52:58 -07:00
Eric Anholt
cbd20e18a0 meta: Fix the BufferSubData in meta clear to be BufferData.
Fixes a 3.4% +/- 1.3% performance regression in my GL demo (n=3).  The
other meta code could probably also use the same treatment.
2009-10-20 13:07:49 -07:00
Marc Dietrich
4b2cf92ad9 cell: fix compilation on cell
s/LERP/LRP/
2009-10-20 11:17:12 -06:00
Vinson Lee
ca940a73a7 mesa: Fix Mac OS build.
strtod_l needs the xlocale.h header on Mac OS. It's possible other
non-Linux OSes would need this header too.
2009-10-20 10:43:49 -06:00
Jakob Bornecrantz
478332b0c1 st/xorg: Move drm init to own function 2009-10-20 18:11:51 +02:00
Jakob Bornecrantz
fc07ca004a trace: Check for destroy before calling it 2009-10-20 17:19:05 +02:00
Jakob Bornecrantz
a9f71b3bba st/xorg: Cleanly shutdown 2009-10-20 17:19:04 +02:00
Mathias Fröhlich
16e21191e2 r300: fix texture size handling with size > 2048
The in kernel texture check fails because of both
bit11 flags being set on 16x16 textures. It tuns out
that these bits are still set and not cleared in the
pp_txpitch field of the texture. The attached patch
at least helps for this case on my machine. It clears
the bit 11 from the pitch field if the texture is smaller
and masks out that hight bits on the conventional width
and height field.

Fixes bug 24584
2009-10-19 11:47:21 -04:00
Robert Noland
8123180ea6 r600: Fix size calculation for 24 bit depth
size was being calculated based on 3 bytes per pixel with 24 bit depth
instead of 4 bytes.  This caused corruption in the bottom 25% of objects.
This finishes fixing the menu/text corruption in compiz/kde4.

Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-19 11:09:10 -04:00
Jakob Bornecrantz
5f8f14e5ca st/xorg: Remove output functions not used 2009-10-19 07:52:16 +02:00
Zack Rusin
b7fbcfdb3b st/xorg: makefile garbage 2009-10-19 23:48:38 -04:00