aco: improve validation checks for readlane/writelane
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 22 Jun 2020 07:17:02 +0000 (09:17 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 11:24:27 +0000 (11:24 +0000)
commit83d2a73b73a58006d9835a93a64c3946a5923cda
tree105e297fd5d2403d90eb2da025373e2786486c11
parentf03a5f6cac95c59e602313cf6d84989d9733ecd4
aco: improve validation checks for readlane/writelane

This allows literals for the lane select on GFX10+. The doc says
that is should be a SGPR or a constant but VOP3 on GFX10+ allows
literals.

Some later validation code checks if literals are allowed anyways.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5010>
src/amd/compiler/aco_validate.cpp