projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29ea92e
)
intel/decoder: Use get_state_size() over guessed counts in more cases
author
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 23 May 2019 01:11:50 +0000
(18:11 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Tue, 28 May 2019 20:44:16 +0000
(13:44 -0700)
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>
src/intel/common/gen_batch_decoder.c
patch
|
blob
|
history
diff --git
a/src/intel/common/gen_batch_decoder.c
b/src/intel/common/gen_batch_decoder.c
index 5cac9836cb166e9df0a96361bc248ef7f8a76110..e44c352a05361f5e444e7bd9b9e9bb8817688a6c 100644
(file)
--- 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);