intel/decoder: Use get_state_size() over guessed counts in more cases
This makes the following packets use actual driver provided sizes rather than guessing an arbitrary number: - CC_VIEWPORT - SF_CLIP_VIEWPORT - BLEND_STATE - COLOR_CALC_STATE - SCISSOR_RECT Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
This commit is contained in:
parent
29ea92e6a1
commit
bc273dece2
|
@ -706,6 +706,8 @@ decode_dynamic_state_pointers(struct gen_batch_decode_ctx *ctx,
|
|||
state = gen_spec_find_struct(ctx->spec, struct_type);
|
||||
}
|
||||
|
||||
count = update_count(ctx, state_offset, state->dw_length, count);
|
||||
|
||||
for (int i = 0; i < count; i++) {
|
||||
fprintf(ctx->fp, "%s %d\n", struct_type, i);
|
||||
ctx_print_group(ctx, state, state_addr, state_map);
|
||||
|
|
Loading…
Reference in New Issue