mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 12:00:41 +02:00
i915: Don't take a context as argument for debug
This commit is contained in:
parent
a3b89a39d9
commit
8340a116ea
2 changed files with 5 additions and 7 deletions
|
|
@ -864,18 +864,17 @@ static boolean i915_debug_packet( struct debug_stream *stream )
|
|||
|
||||
|
||||
void
|
||||
i915_dump_batchbuffer( struct i915_context *i915 )
|
||||
i915_dump_batchbuffer( struct i915_batchbuffer *batch )
|
||||
{
|
||||
struct debug_stream stream;
|
||||
unsigned *start = (unsigned*)i915->batch->map;
|
||||
unsigned *end = (unsigned*)i915->batch->ptr;
|
||||
unsigned *start = (unsigned*)batch->map;
|
||||
unsigned *end = (unsigned*)batch->ptr;
|
||||
unsigned long bytes = (unsigned long) (end - start) * 4;
|
||||
boolean done = FALSE;
|
||||
|
||||
stream.offset = 0;
|
||||
stream.ptr = (char *)start;
|
||||
stream.print_addresses = 0;
|
||||
stream.winsys = i915->pipe.winsys;
|
||||
|
||||
if (!start || !end) {
|
||||
debug_printf( "\n\nBATCH: ???\n");
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ struct debug_stream
|
|||
char *ptr; /* pointer to gtt offset zero */
|
||||
char *end; /* pointer to gtt offset zero */
|
||||
unsigned print_addresses;
|
||||
struct pipe_winsys *winsys;
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -105,9 +104,9 @@ I915_DBG(
|
|||
#endif
|
||||
|
||||
|
||||
void i915_dump_batchbuffer( struct i915_context *i915 );
|
||||
|
||||
struct i915_batchbuffer;
|
||||
|
||||
void i915_dump_batchbuffer( struct i915_batchbuffer *i915 );
|
||||
|
||||
void i915_debug_init( struct i915_context *i915 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue