aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-07-05 15:46:38 +0200
committerErik Faye-Lund <[email protected]>2019-07-10 15:49:57 +0200
commit66ee6661e9968ea146d2ad0d606e1a35a17587dd (patch)
tree0d091fe7975b94afdfe2ab3f4ba0c229c1b8a403 /src/gallium/auxiliary
parentffbd0046863add97bb4ef9250abd4d4dc1639e4b (diff)
gallium: give fragment-shader texture-lod its own cap
Shader Model 3.0 is a big promise to make to the state-tracker, and for instance mobile hardware might support texture lod but not some of the other features of SM3. So let's give this its own cap for simplicity. Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index 3feb0b5f37c..5baf7d72fb1 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -370,6 +370,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
return 0;
#endif
+ case PIPE_CAP_FRAGMENT_SHADER_TEXTURE_LOD:
+ return pscreen->get_param(pscreen, PIPE_CAP_SM3);
+
default:
unreachable("bad PIPE_CAP_*");
}