r600: always return PIPE_SHADER_IR_TGSI for PIPE_SHADER_CAP_PREFERRED_IR
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Feb 2018 01:01:04 +0000 (12:01 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Feb 2018 23:59:10 +0000 (10:59 +1100)
We now use PIPE_SHADER_CAP_SUPPORTED_IRS to check for native support
in clover.

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

index fd8edcc9fbfeeb9b34701edcb69d54649ef777fd..ecdbe5d9bf53cf78f2f0fd5be7856c4592f396dc 100644 (file)
@@ -598,11 +598,7 @@ static int r600_get_shader_param(struct pipe_screen* pscreen,
        case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:
                return 16;
         case PIPE_SHADER_CAP_PREFERRED_IR:
-               if (shader == PIPE_SHADER_COMPUTE) {
-                       return PIPE_SHADER_IR_NATIVE;
-               } else {
-                       return PIPE_SHADER_IR_TGSI;
-               }
+               return PIPE_SHADER_IR_TGSI;
        case PIPE_SHADER_CAP_SUPPORTED_IRS: {
                int ir = 0;
                if (shader == PIPE_SHADER_COMPUTE)