Commit graph

32847 commits

Author SHA1 Message Date
Chia-I Wu
c1a392ac4c st/glx: Remove a wrong assertion in choose_pixel_format.
There are X visuals that Gallium or the code does not support.  We could
not assert the color format to be supported.  Return PIPE_FORMAT_NONE in
such cases and let the caller handle it.
2010-03-30 11:20:53 +08:00
Brian Paul
8c6f71e01e gallivm: use constant size array, added assertion check 2010-03-29 18:13:31 -06:00
Chris Li
5fa0984661 Add test case for lp_bld_printf() 2010-03-29 16:09:27 -07:00
Chris Li
3b1a8d9d5b gallivm: added lp_bld_printf() function 2010-03-29 16:09:27 -07:00
Vinson Lee
90075f34e2 progs/glsl: Add workarounds for Apple GLSL compiler crash.
fsraytrace and vsraytrace were crashing on Mac OS X 10.6.3 in the Apple
GLSL compiler function TPPStreamCompiler::assignOperands. Removing some
const qualifers made the crashes go away.
2010-03-29 14:56:12 -07:00
Vinson Lee
52f7289215 progs/glsl: Remove inline keyword.
Fixes MSVC build.
2010-03-29 13:58:39 -07:00
José Fonseca
bbe6788807 progs/gallium/python: Get tri.py sample working again. 2010-03-29 21:22:23 +01:00
José Fonseca
d0e7aa25a9 st/python: Update for util_draw_vertex_buffer changes. 2010-03-29 21:22:23 +01:00
José Fonseca
69492c3aca st/python: Move surface read/write methods to context. 2010-03-29 21:22:23 +01:00
Zack Rusin
012fabca72 gallivm: make sure that the alloca's are the very first thing in the function
otherwise mem2reg can't put them in registers
2010-03-29 16:18:16 -04:00
George Sapountzis
625e024b18 st/dri/sw: add drisw_api similarly to dri1_api
I am pretty sure that this is in gallium spirit, so commit. Thanks to Chia-I
for suggesting this.
2010-03-29 21:06:54 +03:00
George Sapountzis
6cc5fbd76b ws/sw/dri: s/xm/dri_sw/ 2010-03-29 21:06:53 +03:00
Brian Paul
909f0b356e progs/glsl: improve the mouse drag/rotate code a little 2010-03-29 11:47:38 -06:00
RALOVICH, Kristóf
8ca937fc3b progs/glsl: let the mouse rotate the scene 2010-03-29 11:47:38 -06:00
Brian Paul
1cbd510688 glsl: avoid using rcp in length() functions
See prev commit for related info.
2010-03-29 11:47:38 -06:00
Brian Paul
ab0b9f80f4 glsl: remove rcp from sqrt()
Per a patch from Marek Olšák, we can simply multiply the incoming
value by 1/sqrt(x) instead of using rcp.

We're keeping the x==0 check to avoid generating NaN for sqrt(0).
2010-03-29 11:47:38 -06:00
José Fonseca
588dd187c4 Revert "python: Temporarily disable python state tracker until transfers are done by contexts"
This reverts commit 50a7786619.
2010-03-29 17:52:10 +01:00
José Fonseca
f3cb08f3dd i965g: util_format_is_compressed() -> util_format_is_s3tc(). 2010-03-29 17:31:34 +01:00
José Fonseca
cfbbe244d7 mesa/st: util_format_is_compressed() -> util_format_is_s3tc(). 2010-03-29 17:31:34 +01:00
José Fonseca
bade76191a svga: util_format_is_compressed() -> util_format_is_s3tc(). 2010-03-29 17:31:34 +01:00
José Fonseca
28cf5e1191 r300: UTIL_FORMAT_LAYOUT_COMPRESSED -> UTIL_FORMAT_LAYOUT_S3TC. 2010-03-29 17:31:34 +01:00
José Fonseca
b9ad95d3ee util: Distinguish between the different compression formats.
In particular, all current uses of util_format_is_compressed() actually
mean s3tc.
2010-03-29 17:31:34 +01:00
Michal Krol
37877b192e softpipe: Map GS constants, too. 2010-03-29 16:06:10 +02:00
Marek Olšák
1c2912ee7a r300g: print configurable debugging info on non-debug builds 2010-03-29 03:33:28 +02:00
Vinson Lee
5f1699e9d5 swrast: Remove unnecessary header. 2010-03-28 15:57:23 -07:00
Vinson Lee
21a96a55d6 progs: Comment out gallium/raw/SConscript from progs/SConscript.
Commit db5c2235d1 broke the default SCons
build.
NameError: name 'graw' is not defined:

