Commit Graph

23097 Commits

Author SHA1 Message Date
Brian Paul
e1a8852aa4 dri: __driUtilMessage(): not all messages are errors 2009-04-17 16:10:26 -06:00
Brian Paul
08ac96e55b mesa: minor tweak to error message 2009-04-17 16:10:26 -06:00
Brian Paul
f8f23e33c2 i965: updated CURBE allocation code
Now that we have real constant buffers, the demands on the CURBE are lessened.
When we use real VS/WM constant buffers we only use the CURBE for clip planes.
2009-04-17 16:10:26 -06:00
Jakob Bornecrantz
867afa4c09 xlib/trace: Fixup xlib trace 2009-04-17 21:33:12 +02:00
José Fonseca
86ed894e47 pipe: Get the p_atomic_dec_zero logic right this time. 2009-04-17 18:40:46 +01:00
Brian Paul
90c880f089 demos: move glewInit() call, fixes crash/bug 21247 2009-04-17 09:16:48 -06:00
Michel Dänzer
3b76072915 gallium: Fix PIPE_ATOMIC_GCC_INTRINSIC build. 2009-04-17 17:02:34 +02:00
Brian Paul
047efcd050 demos: move glewInit() after glutCreateWindow()
Fixes segfault.  See bug 21239.  However, the demo doesn't render
properly.  Probably a bug in the GL_ATI_fragment_shader code.
2009-04-17 08:11:00 -06:00
Jakob Bornecrantz
44d0e0caf4 trace: Keep screen objects on lists 2009-04-17 16:03:01 +02:00
Jakob Bornecrantz
1e42f68fd6 trace: Fix is_referenced functions 2009-04-17 16:03:01 +02:00
Jakob Bornecrantz
5800e0aad1 trace: Simplify trace_buffer function 2009-04-17 16:03:01 +02:00
José Fonseca
dbb90436f8 pipe: Fix InterlockedDecrement usage. 2009-04-17 15:01:38 +01:00
José Fonseca
995a168dea wgl: Put commas in the right places. 2009-04-17 14:55:49 +01:00
José Fonseca
5458f8eff6 wgl: Flip the pixel format order.
List 32bit pixel formats first, as nobody is interested in 16bit pixel
formats nowadays.
2009-04-17 14:53:29 +01:00
Thomas Hellstrom
e50dd26ca6 gallium: Create OGL state tracker wrappers for various CPU access operations.
There are two usage types of buffer CPU accesses:
One where we try to use the buffer contents for multiple draw commands in
a batch. (batch := sequence of commands that are flushed together),
like incrementally adding bitmaps to a bitmap texture that is reallocated
on flush.
And one where we assume we can safely overwrite the old buffer contexts, like
glTexSubImage. In this case we need to make sure all old drawing commands
referencing the buffer are flushed before we map the buffer.
This is easily forgotten.

Add wrappers for the most common of these operations. The first type is
prefixed with "st_no_flush" and the second type is prefixed with
"st_cond_flush", where "cond" indicates that we attmpt to only flush
if there is indeed unflushed draw commands referencing the buffer.

Prefixed functions are
screen::get_tex_transfer
pipe_buffer_write
pipe_buffer_read
pipe_buffer_map

