mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
intel: Advertise GLES1/2 for i915+ when enabled
This commit is contained in:
parent
159dc4deff
commit
136a938559
1 changed files with 12 additions and 0 deletions
|
|
@ -439,6 +439,7 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
|
|||
struct intel_screen *intelScreen;
|
||||
GLenum fb_format[3];
|
||||
GLenum fb_type[3];
|
||||
unsigned int api_mask;
|
||||
|
||||
static const GLenum back_buffer_modes[] = {
|
||||
GLX_NONE, GLX_SWAP_UNDEFINED_OML, GLX_SWAP_COPY_OML
|
||||
|
|
@ -465,6 +466,17 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
|
|||
&intelScreen->deviceID))
|
||||
return GL_FALSE;
|
||||
|
||||
api_mask = (1 << __DRI_API_OPENGL);
|
||||
#if FEATURE_ES1
|
||||
api_mask |= (1 << __DRI_API_GLES);
|
||||
#endif
|
||||
#if FEATURE_ES2
|
||||
api_mask |= (1 << __DRI_API_GLES2);
|
||||
#endif
|
||||
|
||||
if (IS_9XX(intelScreen->deviceID) || IS_965(intelScreen->deviceID))
|
||||
psp->api_mask = api_mask;
|
||||
|
||||
if (!intel_init_bufmgr(intelScreen))
|
||||
return GL_FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue