freedreno/ir3: take reg->num out of union in ir3_register
authorHyunjun Ko <zzoon@igalia.com>
Thu, 25 Oct 2018 08:26:19 +0000 (17:26 +0900)
committerRob Clark <robdclark@gmail.com>
Thu, 25 Oct 2018 22:45:45 +0000 (18:45 -0400)
commit703271c22a9b3ac85e9aef38be288e4ce9ba5e3a
tree5362c96f8e9f870e44f89dadfa01e26d38db7c0a
parent3c402d0dc2a39a7d6efd51400d3cab5b737dfafc
freedreno/ir3: take reg->num out of union in ir3_register

To avoid wrong result when identifying the type of register.
Ie. If the reg is an array, it might be identified as address or
predicate register.

Fixes: dEQP-GLES31.functional.ssbo.layout.random.arrays_of_arrays.6

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3.h