nvc0: enable ARB_shader_image_load_store on GF100
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Apr 2016 21:23:12 +0000 (23:23 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 21 May 2016 16:33:03 +0000 (18:33 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index 3178588819c9605bdc1872c97cc2924973a3c359..4ffefcd7b945e3a5212c236d18231a5a310af2d4 100644 (file)
@@ -376,6 +376,9 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
    case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
       if (class_3d == NVE4_3D_CLASS || class_3d == NVF0_3D_CLASS)
          return NVC0_MAX_IMAGES;
+      if (class_3d < NVE4_3D_CLASS)
+         if (shader == PIPE_SHADER_FRAGMENT || shader == PIPE_SHADER_COMPUTE)
+            return NVC0_MAX_IMAGES;
       return 0;
    default:
       NOUVEAU_ERR("unknown PIPE_SHADER_CAP %d\n", param);