Files
rocm-systems/tests/kfdtest/src
Graham Sider e2435d9e93 kfdtest: Add flat compatability macros for gfx target 9.4.x
For GC 9.4.0, modifications were made to various shaders since certain
flat_ instructions no longer support glc/slc modifiers (replaced with
nt/sc1/sc0). Instead of repeating conditionals inside various shader
bodies, we can make use of LLVM AMDGCN macros.

This patch modularizes the shader macros into seperated defines. Prior
to the core raw-string literal, each shader now starts with the
SHADER_START literal (".text\n") plus any number of SHADER_MACRO_*
literals. This allows us to seperate the macro definitions logically and
use the pre-processor to only include the required macro groups on a
per-shader basis.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: I19eb3fd14252a0601bb7509249051b68e7fdb02a
2023-04-14 12:05:08 -04:00
..
2018-08-23 06:20:17 -04:00
2018-08-23 06:20:17 -04:00
2022-04-26 13:14:33 -04:00
2022-04-26 13:14:33 -04:00
2018-08-23 06:20:17 -04:00
2018-08-14 08:17:57 -04:00
2022-07-21 16:08:19 -04:00
2019-02-15 15:03:32 -05:00
2022-11-02 15:40:03 -04:00
2018-08-23 06:20:17 -04:00
2022-11-02 15:40:03 -04:00
2019-11-15 15:27:21 -05:00
2019-11-15 15:27:21 -05:00
2018-07-31 00:00:34 -04:00
2018-07-31 00:00:34 -04:00