Home
last modified time | relevance | path

Searched refs:attribMap (Results 1 – 25 of 25) sorted by relevance

/external/mesa3d/src/mesa/drivers/dri/common/
Dutils.c426 static const struct { unsigned int attrib, offset; } attribMap[] = { variable
488 switch (attribMap[index].attrib) { in driGetConfigAttribIndex()
506 ((char *) &config->modes + attribMap[index].offset); in driGetConfigAttribIndex()
527 for (i = 0; i < ARRAY_SIZE(attribMap); i++) in driGetConfigAttrib()
528 if (attribMap[i].attrib == attrib) in driGetConfigAttrib()
546 if (index >= 0 && index < ARRAY_SIZE(attribMap)) { in driIndexConfigAttrib()
547 *attrib = attribMap[index].attrib; in driIndexConfigAttrib()
/external/angle/src/libANGLE/renderer/gl/glx/
DRendererGLX.cpp17 const egl::AttributeMap &attribMap, in RendererGLX() argument
19 : RendererGL(std::move(functions), attribMap, display), mDisplay(display) in RendererGLX()
DRendererGLX.h23 const egl::AttributeMap &attribMap,
DDisplayGLX.cpp102 const auto &attribMap = display->getAttributeMap(); in initialize() local
167 if (attribMap.contains(EGL_X11_VISUAL_ID_ANGLE)) in initialize()
169 mRequestedVisual = static_cast<EGLint>(attribMap.get(EGL_X11_VISUAL_ID_ANGLE, -1)); in initialize()
/external/angle/src/libANGLE/renderer/gl/cgl/
DRendererCGL.cpp19 const egl::AttributeMap &attribMap, in RendererCGL() argument
21 : RendererGL(std::move(functions), attribMap, display), mDisplay(display) in RendererCGL()
DRendererCGL.h23 const egl::AttributeMap &attribMap,
/external/angle/src/libANGLE/renderer/gl/eagl/
DRendererEAGL.cpp20 const egl::AttributeMap &attribMap, in RendererEAGL() argument
22 : RendererGL(std::move(functions), attribMap, display), mDisplay(display) in RendererEAGL()
DRendererEAGL.h23 const egl::AttributeMap &attribMap,
/external/angle/src/libANGLE/renderer/gl/egl/
DRendererEGL.cpp15 const egl::AttributeMap &attribMap, in RendererEGL() argument
20 : RendererGL(std::move(functionsGL), attribMap, display), in RendererEGL()
DRendererEGL.h23 const egl::AttributeMap &attribMap,
/external/angle/src/libANGLE/renderer/gl/wgl/
DRendererWGL.cpp15 const egl::AttributeMap &attribMap, in RendererWGL() argument
20 : RendererGL(std::move(functionsGL), attribMap, display), in RendererWGL()
DRendererWGL.h23 const egl::AttributeMap &attribMap,
/external/angle/src/libANGLE/
DDisplay.h152 static Display *GetDisplayFromDevice(Device *device, const AttributeMap &attribMap);
154 const AttributeMap &attribMap);
249 static Error CreateNativeClientBuffer(const egl::AttributeMap &attribMap,
326 void setAttributes(const AttributeMap &attribMap) { mAttributeMap = attribMap; } in setAttributes() argument
330 void updateAttribsFromEnvironment(const AttributeMap &attribMap);
DDisplay.cpp574 void UpdateAttribsFromEnvironment(AttributeMap &attribMap) in UpdateAttribsFromEnvironment() argument
577 attribMap.get(EGL_PLATFORM_ANGLE_TYPE_ANGLE, EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE); in UpdateAttribsFromEnvironment()
581 attribMap.insert(EGL_PLATFORM_ANGLE_TYPE_ANGLE, displayType); in UpdateAttribsFromEnvironment()
583 EGLAttrib deviceType = attribMap.get(EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE, 0); in UpdateAttribsFromEnvironment()
587 attribMap.insert(EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE, deviceType); in UpdateAttribsFromEnvironment()
589 EGLAttrib platformType = attribMap.get(EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE, 0); in UpdateAttribsFromEnvironment()
593 attribMap.insert(EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE, platformType); in UpdateAttribsFromEnvironment()
695 const AttributeMap &attribMap) in GetDisplayFromNativeDisplay() argument
699 AttributeMap updatedAttribMap(attribMap); in GetDisplayFromNativeDisplay()
771 Display *Display::GetDisplayFromDevice(Device *device, const AttributeMap &attribMap) in GetDisplayFromDevice() argument
[all …]
DvalidationEGL.cpp534 const AttributeMap &attribMap) in ValidateGetPlatformDisplayCommon() argument
559 attribMap.initializeWithoutValidation(); in ValidateGetPlatformDisplayCommon()
575 for (const auto &curAttrib : attribMap) in ValidateGetPlatformDisplayCommon()
846 if (attribMap.get(EGL_PLATFORM_ANGLE_D3D_LUID_HIGH_ANGLE, 0) == 0 && in ValidateGetPlatformDisplayCommon()
847 attribMap.get(EGL_PLATFORM_ANGLE_D3D_LUID_LOW_ANGLE, 0) == 0) in ValidateGetPlatformDisplayCommon()
859 if (attribMap.get(EGL_PLATFORM_ANGLE_DEVICE_ID_HIGH_ANGLE, 0) == 0 && in ValidateGetPlatformDisplayCommon()
860 attribMap.get(EGL_PLATFORM_ANGLE_DEVICE_ID_LOW_ANGLE, 0) == 0) in ValidateGetPlatformDisplayCommon()
939 if (attribMap.contains(EGL_POWER_PREFERENCE_ANGLE)) in ValidateGetPlatformDisplayCommon()
948 EGLAttrib value = attribMap.get(EGL_POWER_PREFERENCE_ANGLE, 0); in ValidateGetPlatformDisplayCommon()
958 if (attribMap.contains(EGL_FEATURE_OVERRIDES_ENABLED_ANGLE)) in ValidateGetPlatformDisplayCommon()
[all …]
Dformatutils.h295 int GetAndroidHardwareBufferFormatFromChannelSizes(const egl::AttributeMap &attribMap);
Dformatutils.cpp1414 int GetAndroidHardwareBufferFormatFromChannelSizes(const egl::AttributeMap &attribMap) in GetAndroidHardwareBufferFormatFromChannelSizes() argument
1417 GLuint redSize = static_cast<GLuint>(attribMap.getAsInt(EGL_RED_SIZE, 0)); in GetAndroidHardwareBufferFormatFromChannelSizes()
1418 GLuint greenSize = static_cast<GLuint>(attribMap.getAsInt(EGL_GREEN_SIZE, 0)); in GetAndroidHardwareBufferFormatFromChannelSizes()
1419 GLuint blueSize = static_cast<GLuint>(attribMap.getAsInt(EGL_BLUE_SIZE, 0)); in GetAndroidHardwareBufferFormatFromChannelSizes()
1420 GLuint alphaSize = static_cast<GLuint>(attribMap.getAsInt(EGL_ALPHA_SIZE, 0)); in GetAndroidHardwareBufferFormatFromChannelSizes()
/external/mesa3d/src/glx/
Ddri_common.c123 } attribMap[] = { variable
176 for (i = 0; i < ARRAY_SIZE(attribMap); i++) in scalarEqual()
177 if (attribMap[i].attrib == attrib) { in scalarEqual()
178 glxValue = *(unsigned int *) ((char *) mode + attribMap[i].offset); in scalarEqual()
/external/deqp/modules/egl/
DteglResizeTests.cpp133 AttribMap attribMap; in getEGLConfig() local
135 attribMap[EGL_SURFACE_TYPE] = surfaceType; in getEGLConfig()
136 attribMap[EGL_RENDERABLE_TYPE] = EGL_OPENGL_ES2_BIT; in getEGLConfig()
138 return eglu::chooseSingleConfig(egl, eglDisplay, attribMap); in getEGLConfig()
DteglImageUtil.cpp165 AttribMap attribMap = getCreateAttribs(); in createImage() local
167 attribMap[EGL_IMAGE_PRESERVED_KHR] = EGL_TRUE; in createImage()
170 const vector<EGLint> attribs = eglu::attribMapToList(attribMap); in createImage()
/external/angle/src/libGLESv2/
Degl_stubs.cpp79 const AttributeMap &attribMap, in ChooseConfig() argument
84 ClipConfigs(display->chooseConfig(attribMap), configs, config_size, num_config); in ChooseConfig()
397 const AttributeMap &attribMap) in GetPlatformDisplay() argument
402 gl::bitCast<EGLNativeDisplayType>(native_display), attribMap); in GetPlatformDisplay()
407 return Display::GetDisplayFromDevice(eglDevice, attribMap); in GetPlatformDisplay()
Degl_ext_stubs.cpp60 EGLClientBuffer CreateNativeClientBufferANDROID(Thread *thread, const AttributeMap &attribMap) in CreateNativeClientBufferANDROID() argument
64 egl::Display::CreateNativeClientBuffer(attribMap, &eglClientBuffer), in CreateNativeClientBufferANDROID()
200 const AttributeMap &attribMap) in GetPlatformDisplayEXT() argument
205 gl::bitCast<EGLNativeDisplayType>(native_display), attribMap); in GetPlatformDisplayEXT()
210 return egl::Display::GetDisplayFromDevice(eglDevice, attribMap); in GetPlatformDisplayEXT()
/external/angle/src/libANGLE/renderer/gl/
DRendererGL.cpp140 const egl::AttributeMap &attribMap, in RendererGL() argument
169 mUseDebugOutput = hasDebugOutput && ShouldUseDebugLayers(attribMap); in RendererGL()
DRendererGL.h82 const egl::AttributeMap &attribMap,
/external/angle/src/libANGLE/renderer/d3d/
DDisplayD3D.cpp43 const auto &attribMap = display->getAttributeMap(); in CreateRendererD3D() local
47 attribMap.get(EGL_PLATFORM_ANGLE_TYPE_ANGLE, EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE)); in CreateRendererD3D()