nvfx,nv50,nvc0: handle PIPE_CAP_GLSL_FEATURE_LEVEL
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 29 Jan 2012 12:24:11 +0000 (13:24 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 29 Jan 2012 12:24:11 +0000 (13:24 +0100)
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/nvc0/nvc0_screen.c
src/gallium/drivers/nvfx/nvfx_screen.c

index 536e06471b6fe33e3a30d1d0579c93c13e50426e..904f39a358d850ed4502fa18884d545b25d155e4 100644 (file)
@@ -110,6 +110,8 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       return 1;
    case PIPE_CAP_SM3:
       return 1;
+   case PIPE_CAP_GLSL_FEATURE_LEVEL:
+      return 120;
    case PIPE_CAP_MAX_RENDER_TARGETS:
       return 8;
    case PIPE_CAP_FRAGMENT_COLOR_CLAMPED:
index 5116646949c9e869f7f5d0c09166b075c62b5ce1..676af769834b72aeb7d896f51244af1703d11417 100644 (file)
@@ -97,6 +97,8 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       return 1;
    case PIPE_CAP_SM3:
       return 1;
+   case PIPE_CAP_GLSL_FEATURE_LEVEL:
+      return 150;
    case PIPE_CAP_MAX_RENDER_TARGETS:
       return 8;
    case PIPE_CAP_FRAGMENT_COLOR_CLAMPED:
index 2a3289f04fd3f62de7fb9c568aa5bdad0029bdf7..623903ab7566cea1272f06aa07c8326c8780875c 100644 (file)
@@ -34,6 +34,8 @@ nvfx_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
        case PIPE_CAP_SM3:
                /* TODO: >= nv4x support Shader Model 3.0 */
                return 0;
+       case PIPE_CAP_GLSL_FEATURE_LEVEL:
+               return 120;
        case PIPE_CAP_ANISOTROPIC_FILTER:
                return 1;
        case PIPE_CAP_POINT_SPRITE: