Mesa (master): nvfx,nv50,nvc0: handle PIPE_CAP_GLSL_FEATURE_LEVEL

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Sun Jan 29 12:43:41 UTC 2012


Module: Mesa
Branch: master
Commit: 672ad90f54539ed38a5d03b47b58ec17f250b63d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=672ad90f54539ed38a5d03b47b58ec17f250b63d

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sun Jan 29 13:24:11 2012 +0100

nvfx,nv50,nvc0: handle PIPE_CAP_GLSL_FEATURE_LEVEL

---

 src/gallium/drivers/nv50/nv50_screen.c |    2 ++
 src/gallium/drivers/nvc0/nvc0_screen.c |    2 ++
 src/gallium/drivers/nvfx/nvfx_screen.c |    2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
index 536e064..904f39a 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -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:
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c
index 5116646..676af76 100644
--- a/src/gallium/drivers/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nvc0/nvc0_screen.c
@@ -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:
diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c
index 2a3289f..623903a 100644
--- a/src/gallium/drivers/nvfx/nvfx_screen.c
+++ b/src/gallium/drivers/nvfx/nvfx_screen.c
@@ -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:




More information about the mesa-commit mailing list