nvc0: enable ARB_shader_image_load_store on GK110
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 18 Apr 2016 16:54:14 +0000 (18:54 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Apr 2016 17:47:49 +0000 (19:47 +0200)
This exposes 8 images for all shader types.

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 b0456f342101d6eba469a67410e47bbbb43962c0..7fa81ae00afe90323621ae8de9ebaa9926169952 100644 (file)
@@ -382,7 +382,7 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
    case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT:
       return 32;
    case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
-      if (class_3d == NVE4_3D_CLASS)
+      if (class_3d == NVE4_3D_CLASS || class_3d == NVF0_3D_CLASS)
          return NVC0_MAX_IMAGES;
       return 0;
    default: