mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
st/mesa: Add rgbx handling for fp formats
Add missing cases for fp32 and fp16 formats. Fixes:c68334ffc0"st/mesa: add floating point formats in st_new_renderbuffer_fb()" Signed-off-by: Kevin Strasser <kevin.strasser@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> (cherry picked from commit845ec8576a)
This commit is contained in:
parent
be69033241
commit
a48ef364e1
1 changed files with 6 additions and 0 deletions
|
|
@ -415,9 +415,15 @@ st_new_renderbuffer_fb(enum pipe_format format, unsigned samples, boolean sw)
|
|||
case PIPE_FORMAT_R32G32B32A32_FLOAT:
|
||||
strb->Base.InternalFormat = GL_RGBA32F;
|
||||
break;
|
||||
case PIPE_FORMAT_R32G32B32X32_FLOAT:
|
||||
strb->Base.InternalFormat = GL_RGB32F;
|
||||
break;
|
||||
case PIPE_FORMAT_R16G16B16A16_FLOAT:
|
||||
strb->Base.InternalFormat = GL_RGBA16F;
|
||||
break;
|
||||
case PIPE_FORMAT_R16G16B16X16_FLOAT:
|
||||
strb->Base.InternalFormat = GL_RGB16F;
|
||||
break;
|
||||
default:
|
||||
_mesa_problem(NULL,
|
||||
"Unexpected format %s in st_new_renderbuffer_fb",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue