intel: avoid dumping null cs sampler/binding states

this crashes the driver

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10077>
This commit is contained in:
Mike Blumenkrantz 2021-04-07 10:08:26 -04:00 committed by Marge Bot
parent 7ebb215495
commit 387189a955
1 changed files with 4 additions and 2 deletions

View File

@ -390,8 +390,10 @@ handle_interface_descriptor_data(struct intel_batch_decode_ctx *ctx,
ctx_disassemble_program(ctx, ksp, "compute shader");
fprintf(ctx->fp, "\n");
dump_samplers(ctx, sampler_offset, sampler_count);
dump_binding_table(ctx, binding_table_offset, binding_entry_count);
if (sampler_count)
dump_samplers(ctx, sampler_offset, sampler_count);
if (binding_entry_count)
dump_binding_table(ctx, binding_table_offset, binding_entry_count);
}
static void