summaryrefslogtreecommitdiffstats
path: root/src/intel/common
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-05-22 18:11:50 -0700
committerKenneth Graunke <[email protected]>2019-05-28 13:44:16 -0700
commitbc273dece25e50b50a7b6373f4e92a29bd243fb0 (patch)
treec4853c54856634b174ce12314a25cb066ab6541f /src/intel/common
parent29ea92e6a1e8f5cb3295011d907ea211d6f8f644 (diff)
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 <[email protected]>
Diffstat (limited to 'src/intel/common')
-rw-r--r--src/intel/common/gen_batch_decoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c
index 5cac9836cb1..e44c352a053 100644
--- a/src/intel/common/gen_batch_decoder.c
+++ b/src/intel/common/gen_batch_decoder.c
@@ -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);