Lines Matching defs:attrs

2355    _EGLImageAttribs attrs;
2363 if (!_eglParseImageAttribList(&attrs, disp, attr_list))
2366 plane = attrs.PlaneWL;
2420 _EGLImageAttribs attrs;
2430 if (!_eglParseImageAttribList(&attrs, disp, attr_list))
2448 depth = attrs.GLTextureZOffset;
2483 attrs.GLTextureLevel,
2521 _EGLImageAttribs attrs;
2526 if (!_eglParseImageAttribList(&attrs, disp, attr_list))
2529 if (attrs.Width <= 0 || attrs.Height <= 0 ||
2530 attrs.DRMBufferStrideMESA <= 0) {
2536 switch (attrs.DRMBufferFormatMESA) {
2539 pitch = attrs.DRMBufferStrideMESA;
2549 attrs.Width,
2550 attrs.Height,
2560 dri2_check_dma_buf_attribs(const _EGLImageAttribs *attrs)
2578 if (attrs->Width <= 0 || attrs->Height <= 0 ||
2579 !attrs->DMABufFourCC.IsPresent)
2589 for (unsigned i = 0; i < ARRAY_SIZE(attrs->DMABufPlanePitches); ++i) {
2590 if (attrs->DMABufPlanePitches[i].IsPresent &&
2591 attrs->DMABufPlanePitches[i].Value <= 0)
2603 if (attrs->DMABufPlaneModifiersLo[i].IsPresent !=
2604 attrs->DMABufPlaneModifiersHi[i].IsPresent)
2611 if (attrs->DMABufPlaneFds[i].IsPresent) {
2612 if ((attrs->DMABufPlaneModifiersLo[0].IsPresent !=
2613 attrs->DMABufPlaneModifiersLo[i].IsPresent) ||
2614 (attrs->DMABufPlaneModifiersLo[0].Value !=
2615 attrs->DMABufPlaneModifiersLo[i].Value) ||
2616 (attrs->DMABufPlaneModifiersHi[0].Value !=
2617 attrs->DMABufPlaneModifiersHi[i].Value))
2721 dri2_check_dma_buf_format(const _EGLImageAttribs *attrs)
2723 unsigned plane_n = dri2_num_fourcc_format_planes(attrs->DMABufFourCC.Value);
2741 if (attrs->DMABufPlaneModifiersLo[i].IsPresent &&
2742 attrs->DMABufPlaneModifiersHi[i].IsPresent) {
2754 if (!attrs->DMABufPlaneFds[i].IsPresent ||
2755 !attrs->DMABufPlaneOffsets[i].IsPresent ||
2756 !attrs->DMABufPlanePitches[i].IsPresent) {
2771 if (attrs->DMABufPlaneFds[i].IsPresent ||
2772 attrs->DMABufPlaneOffsets[i].IsPresent ||
2773 attrs->DMABufPlanePitches[i].IsPresent) {
2858 _EGLImageAttribs attrs;
2879 if (!_eglParseImageAttribList(&attrs, disp, attr_list))
2882 if (!dri2_check_dma_buf_attribs(&attrs))
2885 num_fds = dri2_check_dma_buf_format(&attrs);
2890 fds[i] = attrs.DMABufPlaneFds[i].Value;
2891 pitches[i] = attrs.DMABufPlanePitches[i].Value;
2892 offsets[i] = attrs.DMABufPlaneOffsets[i].Value;
2896 * will be present in attrs.DMABufPlaneModifiersLo[0] and
2897 * attrs.DMABufPlaneModifiersHi[0] */
2898 if (attrs.DMABufPlaneModifiersLo[0].IsPresent) {
2899 modifier = combine_u32_into_u64(attrs.DMABufPlaneModifiersHi[0].Value,
2900 attrs.DMABufPlaneModifiersLo[0].Value);
2904 if (attrs.ProtectedContent) {
2915 attrs.Width, attrs.Height, attrs.DMABufFourCC.Value,
2917 attrs.DMABufYuvColorSpaceHint.Value,
2918 attrs.DMABufSampleRangeHint.Value,
2919 attrs.DMABufChromaHorizontalSiting.Value,
2920 attrs.DMABufChromaVerticalSiting.Value,
2921 attrs.ProtectedContent ? __DRI_IMAGE_PROTECTED_CONTENT_FLAG : 0,
2933 attrs.Width, attrs.Height, attrs.DMABufFourCC.Value,
2935 attrs.DMABufYuvColorSpaceHint.Value,
2936 attrs.DMABufSampleRangeHint.Value,
2937 attrs.DMABufChromaHorizontalSiting.Value,
2938 attrs.DMABufChromaVerticalSiting.Value,
2945 attrs.Width, attrs.Height, attrs.DMABufFourCC.Value,
2947 attrs.DMABufYuvColorSpaceHint.Value,
2948 attrs.DMABufSampleRangeHint.Value,
2949 attrs.DMABufChromaHorizontalSiting.Value,
2950 attrs.DMABufChromaVerticalSiting.Value,
2968 _EGLImageAttribs attrs;
2977 if (!_eglParseImageAttribList(&attrs, disp, attr_list))
2980 if (attrs.Width <= 0 || attrs.Height <= 0) {
2985 switch (attrs.DRMBufferFormatMESA) {
2998 if (attrs.DRMBufferUseMESA & ~valid_mask) {
3004 if (attrs.DRMBufferUseMESA & EGL_DRM_BUFFER_USE_SHARE_MESA)
3006 if (attrs.DRMBufferUseMESA & EGL_DRM_BUFFER_USE_SCANOUT_MESA)
3008 if (attrs.DRMBufferUseMESA & EGL_DRM_BUFFER_USE_CURSOR_MESA)
3021 attrs.Width, attrs.Height,