mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
intel/aub_viewer: Print blend states properly
Identical fix to :
commit 70de31d0c1
Author: Jason Ekstrand <jason.ekstrand@intel.com>
Date: Fri Aug 24 16:05:08 2018 -0500
intel/batch_decoder: Print blend states properly
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Toni Lönnberg <toni.lonnberg@intel.com>
This commit is contained in:
parent
ac324a6809
commit
0db898cef2
1 changed files with 16 additions and 2 deletions
|
|
@ -625,8 +625,6 @@ decode_dynamic_state_pointers(struct aub_viewer_decode_ctx *ctx,
|
|||
struct gen_group *inst, const uint32_t *p,
|
||||
const char *struct_type, int count)
|
||||
{
|
||||
struct gen_group *state = gen_spec_find_struct(ctx->spec, struct_type);
|
||||
|
||||
uint32_t state_offset = 0;
|
||||
|
||||
struct gen_field_iterator iter;
|
||||
|
|
@ -649,6 +647,22 @@ decode_dynamic_state_pointers(struct aub_viewer_decode_ctx *ctx,
|
|||
return;
|
||||
}
|
||||
|
||||
struct gen_group *state = gen_spec_find_struct(ctx->spec, struct_type);
|
||||
if (strcmp(struct_type, "BLEND_STATE") == 0) {
|
||||
/* Blend states are different from the others because they have a header
|
||||
* struct called BLEND_STATE which is followed by a variable number of
|
||||
* BLEND_STATE_ENTRY structs.
|
||||
*/
|
||||
ImGui::Text("%s", struct_type);
|
||||
aub_viewer_print_group(ctx, state, state_addr, state_map);
|
||||
|
||||
state_addr += state->dw_length * 4;
|
||||
state_map += state->dw_length * 4;
|
||||
|
||||
struct_type = "BLEND_STATE_ENTRY";
|
||||
state = gen_spec_find_struct(ctx->spec, struct_type);
|
||||
}
|
||||
|
||||
for (int i = 0; i < count; i++) {
|
||||
ImGui::Text("%s %d", struct_type, i);
|
||||
aub_viewer_print_group(ctx, state, state_addr, state_map);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue