nvc0: allow fragment shader inputs to use indirect indexing
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 11 Jan 2016 21:39:15 +0000 (16:39 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 14 Jan 2016 19:28:04 +0000 (14:28 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index ccf96fb28151967a299c4f247c8c5c1ac2c2fc1b..6f7defa35f22cfd8b518e9c2398dc4f71ea5c517 100644 (file)
@@ -295,9 +295,9 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
       if (shader == PIPE_SHADER_COMPUTE && class_3d >= NVE4_3D_CLASS)
          return NVE4_MAX_PIPE_CONSTBUFS_COMPUTE;
       return NVC0_MAX_PIPE_CONSTBUFS;
-   case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
    case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
       return shader != PIPE_SHADER_FRAGMENT;
+   case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
    case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
    case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
       return 1;