aco: don't accept med3 opcodes in get_minmax_info()
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 29 Apr 2022 16:21:01 +0000 (17:21 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Jul 2022 16:39:56 +0000 (16:39 +0000)
I don't think the presence of med3 here breaks anything, but it shouldn't
be here anyway.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16296>

src/amd/compiler/aco_optimizer.cpp

index ef5403d..15e3571 100644 (file)
@@ -2788,7 +2788,6 @@ get_minmax_info(aco_opcode op, aco_opcode* min, aco_opcode* max, aco_opcode* min
 #define MINMAX(type, gfx9)                                                                         \
    case aco_opcode::v_min_##type:                                                                  \
    case aco_opcode::v_max_##type:                                                                  \
-   case aco_opcode::v_med3_##type:                                                                 \
       *min = aco_opcode::v_min_##type;                                                             \
       *max = aco_opcode::v_max_##type;                                                             \
       *med3 = aco_opcode::v_med3_##type;                                                           \