freedreno/a6xx: add VALIDREG/CONDREG helper macros
authorRob Clark <robdclark@chromium.org>
Thu, 25 Apr 2019 19:13:35 +0000 (12:13 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 25 Apr 2019 21:13:31 +0000 (14:13 -0700)
commit49f922d96c9e6fe886c29b4e3760e2f808ac83fc
tree07809180e654005ae3fde31c709da8285945cd12
parentf4b4d6cf23e8cc4a0d86b0588b23b456f691d830
freedreno/a6xx: add VALIDREG/CONDREG helper macros

There are a few places that we check if a shader stage input reg is
used/valid (ie. not r63.x).. and there are about to be a bunch more.
So add some helper macros for less open-coding.

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/a6xx/fd6_program.c