freedreno/ir3: Merge the redundant immediate_idx/immediates_count fields
authorEric Anholt <eric@anholt.net>
Tue, 7 Jul 2020 21:13:51 +0000 (14:13 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 23:06:55 +0000 (23:06 +0000)
commite873c4da08d883161e572cf7b9d7d24ca12a78b5
tree18fdefe65234dceb147d0781be5a87ee7abf8a17
parent5e922fbc160bcda9b38ccf5704cbd7276a748094
freedreno/ir3: Merge the redundant immediate_idx/immediates_count fields

I got tripped up again with the index vs count vs size fields and I'd
rather we didn't store the redundant info.  Settle on immediates_count as
"how many dwords of immediates we have"

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5990>
src/freedreno/computerator/a6xx.c
src/freedreno/ir3/ir3_cp.c
src/freedreno/ir3/ir3_parser.y
src/freedreno/ir3/ir3_shader.c
src/freedreno/ir3/ir3_shader.h
src/freedreno/vulkan/tu_pipeline.c
src/gallium/drivers/freedreno/ir3/ir3_const.h