Please use the wrappers whenever possible.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-17 13:18:05 +02:00
Zack Rusin
ee2a5f307a egl: don't crash with one more khronos api 2009-04-17 07:11:16 -04:00
Keith Whitwell
687f331a1f gallium: simplify further the logic for selecting mutex implementation
Cleaner than the previous cleanup...
2009-04-17 11:02:07 +01:00
Keith Whitwell
29a2f6fead util: flush stdout before emitting debug_printf on stderr
A lot of the mesa demos emit commentary on stdout, try to keep it in
sync with the corresponding output from debug_printf().
2009-04-17 11:02:07 +01:00
Keith Whitwell
db93dcecc8 gallium: add #warning to mutex-based atomic implementation
Some builds end up picking this up.
2009-04-17 11:02:07 +01:00
José Fonseca
3a618da6e1 python/retrace: Rename module as it conflicts with a builtin module.
And there is no way to override a builtin module... sigh
2009-04-17 10:07:53 +01:00
José Fonseca
56c2cd7ae2 scons: Cleanup. 2009-04-17 09:49:41 +01:00
Brian Paul
189db329ca demos: set init window size, not pos 2009-04-16 22:07:53 -06:00
Brian Paul
a902b6ba48 docs: separate compilation units in 7.5 2009-04-16 22:07:53 -06:00
Brian Paul
eb0d464903 Merge branch 'register-negate' 2009-04-16 22:02:54 -06:00
Alan Coopersmith
7571d5d3b0 egl/main/Makefile: Add dependency of install target on default build target
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-16 20:07:47 -07:00
Eric Anholt
f17ea143cb i915: Remove dead i830TexEnv and i915TexEnv.
These LOD bias updates are covered by the texture state uploads in
*_texstate.c now.
2009-04-16 12:04:34 -07:00
Eric Anholt
2c30fd84df intel: Add support for argb1555, argb4444 FBOs and fix rgb565 fbo readpixels.
Also enable them all regardless of screen bpp, as 32 bpp what I've been
testing against, and haven't been able to detect any screen bpp-specific
troubles with them.
2009-04-16 12:04:30 -07:00
Brian Paul
33b865f70d i965: disable using immediate values for MOV instructions
For some reason, MOV instructions using immediate src values don't seem
to work reliably on the GLSL path.  Disable them for now (falling back to
const buffer reads).  This fixes a bunch of glean glsl1 failures.
2009-04-16 11:08:23 -06:00
Brian Paul
a25632d890 i965: minor debug output changes 2009-04-16 11:08:23 -06:00
Brian Paul
fc76781456 i965: const buffer debug code (disabled) 2009-04-16 11:08:23 -06:00
Brian Paul
ee32e9b475 i965: implement relative addressing for VS constant buffer reads
A scatter-read should be possible, but we're just using two READs for
the time being.
2009-04-16 11:08:23 -06:00
Brian Paul
19ac3e2729 i965: handle address reg in get_dst() 2009-04-16 11:08:23 -06:00
Brian Paul
f2cfbfa2ba i965: fix const buffer temp register clobbering
Calls to release_tmps() were causing the temps holding constants to get
recycled.
2009-04-16 11:08:23 -06:00
Lars Henning Wendt
d82876e850 mesa: fix bad mask bit in clip plane restore code for glPopAttrib() 2009-04-16 10:15:10 -06:00
Roland Scheidegger
69cbf3c686 intel: fix small compressed texture upload
need to round up height for _mesa_copy_rect otherwise
textures with height smaller than 4 won't get copied to the miptree at all
Also fix up the confusing debug output (don't output unitialized values,
and output if data is present and the compressed flag)
2009-04-16 17:47:25 +02:00
Brian Paul
666702baec mesa: add distclean target to top-level Makefile 2009-04-16 09:31:45 -06:00
Brian Paul
0d0028e6df demos: use larger buffer for snprintf() call, see bug 21220 2009-04-16 09:25:52 -06:00
Keith Whitwell
8b2ebd1531 vbo: cache last dlist vertex in malloced memory
Avoids repeated mapping of the VBO buffer on display list replay.  We
need access to the final vertex in order to update the GL current attrib
values.
2009-04-16 12:19:19 +01:00
José Fonseca
e80d1e367a Merge branch 'gallium-s3tc' 2009-04-16 10:51:42 +01:00
Jakob Bornecrantz
82e92eeab0 progs/tests: Make texcompress2 get texture 2009-04-15 23:36:22 +02:00
Jakob Bornecrantz
5a118d4650 util: Fix surface usage 2009-04-15 23:33:07 +02:00
Brian Paul
255c33d733 st: remove XXX comment 2009-04-15 09:54:04 -06:00
Brian Paul
7b24e58a0c st: check for fast memcpy path in decompress_with_blit() 2009-04-15 09:52:04 -06:00
Brian Paul
66cdbf945a st: st_equal_formats() function to compare gallium/GL pixel formats 2009-04-15 09:51:38 -06:00
Brian Paul
51b339af2e st: decompress_with_blit() path for glGetTexImage().
Decompress a texture by rendering a textured quad.
2009-04-15 09:37:22 -06:00
Brian Paul
49b40f9bf4 gallium: new, simple RGBA surface create/destroy helpers
Use these for quickly creating an RGBA drawing surface.
2009-04-15 09:36:03 -06:00
Thomas Hellstrom
b83cf05d0d r300-gallium: Fixup for commit 9b75627fab.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-15 17:24:06 +02:00
Thomas Hellstrom
9b75627fab gallium: Make sure we flush before some texture / buffer operations.
Also implement context member functions to optimize away those
flushes whenever possible.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-15 17:16:58 +02:00
Brian Paul
f94053eb7d tests: another extended swizzle test 2009-04-15 19:55:28 -06:00
Corbin Simpson
1a84072db9 r300-gallium: Use viewport state. 2009-04-15 15:10:24 -07:00