nvc0: expose GLSL version 420 on GK104
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 8 Apr 2016 18:24:58 +0000 (20:24 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Apr 2016 17:47:49 +0000 (19:47 +0200)
Other chipsets will be added later.

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 7889b6a019dac4057fdf18975c213625dea1f685..b0456f342101d6eba469a67410e47bbbb43962c0 100644 (file)
@@ -120,6 +120,8 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
       return 128 * 1024 * 1024;
    case PIPE_CAP_GLSL_FEATURE_LEVEL:
+      if (class_3d == NVE4_3D_CLASS)
+         return 420;
       return 410;
    case PIPE_CAP_MAX_RENDER_TARGETS:
       return 8;