iris: Dodge more GLSL IR lowering
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 5 May 2019 09:39:23 +0000 (02:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 16 May 2019 02:44:21 +0000 (19:44 -0700)
This avoids some lower_instructions bits in st.

src/gallium/drivers/iris/iris_screen.c

index f77b30e7789621144489889aa5e21c5cb12ddc49..84fd39bb23b75b6ac24d1d26591b7033947aa93d 100644 (file)
@@ -407,11 +407,12 @@ iris_get_shader_param(struct pipe_screen *pscreen,
       return 1 << PIPE_SHADER_IR_NIR;
    case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT:
       return 32;
+   case PIPE_SHADER_CAP_TGSI_DROUND_SUPPORTED:
+   case PIPE_SHADER_CAP_TGSI_LDEXP_SUPPORTED:
+      return 1;
    case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD:
    case PIPE_SHADER_CAP_TGSI_SKIP_MERGE_REGISTERS:
-   case PIPE_SHADER_CAP_TGSI_DROUND_SUPPORTED:
    case PIPE_SHADER_CAP_TGSI_DFRACEXP_DLDEXP_SUPPORTED:
-   case PIPE_SHADER_CAP_TGSI_LDEXP_SUPPORTED:
    case PIPE_SHADER_CAP_TGSI_FMA_SUPPORTED:
    case PIPE_SHADER_CAP_TGSI_ANY_INOUT_DECL_RANGE:
    case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED: