diff options
author | Emil Velikov <[email protected]> | 2014-05-10 03:41:44 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-05-25 23:21:46 +0100 |
commit | b52a530ce2aada1967bc8fefa83ab53e6a737dae (patch) | |
tree | b80e97672d2409299621c319295bb4b8b6757038 /src/gallium/targets/egl-static/egl_st.c | |
parent | a9afdcc3a144f5fa4998891b2f63061e38db293a (diff) |
gallium/egl: st_profiles are build time decision, treat them as such
The profiles are present depending on the defines at build time.
Drop the extra functions and feed the defines directly into the
state-tracker at build time.
v2: Drop unused variable i.
Acked-by: Chia-I Wu <[email protected]> (v1)
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/targets/egl-static/egl_st.c')
-rw-r--r-- | src/gallium/targets/egl-static/egl_st.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/gallium/targets/egl-static/egl_st.c b/src/gallium/targets/egl-static/egl_st.c index da0cd5b8bbf..656135b05aa 100644 --- a/src/gallium/targets/egl-static/egl_st.c +++ b/src/gallium/targets/egl-static/egl_st.c @@ -165,32 +165,3 @@ egl_st_destroy_api(struct st_api *stapi) stapi->destroy(stapi); #endif } - -uint -egl_st_get_profile_mask(enum st_api_type api) -{ - uint mask = 0x0; - - switch (api) { - case ST_API_OPENGL: -#if FEATURE_GL - mask |= ST_PROFILE_DEFAULT_MASK; -#endif -#if FEATURE_ES1 - mask |= ST_PROFILE_OPENGL_ES1_MASK; -#endif -#if FEATURE_ES2 - mask |= ST_PROFILE_OPENGL_ES2_MASK; -#endif - break; - case ST_API_OPENVG: -#if FEATURE_VG - mask |= ST_PROFILE_DEFAULT_MASK; -#endif - break; - default: - break; - } - - return mask; -} |