diff options
author | Marek Olšák <[email protected]> | 2012-10-28 15:01:52 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-10-31 02:04:54 +0100 |
commit | 55bf57dbb4e3ee1f0131fe7fc19211148b9e1e2f (patch) | |
tree | 1155b3709fc5130cd88ee926d06a56972e5e1df5 /src/mesa/state_tracker/st_extensions.c | |
parent | b6f5c37ac3e8ec3aae39289f94f05cb71a587066 (diff) |
mesa: don't always enable OES_standard_derivatives
For Intel, expose it only if gen >= 4.
For Gallium, expose it only if PIPE_CAP_SM3 is advertised.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 97bf29c662c..fe2163c769b 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -377,6 +377,8 @@ void st_init_extensions(struct st_context *st) /* GL_NV_point_sprite is not supported by gallium because we don't * support the GL_POINT_SPRITE_R_MODE_NV option. */ { o(MESA_texture_array), PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS }, + + { o(OES_standard_derivatives), PIPE_CAP_SM3 } }; /* Required: render target and sampler support */ |