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
Kristian Høgsberg
3c5a1e4c2d
Update libGL DRI loader to latest DRI interface changes.
2008-02-29 16:42:29 -05:00
Kristian Høgsberg
51cd168da4
glxgears: oops, remove accidental commit of glFinish() hack.
2008-02-29 15:33:40 -05:00
Kristian Høgsberg
6cb3f5c4d8
Use __DRIextension mechanism providing loader functionality to the driver.
...
Instead of passing in a fixed struct, the loader now passes in a list
of __DRIextension structs, to advertise the functionality it can provide
to the driver. Each extension is individually versioned and can be
extended or phased out as the interface develops.
2008-02-29 15:05:39 -05:00
Kristian Høgsberg
16242a8007
Reduce the versioning madness required to create a DRI2 screen.
...
Right now the DRI2 screen constructor takes 3 different versions:
DRI, DDX and DRM. This is mostly useless, though:
DRI: The DRI driver doesn't actually care about the DRI protocol,
it only talks to the loader, which in turn speaks DRI protocol. Thus,
the DRI protocol version is of not interest to the DRI driver, but it
needs to know what functionality the loader provides. At this point
that's reflected in the __DRIinterfaceMethods struct and the
internal_version integer.
DDX: The DDX version number is essentially used to track extensions
to the SAREA. With DRI2 the SAREA consists of a number of versioned,
self-describing blocks, so the DDX version is no longer interesting.
DRM: We have the fd, lets just ask the kernel ourselves.
2008-02-29 15:05:39 -05:00
Kristian Høgsberg
5197a31b8e
intel: Set the lock flag early to avoid deadlock.
...
Another regression from the intel_context.c merge.
2008-02-29 15:05:39 -05: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
Ben Skeggs
17f6db9d01
nv40: move "channel context" stuff into nv40_screen
2008-02-29 23:08:01 +11:00
Ben Skeggs
baaae562f0
nouveau: hand nouveau_winsys in with pipe_screen init
2008-02-29 22:54:40 +11:00
Ben Skeggs
84cc07dc89
nouveau: implement pipe_screen
...
Untested on NV3x/NV5x. Quite possibly broken.
2008-02-29 15:03:57 +11:00
Xiang, Haihao
de1e9880f8
i965: use _Current pointer instead of Current pointer.
...
fix double free issue(bug#14710). It also corrects glsl/bitmap demo behavior.
2008-02-29 11:16:21 +08:00
Ben Skeggs
8c77e6f674
Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
2008-02-29 13:24:31 +11: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
Eric Anholt
b39f15b88f
[965] Fix conditional sequencing to allow the frame_buffer_texobj case.
...
Previously the frame_buffer_texobj case would have been bound as a normal
texture, at best resulting in no surface data being associated with it.
2008-02-28 16:04:54 -08:00
Eric Anholt
ec5ca6844b
[intel] Bug #14575 : Unmap buffers when deleting/dataing as required.
...
Otherwise, we would assertion error when doing the final unreference of the
buffer with an outstanding map (catching the memory leak).
2008-02-28 16:01:15 -08:00
Christoph Brill
981b7da8a7
r300: R5xx and R3xx use different registers for RS_IP and RS_INST
...
These changes are taken from the xf86-video-ati driver. They update the header
file accordingly and also remove some UNKOWN variables.
2008-02-28 22:37:15 +01:00
Eric Anholt
9c8f27ba13
[965] Bug #9151 : make fragment.position return window coords not screen coords.
2008-02-28 13:18:48 -08:00
Eric Anholt
3f0301d7bc
[965] Fix serious copy'n'paste failure in brw state dumping.
2008-02-28 13:18:48 -08: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
Brian
ddbfa8c462
added git on Windows section
2008-02-28 08:03:34 -07:00
Brian
cef71f58c9
a few words about how the cell driver works.
2008-02-28 08:03:34 -07:00
Xiang, Haihao
3ffd11f71d
mesa: separate shader program object from shader object.
...
Currently a callback delete_shader_cb is used for deleting shader
and shader program objects. Mesa detaches all attached shaders in
_mesa_free_shader_program_data when deleting shader program objects. However
it is likely that these shaders have been freed in _mesa_free_shader,
which will result in unexpected behaviour. This fix uses a single callback for
shader program objects and deletes shader program objects before shader objects.
2008-02-28 21:32:36 +08: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
Zou Nan hai
0da03c0aa9
[intel] fix compressed image height
2008-02-28 16:49:38 +08:00
José Fonseca
60159c1b09
Convert crlf->lf line endings.
...
Windows/DOS users should enable core.autocrlf from now on:
git config --global core.autocrlf true
2008-02-28 16:34:32 +09: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
Jose Fonseca
90a036b337
Disable autocrlf for Visual Studio project files.
2008-02-28 12:34:01 +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
cabcee9ea9
document cell -DSPU_MAIN_PARAM_LONG_LONG flag
2008-02-27 18:02:23 -07:00