aco: fix constant folding of SMRD instructions on GFX6
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 16 Jan 2020 13:04:49 +0000 (14:04 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jan 2020 16:24:55 +0000 (16:24 +0000)
commitb8abfafe8690847dc09bb63a5674dc2e2228a56a
treeccfd6cadf98aa5bd96a2d18c2bb3ae71d5a42c3a
parentdd92179a72e5263b9db730d92a883e2536aa4474
aco: fix constant folding of SMRD instructions on GFX6

SMRD instructions have an 8-bit dword offset on SI.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3432>
src/amd/compiler/aco_optimizer.cpp