This patch allows the default SCons build to work again until a proper
fix is available.
2010-03-28 13:52:11 -07:00
Keith Whitwell
1cf669db59 progs/raw: add note about accessing utility functions 2010-03-28 10:42:38 -07:00
Keith Whitwell
d0d73a38da ws/xlib: Call XFlush after PutImage
Want to see the results.
2010-03-28 10:42:38 -07:00
Keith Whitwell
db5c2235d1 gallium: new raw gallium interface to support standalone tests
Provides basic window system integration behind a simple interface,
allowing tests to be written without dependency on either the driver
or window system.

With a lot of work, could turn into something like glut for gallium.
2010-03-28 10:42:38 -07:00
Keith Whitwell
f97f46f269 aux/tgsi: fix some minor glitches in string routines
Not sure why we are open-coding these rather than using standard
library functions.
2010-03-28 10:42:38 -07:00
Keith Whitwell
42ab3f6fd2 st/python: updates for recent interface changes
Still problems at runtime with vertex elements, etc.

Building still disabled.
2010-03-28 10:42:38 -07:00
George Sapountzis
a24fc90703 drisw: probably better hack for stride and some comments 2010-03-28 19:30:54 +03:00
José Fonseca
c42fe8cd27 util: Update MSDN links. 2010-03-28 17:16:34 +01:00
Luca Barbieri
add226ea44 gallium/docs: fix formatting mistakes in d3d11ddi.txt 2010-03-28 16:41:54 +02:00
Luca Barbieri
d142e8f9d3 gallium/docs: add comparison between Gallium and Direct3D 11 DDI interfaces
Feel free to check it and improve it if necessary.
2010-03-28 01:28:24 +01:00
Marek Olšák
4a16d325eb r300g: handle TGSI_OPCODE_RET as END 2010-03-28 00:07:45 +01:00
Marek Olšák
feb8d99593 r300g: disable cliprects
Thanks to Nicolai Hähnle for explaining this register!
2010-03-27 22:41:42 +01:00
George Sapountzis
a7109625aa drisw: update comment 2010-03-27 23:36:18 +02:00
Marek Olšák
4b8d348076 r300g: print errors even on non-debug builds
We really need to get these into bug reports.
2010-03-27 22:28:25 +01:00
Chia-I Wu
0a82fadcdd egl: Make _eglBindContextToSurfaces more readable.
There is no effective changes given how the function is called.  It is
still not trivial, but it should be more readable and resemble
_eglBindContextToThread a lot.
2010-03-28 03:37:28 +08:00
Chia-I Wu
551bfe7a09 egl: Always return the previously bound context.
When a newly bound context is the same as the previously bound one,
_eglBindContextToThread should still return the context instead of NULL.
This gives the driver a chance to flush the context.
2010-03-28 03:37:28 +08:00
George Sapountzis
3bfa23317c drisw: add comment to libGL about stride 2010-03-27 21:35:25 +02:00
George Sapountzis
f4e561ce12 drisw: make stride issue profound 2010-03-27 20:56:36 +02:00
Vinson Lee
02ee7c2950 identity: Add id_drm.c to SCons build.
This was missed in commit f7cbaae13d.
2010-03-27 10:08:54 -07:00
Chia-I Wu
077570c12b st/egl: Fix missing symbols.
ximage backend calls gallium_wrap_screen, which requires libidentity.a
and libtrace.a.  There are also some missing symbols in i965 due to the
use of sw wrapper.
2010-03-27 23:54:24 +08:00
Mathias Fröhlich
a43618fdc4 r300g: fix macrotiling for non-square textures
FDO bug #27338.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-03-27 14:06:41 +01:00
George Sapountzis
29ec84b0a8 glx: try swrastg_dri, if swrast_dri fails
This needs a patch for xserver/glx also. An enviroment variable will be added
at some point, it chould be for swrastg only or all gallium drivers.
2010-03-27 14:06:05 +02:00
Corbin Simpson
c8844c5549 r300g: Make SWTCL clear work again.
Kind of surprised that this was as little as it took. Worrying.
2010-03-27 01:13:48 -07:00
Vinson Lee
42f14a76a6 r300g: Remove unnecessary header. 2010-03-26 23:54:16 -07:00
Vinson Lee
9503006285 gallium: Fix Windows SCons build. 2010-03-26 18:58:44 -07:00