radeonsi: stop returning PIPE_SHADER_IR_NATIVE for PIPE_SHADER_CAP_PREFERRED_IR
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Feb 2018 01:02:27 +0000 (12:02 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Feb 2018 23:59:10 +0000 (10:59 +1100)
Clover now checks PIPE_SHADER_CAP_SUPPORTED_IRS for native support instead.

This change indirectly enables NIR support for compute shaders
on radeonsi.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_get.c

index 9a205c07f8e17ba36fd8c434bb423329db551988..14d7ca5ba6ad3335ec24db845cbea97a3c1dfe22 100644 (file)
@@ -389,9 +389,6 @@ static int si_get_shader_param(struct pipe_screen* pscreen,
                break;
        case PIPE_SHADER_COMPUTE:
                switch (param) {
-               case PIPE_SHADER_CAP_PREFERRED_IR:
-                       return PIPE_SHADER_IR_NATIVE;
-
                case PIPE_SHADER_CAP_SUPPORTED_IRS: {
                        int ir = 1 << PIPE_SHADER_IR_NATIVE;