Keith Whitwell
aff4cf19a7
draw: cope with binding NULL vertex shader (on context delete, for instance)
2008-03-09 20:23:05 +00:00
Keith Whitwell
d8d6569e28
cso: fix line endings
2008-03-09 20:23:04 +00:00
Keith Whitwell
ac87bc1835
cso: Use MALLOC
2008-03-09 20:23:04 +00:00
Keith Whitwell
5d802d8c84
cso: add a higher-level interface which does all pipe interactions to set a given state
2008-03-09 20:23:04 +00:00
Keith Whitwell
99691f38c2
gallium: add some commonly implemented bits of hw state
2008-03-09 20:23:03 +00:00
José Fonseca
5d1fc69041
scons: Ensure the paths to the WINDDK's executables are found before the MSVC ones.
2008-03-09 20:14:31 +00:00
Brian
eecb3ab7c6
replace // comment with /* */ (bug 14916)
2008-03-09 10:41:50 -06:00
Brian
99a1260985
added info about checking out gallium-0.1 for cell code
2008-03-09 10:39:00 -06:00
Kristian Høgsberg
3d28a2690f
Use _X_HIDDEN to hide a bunch of leaked symbols.
2008-03-08 22:28:01 -05:00
Kristian Høgsberg
020c64b2cf
Move DRI context functions into dri_glx.c.
...
Also drop isDirect flag; if gc->driContext is non-NULL, it's direct.
2008-03-08 21:57:29 -05:00
Kristian Høgsberg
20b9230ce1
Move DRI drawable creation into dri_glx.c.
2008-03-08 21:02:23 -05:00
Kristian Høgsberg
92d2a78f8d
Introduce __GLXDRIscreen so we can start moving function pointers in there.
...
Temporarily rename the __DRIscreen member to __driScreen. Eventually,
we'll move that into __GLXDRIscreen and only access it in dri_glx.c.
2008-03-08 20:34:24 -05:00
Kristian Høgsberg
53dc863636
Move DRI specific parts of CreateContext into dri_glx.c.
2008-03-08 20:02:22 -05:00
Kristian Høgsberg
a1ea6f6198
Convert driCreateScreen and driDestroyScreen to function pointers.
...
We avoid leaking the symbols and will be able to replace them with
DRI2 implementation later on.
2008-03-08 19:15:50 -05:00
Kristian Høgsberg
425f9ed44e
Abstract __DRIdisplayPrivateRec away in dri_glx.c.
...
This patch moves __DRIdisplayPrivateRec definition into dri_glx.c and
let's dri_glx.c allocate the __DRIdisplay struct pointer to from
__GLXdisplayPrivate.
A small step towards moving more of the dri functionality into dri_glx.c.
2008-03-08 19:10:21 -05:00
Kristian Høgsberg
f585cb29b8
Make __glXCloseDisplay static instead of prototyping it to avoid warning.
2008-03-08 17:38:02 -05:00
Kristian Høgsberg
47d563006d
Move libGL install target to the libGL Makefile.
2008-03-08 17:19:39 -05:00
Kristian Høgsberg
6fd82f6fbd
Simplify LIBGL_DRIVERS_PATH walking.
2008-03-08 16:19:39 -05:00
Kristian Høgsberg
0f2723cacb
Simplify dri loading code by eliminating dlopen "cache".
...
No need to jump through hoops to track __DRIdrivers and avoid dlopening the
same .so more than twice, dlopen() does this internally. Besides, we
were already bypassing this and dlopening drivers for each screen,
whether or not they were already dlopened.
2008-03-08 16:19:39 -05:00
Kristian Høgsberg
890d44e54f
libGL: Consolidate DRI initialization in dri_glx.c
...
Move a lot of code over from glx_ext.c.
2008-03-08 16:19:39 -05:00
José Fonseca
fc96aec9b7
gallium: Document debug_printf usage.
2008-03-08 17:36:19 +00:00
Dan Nicholson
db7fc63110
autoconf: Print GCC include path directly and be more robust using it
...
Rather than constructing the GCC include path from `-print-search-dirs',
we can get the path directly from `-print-file-name=include'. This is
used in the Linux kernel build, for example. If no output is returned
from the command, then we don't append a -I path the the makedepend
options.
2008-03-07 11:48:09 -08:00
Kristian Høgsberg
1e6943cf55
[intel] Only enable GL_EXT_texture_sRGB on i965.
...
Fixes #14799 .
2008-03-07 13:46:05 -05:00
Ben Skeggs
66ba021e9f
nouveau: another "argh gallium fscks with assert" fix
2008-03-07 22:48:26 +11:00
Zou Nan hai
7676980d38
[i965] fix fd.o bug #11471 and #11478
...
1. Follow EXT_texture_rectangle with YCbCr texture
2. swap UV component for MESA_FORMAT_YCBCR
2008-03-07 15:11:28 +08:00
Xiang, Haihao
5982d39799
i965: use RGB565 to render a bitmap if Depth is 16
2008-03-07 09:48:11 +08:00
Michal Krol
8143adafdd
gallium: Surround externs with extern "C".
2008-03-06 19:57:41 +01:00
Xiang, Haihao
d76545de57
i965: Fix double free issue to pass glean/maskedClear test
2008-03-06 13:23:27 +08:00
Xiang, Haihao
771ba66629
i965:fix segfault issue when clearing the window which
...
is created with mode GLUT_SINGLE|GLUT_RGB|GLUT_DEPTH.
This issue is introduced by 20b8bff49c
2008-03-06 09:45:51 +08:00
Ben Skeggs
82f22d9e14
nv30: a couple of vtxprog fixes
2008-03-06 11:52:25 +11:00
Eric Anholt
fe91c05b54
[intel] Add a driconf option to cache freed buffer objects for reuse.
...
This is defaulted off as it has potentially large memory costs for a modest
performance gain. Ideally we will improve DRM performance to the point where
this optimization is not worth the memory cost in any case, or find some
middle ground in caching only limited numbers of certain buffers. For now,
this provides a modest 4% improvement in openarena on GM965 and 10% in openarena
on GM945.
2008-03-05 16:29:14 -08:00
Keith Whitwell
4528287e04
gallium: michel's patch to rework texture/sampler binding interface
...
Bind all the samplers/textures at once rather than piecemeal.
This is easier for drivers to understand.
2008-03-05 10:56:49 +01:00
José Fonseca
b1922de9f3
gallium: Use custom vsnprintf in WINDDK.
...
EngDebugPrint does not handle float point arguments, so we need to use
our own vsnprintf implementation.
2008-03-05 11:39:11 +01:00
José Fonseca
5aa108214a
scons: Preliminary code for quieting command lines.
2008-03-05 11:39:11 +01:00
Christoph Brill
fc21e9cdd0
r300: replace some hard coded mask by define in stencil area
2008-03-04 21:52:49 +01:00
Christoph Brill
701ccf6f29
r300: Fix some issues with masks in stencil buffer area
2008-03-04 21:37:56 +01:00
Keith Whitwell
19cc2e3631
draw: dont' compute clipmask or apply viewport when not clipping (rename bypass_clipping to coords_in_window_space?
2008-03-04 18:51:50 +01:00
Michel Dänzer
e2a91c294e
gallium: Add missing file for scons build.
2008-03-04 18:32:43 +01:00
Michel Dänzer
5b9b5c850f
gallium: Fix scons condition for building the xlib winsys.
2008-03-04 18:32:16 +01:00
Michel Dänzer
1cd2623a53
gallium: Make scons build gallivm before other auxiliary modules.
...
This ensures that the gallivm symbols referenced by the draw module are
resolved properly.
2008-03-04 18:30:12 +01:00
Michel Dänzer
72c9d4a660
gallium: Only use C++ compiler for linking when using LLVM.
...
Otherwise, the shared objects needlessly link against the C++ runtime
environment.
2008-03-04 18:28:23 +01:00
José Fonseca
9a76798112
scons: Force C++ linkage.
...
We have some C++ code (LLVM), which must be linked with g++ on certain
platforms. SCons tries to guess when to use g++ by looking to the source files,
but this fails, if the C++ code is not list in the command line, but inside in
the library.
2008-03-04 12:40:18 +01:00
Kristian Høgsberg
3d608c7a2d
[dri2] Add tail pointer to reemitDrawableInfo callback.
...
When the DRI doesn't parse the event buffer for a while, the X server
may overwrite data that the driver didn't get a chance to look at. The
reemitDrawableInfo callback requests that the X server reemit all info
for the specified drawable. To make use of this, the drive needs to know
the new tail pointer so it know where to start reading from.
2008-03-03 19:16:20 -05:00
Kristian Høgsberg
4f7a75cc8a
[dri2] Optimize event parsing to skip obsolete events.
...
This also fixes the problem where the X server does multiple resizes before
the DRI driver gets the events. The obsolete buffer attach events then
reference already destroyed buffer objects.
2008-03-03 19:16:20 -05:00
Kristian Høgsberg
36c26d321b
[intel] Silence unused variable warning when compiling for i965.
2008-03-03 19:15:52 -05:00
José Fonseca
13174c195e
scons: Make command line arguments effective again.
2008-03-03 18:54:45 +01:00
Keith Whitwell
689e1c5d50
win32: don't prepend all debug with gallium3d
2008-03-03 17:50:10 +01:00
Keith Whitwell
800d13df72
draw: add fetch for bgra ubyte surfaces
2008-03-03 17:50:09 +01:00
Keith Whitwell
9506ac8235
gallium: remove obsolete comment
2008-03-03 17:50:09 +01:00
Keith Whitwell
f4e91c3432
gallium: document user_buffer_create a little
2008-03-03 17:50:09 +01:00