mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
intel/decoder: make vertex data decoding optional
When capturing INTEL_DEBUG=capture-all and the application has like 1Gb of vertex data, you might not want to actually decode it when looking at the error state. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27058>
This commit is contained in:
parent
e481c1269c
commit
7107ed55c0
2 changed files with 7 additions and 2 deletions
|
|
@ -37,6 +37,7 @@ static const struct debug_control debug_control[] = {
|
|||
{ "floats", INTEL_BATCH_DECODE_FLOATS },
|
||||
{ "surfaces", INTEL_BATCH_DECODE_SURFACES },
|
||||
{ "accumulate", INTEL_BATCH_DECODE_ACCUMULATE },
|
||||
{ "vb-data", INTEL_BATCH_DECODE_VB_DATA },
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
|
|
@ -580,7 +581,8 @@ handle_3dstate_vertex_buffers(struct intel_batch_decode_ctx *ctx,
|
|||
if (vb.map == 0 || vb_size == 0)
|
||||
continue;
|
||||
|
||||
ctx_print_buffer(ctx, vb, vb_size, pitch, ctx->max_vbo_decoded_lines);
|
||||
if (ctx->flags & INTEL_BATCH_DECODE_VB_DATA)
|
||||
ctx_print_buffer(ctx, vb, vb_size, pitch, ctx->max_vbo_decoded_lines);
|
||||
|
||||
vb.map = NULL;
|
||||
vb_size = 0;
|
||||
|
|
|
|||
|
|
@ -231,6 +231,8 @@ enum intel_batch_decode_flags {
|
|||
* - COMPUTE_WALKER
|
||||
*/
|
||||
INTEL_BATCH_DECODE_ACCUMULATE = (1 << 6),
|
||||
/** Print vertex buffer data */
|
||||
INTEL_BATCH_DECODE_VB_DATA = (1 << 7),
|
||||
};
|
||||
|
||||
#define INTEL_BATCH_DECODE_DEFAULT_FLAGS \
|
||||
|
|
@ -238,7 +240,8 @@ enum intel_batch_decode_flags {
|
|||
INTEL_BATCH_DECODE_OFFSETS | \
|
||||
INTEL_BATCH_DECODE_FLOATS | \
|
||||
INTEL_BATCH_DECODE_SURFACES | \
|
||||
INTEL_BATCH_DECODE_SAMPLERS)
|
||||
INTEL_BATCH_DECODE_SAMPLERS | \
|
||||
INTEL_BATCH_DECODE_VB_DATA)
|
||||
|
||||
struct intel_batch_decode_bo {
|
||||
uint64_t addr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue