summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2012-01-29 13:24:11 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2012-01-29 13:24:11 +0100
commit672ad90f54539ed38a5d03b47b58ec17f250b63d (patch)
tree9c9bf6c44141a936f3451734c03e8fc0bd19aacf
parent10c85526a23ab6c01a67562a885597ad65883be6 (diff)
nvfx,nv50,nvc0: handle PIPE_CAP_GLSL_FEATURE_LEVEL
-rw-r--r--src/gallium/drivers/nv50/nv50_screen.c2
-rw-r--r--src/gallium/drivers/nvc0/nvc0_screen.c2
-rw-r--r--src/gallium/drivers/nvfx/nvfx_screen.c2
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 536e06471b6..904f39a358d 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)
110 return 1; 110 return 1;
111 case PIPE_CAP_SM3: 111 case PIPE_CAP_SM3:
112 return 1; 112 return 1;
113 case PIPE_CAP_GLSL_FEATURE_LEVEL:
114 return 120;
113 case PIPE_CAP_MAX_RENDER_TARGETS: 115 case PIPE_CAP_MAX_RENDER_TARGETS:
114 return 8; 116 return 8;
115 case PIPE_CAP_FRAGMENT_COLOR_CLAMPED: 117 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 5116646949c..676af769834 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)
97 return 1; 97 return 1;
98 case PIPE_CAP_SM3: 98 case PIPE_CAP_SM3:
99 return 1; 99 return 1;
100 case PIPE_CAP_GLSL_FEATURE_LEVEL:
101 return 150;
100 case PIPE_CAP_MAX_RENDER_TARGETS: 102 case PIPE_CAP_MAX_RENDER_TARGETS:
101 return 8; 103 return 8;
102 case PIPE_CAP_FRAGMENT_COLOR_CLAMPED: 104 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 2a3289f04fd..623903ab756 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)
34 case PIPE_CAP_SM3: 34 case PIPE_CAP_SM3:
35 /* TODO: >= nv4x support Shader Model 3.0 */ 35 /* TODO: >= nv4x support Shader Model 3.0 */
36 return 0; 36 return 0;
37 case PIPE_CAP_GLSL_FEATURE_LEVEL:
38 return 120;
37 case PIPE_CAP_ANISOTROPIC_FILTER: 39 case PIPE_CAP_ANISOTROPIC_FILTER:
38 return 1; 40 return 1;
39 case PIPE_CAP_POINT_SPRITE: 41 case PIPE_CAP_POINT_SPRITE: