mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 19:30:38 +01:00
panfrost/midgard/disasm: Print LOD for texelFetch
Its encoding differs slightly from the LOD used in normal texture calls. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
cda9f32909
commit
3dee556c4e
1 changed files with 9 additions and 0 deletions
|
|
@ -1137,6 +1137,15 @@ print_texture_word(uint32_t *word, unsigned tabs)
|
|||
if (texture->lod_register) {
|
||||
/* TODO: Decode */
|
||||
printf("lod/bias/grad reg 0x%X (%X), ", texture->bias, texture->bias_int);
|
||||
} else if (texture->op == TEXTURE_OP_TEXEL_FETCH) {
|
||||
/* For texel fetch, the int LOD is in the fractional place and
|
||||
* there is no fraction / possibility of bias. We *always* have
|
||||
* an explicit LOD, even if it's zero. */
|
||||
|
||||
if (texture->bias_int)
|
||||
printf(" /* bias_int = 0x%X */ ", texture->bias_int);
|
||||
|
||||
printf("lod = %d, ", texture->bias);
|
||||
} else if (texture->bias || texture->bias_int) {
|
||||
int bias_int = texture->bias_int;
|
||||
float bias_frac = texture->bias / 256.0f;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue