mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
freedreno/rddecompiler: Make possible to use original shader
Sometimes decompiled shader isn't easily compiled back into the same binary, e.g. when some part of bitset is not decoded. Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29753>
This commit is contained in:
parent
9e750f00c3
commit
7c07c44d57
1 changed files with 7 additions and 1 deletions
|
|
@ -330,7 +330,13 @@ emit_shader_iova(struct replay_context *ctx, struct cmdstream *cs, uint64_t id)
|
|||
{
|
||||
uint64_t *shader_iova = (uint64_t *)
|
||||
_mesa_hash_table_u64_search(ctx->compiled_shaders, id);
|
||||
pkt_qw(cs, *shader_iova);
|
||||
if (shader_iova) {
|
||||
pkt_qw(cs, *shader_iova);
|
||||
} else {
|
||||
fprintf(stderr,
|
||||
"Not override for shader at 0x%" PRIx64 ", using original\n", id);
|
||||
pkt_qw(cs, id);
|
||||
}
|
||||
}
|
||||
|
||||
#define begin_draw_state() \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue