mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
st/mesa: Handle the rest renderbuffer formats from OSMesa
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2189
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/989
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2036
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216>
(cherry picked from commit d83abf1d37)
This commit is contained in:
parent
26adf4b532
commit
ce7f021269
2 changed files with 6 additions and 1 deletions
|
|
@ -472,7 +472,7 @@
|
|||
"description": "st/mesa: Handle the rest renderbuffer formats from OSMesa",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -355,6 +355,7 @@ st_new_renderbuffer_fb(enum pipe_format format, unsigned samples, boolean sw)
|
|||
case PIPE_FORMAT_R8G8B8X8_UNORM:
|
||||
case PIPE_FORMAT_B8G8R8X8_UNORM:
|
||||
case PIPE_FORMAT_X8R8G8B8_UNORM:
|
||||
case PIPE_FORMAT_R8G8B8_UNORM:
|
||||
strb->Base.InternalFormat = GL_RGB8;
|
||||
break;
|
||||
case PIPE_FORMAT_R8G8B8A8_SRGB:
|
||||
|
|
@ -400,6 +401,9 @@ st_new_renderbuffer_fb(enum pipe_format format, unsigned samples, boolean sw)
|
|||
case PIPE_FORMAT_R16G16B16A16_UNORM:
|
||||
strb->Base.InternalFormat = GL_RGBA16;
|
||||
break;
|
||||
case PIPE_FORMAT_R16G16B16_UNORM:
|
||||
strb->Base.InternalFormat = GL_RGB16;
|
||||
break;
|
||||
case PIPE_FORMAT_R8_UNORM:
|
||||
strb->Base.InternalFormat = GL_R8;
|
||||
break;
|
||||
|
|
@ -416,6 +420,7 @@ st_new_renderbuffer_fb(enum pipe_format format, unsigned samples, boolean sw)
|
|||
strb->Base.InternalFormat = GL_RGBA32F;
|
||||
break;
|
||||
case PIPE_FORMAT_R32G32B32X32_FLOAT:
|
||||
case PIPE_FORMAT_R32G32B32_FLOAT:
|
||||
strb->Base.InternalFormat = GL_RGB32F;
|
||||
break;
|
||||
case PIPE_FORMAT_R16G16B16A16_FLOAT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue