pan/bi: Use texture index instead of sampler for message preloading
The VAR_TEX definition in ISA.xml only has a field for texture_index, so trying to read sampler_index will return zero; read from texture_index instead, and rename other fields for consistency. The texture and sampler indices must be equal for VAR_TEX to be used, so either name could be used for the field. Fixes the wrong textures being used in Thief. Closes: mesa/mesa#6219 Fixes: eb1479bd ("pan/bi: Support message preloading") Part-of: <mesa/mesa!16255> (cherry picked from commit 2864094f)
- .pick_status.json 1 addition, 1 deletion.pick_status.json
- src/panfrost/bifrost/bi_opt_message_preload.c 1 addition, 1 deletionsrc/panfrost/bifrost/bi_opt_message_preload.c
- src/panfrost/lib/genxml/v7.xml 1 addition, 1 deletionsrc/panfrost/lib/genxml/v7.xml
- src/panfrost/lib/pan_shader.h 1 addition, 1 deletionsrc/panfrost/lib/pan_shader.h
- src/panfrost/util/pan_ir.h 2 additions, 2 deletionssrc/panfrost/util/pan_ir.h