Lines Matching refs:surface
51 * Parse the list of surface attributes and return the proper error code.
201 /* window surface attributes */
231 /* pbuffer surface attributes */
306 /* no pixmap surface specific attributes */
325 _eglLog(_EGL_WARNING, "bad surface attribute 0x%04x", attr);
366 /* The config can't be used to create a surface of this type */
429 _eglQuerySurface(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surface,
434 *value = surface->Width;
437 *value = surface->Height;
440 *value = surface->Config->ConfigID;
443 if (surface->Type == EGL_PBUFFER_BIT)
444 *value = surface->LargestPbuffer;
448 if (surface->Type == EGL_PBUFFER_BIT)
449 *value = surface->TextureFormat;
452 if (surface->Type == EGL_PBUFFER_BIT)
453 *value = surface->TextureTarget;
456 if (surface->Type == EGL_PBUFFER_BIT)
457 *value = surface->MipmapTexture;
460 if (surface->Type == EGL_PBUFFER_BIT)
461 *value = surface->MipmapLevel;
464 *value = surface->SwapBehavior;
470 * rendering is requested to use. For a window surface, this is the
471 * attribute value specified when the surface was created or last set
474 * In other words, querying a window surface returns the value most
479 * For a pbuffer surface, it is always EGL_BACK_BUFFER . For a pixmap
480 * surface, it is always EGL_SINGLE_BUFFER . To determine the actual
483 switch (surface->Type) {
487 *value = surface->RequestedRenderBuffer;
498 *value = surface->AspectRatio;
501 *value = surface->HorizontalResolution;
504 *value = surface->VerticalResolution;
507 *value = surface->MultisampleResolve;
510 *value = surface->VGAlphaFormat;
513 *value = surface->VGColorspace;
519 *value = surface->GLColorspace;
522 *value = surface->PostSubBufferSupportedNV;
534 EGLint result = drv->API.QueryBufferAge(drv, disp, surface);
539 ctx->DrawSurface != surface)
543 surface->BufferAgeRead = EGL_TRUE;
546 *value = surface->HdrMetadata.display_primary_r.x;
549 *value = surface->HdrMetadata.display_primary_r.y;
552 *value = surface->HdrMetadata.display_primary_g.x;
555 *value = surface->HdrMetadata.display_primary_g.y;
558 *value = surface->HdrMetadata.display_primary_b.x;
561 *value = surface->HdrMetadata.display_primary_b.y;
564 *value = surface->HdrMetadata.white_point.x;
567 *value = surface->HdrMetadata.white_point.y;
570 *value = surface->HdrMetadata.max_luminance;
573 *value = surface->HdrMetadata.min_luminance;
576 *value = surface->HdrMetadata.max_cll;
579 *value = surface->HdrMetadata.max_fall;
593 _eglSurfaceAttrib(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surface,
604 confval = surface->Config->RenderableType;
609 surface->MipmapLevel = value;
616 confval = surface->Config->SurfaceType;
626 surface->MultisampleResolve = value;
642 * attribute of the EGLConfig used to create surface does not contain
646 if (!(surface->Config->SurfaceType & EGL_MUTABLE_RENDER_BUFFER_BIT_KHR)) {
651 surface->RequestedRenderBuffer = value;
658 confval = surface->Config->SurfaceType;
668 surface->SwapBehavior = value;
671 surface->HdrMetadata.display_primary_r.x = value;
674 surface->HdrMetadata.display_primary_r.y = value;
677 surface->HdrMetadata.display_primary_g.x = value;
680 surface->HdrMetadata.display_primary_g.y = value;
683 surface->HdrMetadata.display_primary_b.x = value;
686 surface->HdrMetadata.display_primary_b.y = value;
689 surface->HdrMetadata.white_point.x = value;
692 surface->HdrMetadata.white_point.y = value;
695 surface->HdrMetadata.max_luminance = value;
698 surface->HdrMetadata.min_luminance = value;
701 surface->HdrMetadata.max_cll = value;
704 surface->HdrMetadata.max_fall = value;
718 _eglBindTexImage(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surface,
730 if (!(surface->Type & texture_type))
733 if (surface->TextureFormat == EGL_NO_TEXTURE)
736 if (surface->TextureTarget == EGL_NO_TEXTURE)
742 surface->BoundToTexture = EGL_TRUE;