Commit graph

13619 commits

Author SHA1 Message Date
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
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
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
Zack Rusin
a9c40f833e refactor code calling builtins and implement dp4 2008-03-01 15:28:00 -05:00
Zack Rusin
17f543fc45 make the first builtin work (dp3) 2008-03-01 15:28:00 -05:00
Zack Rusin
e884c7ed9a start implementing start of bultins 2008-03-01 15:28:00 -05:00
Brian Paul
07d6347e8a gallium: change st->state.sampler_texture[] to store pipe_texture pointers
This is a better fix for the previous check-in.
Fixes texadd.c conform test, and probably other bugs.
2008-02-29 16:16:16 -07:00
Brian Paul
c8bca8d8a9 gallium: fix update_textures() bug in pipe_texture binding logic
The 'st' pointer might not have changed, but st->pt might have.  The dirtyData flag
will indicate when that's happened, so check it.
2008-02-29 15:38:43 -07:00
Brian Paul
5240cebb23 gallium: fix line emit order for unfilled tris
A tri drawn with GL_LINE_LOOP and GL_POLYGON w/ fillmode=GL_LINE should produce
the same results when line stipple is enabled.  Results are correct now.
2008-02-29 13:04:53 -07:00
Brian Paul
6da943d204 gallium: point rast coord tweak 2008-02-29 13:04:53 -07:00
Brian Paul
b8ee90e05a gallium: need precalc_flat=1 for wide lines 2008-02-29 13:04:52 -07:00
Michal Krol
4d22330837 scons: List sp_screen.c. 2008-02-29 20:18:45 +01:00
Brian Paul
2a121e8e22 gallium: tweak coords for wide lines 2008-02-29 11:37:12 -07:00
Brian Paul
0b47eb4808 gallium: fix glCopyPixels(GL_DEPTH) when Z format conversion is needed 2008-02-29 11:10:20 -07:00
Brian Paul
a41b77f4fe gallium: added pipe_get/put_tile_z() functions 2008-02-29 11:10:20 -07:00
Brian
78220aea86 gallium: remove the ugly pipe->draw stage lookup code in aaline/point/pstipple stages
Added a void *draw ptr to pipe_context.  Probably look for a better solution someday.
2008-02-29 10:08:16 -07:00
Brian
ebe3b34ad2 cell: convert all points/lines to tris for the time being
Allows more programs to look correct.  We'll want native points/lines someday.
2008-02-28 18:02:05 -07:00
Brian
6144c2bd65 cell: remove obsolete texture field 2008-02-28 17:57:54 -07:00
Brian
370eca12ad Added calibrate_rast.c program
Measures rasterization of points/lines/tris and suggests fixes/biases when
something doesn't meet spec.
2008-02-28 17:55:26 -07:00
Brian Paul
b233b1e2dc gallium: new wide point/line stages (missed in prev commit) 2008-02-28 17:54:42 -07:00
Brian Paul
a1a1395488 gallium: split draw_wide_prim stage into separate point/line stages.
This fixes a validation/code-path problem.  Enabling the stage for the sake
of wide points also inadvertantly caused wide lines to be converted to tris
when we actually want them passed through, such as for the AA line stage.
This is just cleaner now.
Also, replace draw_convert_wide_lines() with draw_wide_line_threshold() as
was done for points.  Allows for 1-pixel lines to be converted too if needed.
2008-02-28 17:49:22 -07:00
Brian Paul
70126588cf gallium: fix surface/texture format conversion in st_CopyPixels
If the src buffer's format isn't supported as a texture format, find a different
texture format.
2008-02-28 11:36:54 -07:00
Brian Paul
01e53be2b8 gallium: added a texture format sanity check/assertion in st_texture_create()
make sure the tex format is actually supported by the driver.
2008-02-28 11:36:54 -07:00
Brian Paul
476cc931f2 galliums: s/uint/enum pipe_format/ 2008-02-28 11:36:54 -07:00
Brian Paul
9a264a056a gallium: in GL_SELECT mode, update hitflag in rasterpos 2008-02-28 11:36:54 -07:00
José Fonseca
e280bd50cc gallium: Fix MSVC warnings. 2008-02-28 21:25:54 +09:00
Michel Dänzer
626b8d177b Make sure struct pipe_screen is declared. 2008-02-28 09:07:38 +00:00
Keith Whitwell
10d83df3a9 gallium: State tracker cleanups wrt clears. 2008-02-28 09:07:03 +00:00
José Fonseca
2573f0e5d6 Convert crlf->lf line endings.
Windows/DOS users should enable core.autocrlf from now on.
2008-02-28 15:53:13 +09:00
José Fonseca
2d8d472426 Disable autocrlf on Visual Studio project files. 2008-02-28 15:52:30 +09:00
José Fonseca
5c0a089a5d gallium: Remove extra level of indirecttion. 2008-02-28 13:52:30 +09:00
José Fonseca
510bc3535c gallium: Fix sign/unsign comparison. 2008-02-28 13:06:52 +09:00
Jose Fonseca
be2c419111 gallium: Convert CRLF -> LF.
DOS/Windows users should not commit text files with CRLF line endings
but use instead

  git config --global core.autocrlf true
2008-02-28 12:57:18 +09:00
Brian
d8bf051c8b gallium: remove unneeded pipe ptr from pipe_texture 2008-02-27 18:49:35 -07:00
Brian
1774b177b8 gallium: added draw_num_vs_outputs() to query number of post-transform vertex attribs 2008-02-27 18:46:54 -07:00
Brian
627efcaa80 gallium/i965: remove more dependencies on pipe_shader_state semantic info 2008-02-27 17:21:29 -07:00
Brian
46da2f42a8 gallium/i965: added const to silence warning 2008-02-27 17:21:01 -07:00
José Fonseca
308f11f991 scons: Build mesa source with c99. 2008-02-28 08:18:32 +09:00
Brian
d612b6fa9b cell: fix minor get_tex_surface() breakage 2008-02-27 16:17:15 -07:00
Brian
dacf91fe58 gallium/i965: remove brw_shader_info struct
The info it contained is now found in tgsi_shader_info.
Added a few assertions to catch potential misunderstandings about register
counts vs. highest register index used.
2008-02-27 16:22:08 -07:00