Keith Whitwell
fca7f38441
pipebuffer: fix printf warnings
2009-09-24 16:49:05 +01:00
José Fonseca
2af0173e9e
pipebuffer: Use a type consistently for sizes/offsets.
...
Avoids warnings on 64bit builds.
Use regular unsigned since that's what gallium expects, but use a
typedef to facilitate possible changes in the future.
2009-06-18 14:54:08 +01:00
José Fonseca
1248ff7d45
pb: Save the stack backtrace when creating/mapping a debug buffer.
2009-05-08 14:57:26 +01:00
Michel Dänzer
e9d156e9e4
gallium: Remove remnants of reference counting internals outside of p_refcnt.h.
2009-03-23 18:03:13 +01:00
Thomas Hellstrom
cf25ef9072
gallium: Use struct pipe_atomic for pipe refcounts.
...
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-03-16 11:40:47 +01:00
Michel Dänzer
5e27cd46c0
gallium: Unify reference counting.
...
The core reference counting code is centralized in p_refcnt.h.
This has some consequences related to struct pipe_buffer:
* The screen member of struct pipe_buffer must be initialized, or
pipe_buffer_reference() will crash trying to destroy a buffer with reference
count 0. u_simple_screen takes care of this, but I may have missed some of
the drivers not using it.
* Except for rare exceptions deep in winsys code, buffers must always be
allocated via pipe_buffer_create() or via screen->*buffer_create() rather
than via winsys->*buffer_create().
2009-03-04 11:58:48 +01:00
José Fonseca
0be216c526
pipebuffer: Allow asymmetric guard sizes for under/overflow detection.
2009-02-24 15:49:21 +00:00
José Fonseca
ea4bf267e4
util: Move p_debug.h into util module.
...
The debug functions depend on several util function for os abstractions, and
these depend on debug functions, so a seperate module is not possible.
2009-02-18 12:05:26 +00:00
José Fonseca
4ad190c96f
pipebuffer: Drop (most of) pipe winsys stuff.
2009-02-01 10:28:16 +00:00
Zack Rusin
adfbba476d
gallium: make p_winsys internal
...
move it to pipe/internal/p_winsys_screen.h and start converting
the state trackers to the screen usage
2009-01-30 15:57:33 -05:00
José Fonseca
e06474dbae
pipebuffer: Implement proper buffer validation.
2009-01-29 15:19:31 +00:00
Keith Whitwell
aef455c4a7
Revert "pipebuffer: Implement proper buffer validation."
...
This reverts commit a6d866f72c .
2008-12-12 12:05:39 +00:00
José Fonseca
a6d866f72c
pipebuffer: Implement proper buffer validation.
2008-11-24 13:59:06 +09:00
José Fonseca
1672e8e059
pipebuffer: New callback to flush all temporary-held buffers.
...
Used mostly to aid debugging memory issues or to clean up resources when
the drivers are long lived.
2008-09-18 12:26:19 +09:00
José Fonseca
c46c07f6c6
pipebuffer: Fix/add detail to the under- overflow report messages.
2008-08-28 22:03:42 +09:00
José Fonseca
c6739e8cea
pipebuffer: Check buffer over- & underflows when mapping/unmapping too.
2008-08-28 21:06:06 +09:00
Brian
6fd2feaad7
gallium: include u_memory.h, u_math.h
2008-08-24 18:10:50 -06:00
Brian Paul
4f25420bdd
gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.h
...
Also, rename p_tile.[ch] to u_tile.[ch]
2008-08-24 17:48:55 -06:00
José Fonseca
2170ec9048
pipebuffer: More detailed description of bufer over-/undereflows.
2008-07-20 18:11:43 +09:00
José Fonseca
17af66fc1a
pb: buffer over/underflows are errors.
2008-07-13 23:37:40 +09:00
José Fonseca
d16fcd07f8
pipebuffer: Debug buffer manager to detect buffer under- and overflows.
...
It should detect both cpu and gpu buffer overflows.
2008-07-02 12:29:07 +09:00