mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
nir/opt_varyings: fix build with PRINT_RELOCATE_SLOT
Fixes:e3d122ed7b("nir/opt_varyings: completely exclude mediump from type changes") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36411> (cherry picked from commite92638b6bf)
This commit is contained in:
parent
654efa44e3
commit
4f7345f226
2 changed files with 3 additions and 1 deletions
|
|
@ -5354,7 +5354,7 @@
|
|||
"description": "nir/opt_varyings: fix build with PRINT_RELOCATE_SLOT",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "e3d122ed7b0ddde1cae137e84d9dba603ba58520",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -4246,6 +4246,8 @@ relocate_slot(struct linkage_info *linkage, struct scalar_slot *slot,
|
|||
}
|
||||
|
||||
#if PRINT_RELOCATE_SLOT
|
||||
unsigned bit_size = nir_intrinsic_infos[intr->intrinsic].has_dest ? intr->def.bit_size : intr->src[0].ssa->bit_size;
|
||||
|
||||
assert(bit_size == 16 || bit_size == 32);
|
||||
|
||||
fprintf(stderr, "--- relocating: %s.%c%s%s -> %s.%c%s%s FS_VEC4_TYPE_%s\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue