mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 18:20:40 +02:00
intel/aub_viewer: fix decoding of sampler states
There's only 1 sampler state behind 3DSTATE_SAMPLER_STATE_POINTERS[_VS|_HS|_DS|_GS|_PS] and 3DSTATE_SAMPLER_STATE_POINTERS.[PointertoVSSamplerState|PointertoPSSamplerState|PointertoGSSamplerState]. Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9707>
This commit is contained in:
parent
186301a232
commit
b0452f150e
1 changed files with 4 additions and 7 deletions
|
|
@ -252,9 +252,6 @@ dump_samplers(struct aub_viewer_decode_ctx *ctx, uint32_t offset, int count)
|
|||
{
|
||||
struct intel_group *strct = intel_spec_find_struct(ctx->spec, "SAMPLER_STATE");
|
||||
|
||||
if (count < 0)
|
||||
count = update_count(ctx, offset, strct->dw_length, 4);
|
||||
|
||||
uint64_t state_addr = ctx->dynamic_base + offset;
|
||||
struct intel_batch_decode_bo bo = ctx_get_bo(ctx, true, state_addr);
|
||||
const uint8_t *state_map = (const uint8_t *) bo.map;
|
||||
|
|
@ -617,7 +614,7 @@ decode_3dstate_sampler_state_pointers(struct aub_viewer_decode_ctx *ctx,
|
|||
struct intel_group *inst,
|
||||
const uint32_t *p)
|
||||
{
|
||||
dump_samplers(ctx, p[1], -1);
|
||||
dump_samplers(ctx, p[1], 1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -625,9 +622,9 @@ decode_3dstate_sampler_state_pointers_gen6(struct aub_viewer_decode_ctx *ctx,
|
|||
struct intel_group *inst,
|
||||
const uint32_t *p)
|
||||
{
|
||||
dump_samplers(ctx, p[1], -1);
|
||||
dump_samplers(ctx, p[2], -1);
|
||||
dump_samplers(ctx, p[3], -1);
|
||||
dump_samplers(ctx, p[1], 1);
|
||||
dump_samplers(ctx, p[2], 1);
|
||||
dump_samplers(ctx, p[3], 1);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue