mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
egl/dri: Use packed pipe_format
This is consistent with __DRI_IMAGE_FORMAT_ARGB8888 and the rest of
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27709 .
This makes no difference with little endian, it does with big endian
though.
Fixes: dcbf61f5df ("egl/dri: Use pipe_format instead of DRI_IMAGE_FORMAT")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29781>
This commit is contained in:
parent
fdd204538b
commit
2dec0cbe01
1 changed files with 2 additions and 2 deletions
|
|
@ -2447,7 +2447,7 @@ dri2_create_image_mesa_drm_buffer(_EGLDisplay *disp, _EGLContext *ctx,
|
|||
|
||||
switch (attrs.DRMBufferFormatMESA) {
|
||||
case EGL_DRM_BUFFER_FORMAT_ARGB32_MESA:
|
||||
format = PIPE_FORMAT_B8G8R8A8_UNORM;
|
||||
format = PIPE_FORMAT_BGRA8888_UNORM;
|
||||
pitch = attrs.DRMBufferStrideMESA;
|
||||
break;
|
||||
default:
|
||||
|
|
@ -2900,7 +2900,7 @@ dri2_create_drm_image_mesa(_EGLDisplay *disp, const EGLint *attr_list)
|
|||
|
||||
switch (attrs.DRMBufferFormatMESA) {
|
||||
case EGL_DRM_BUFFER_FORMAT_ARGB32_MESA:
|
||||
format = PIPE_FORMAT_B8G8R8A8_UNORM;
|
||||
format = PIPE_FORMAT_BGRA8888_UNORM;
|
||||
break;
|
||||
default:
|
||||
_eglError(EGL_BAD_PARAMETER, __func__);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue