st/mesa: Add rgbx handling for fp formats
authorKevin Strasser <kevin.strasser@intel.com>
Thu, 30 May 2019 20:31:20 +0000 (13:31 -0700)
committerEric Engestrom <eric@engestrom.ch>
Wed, 12 Jun 2019 19:03:47 +0000 (19:03 +0000)
Add missing cases for fp32 and fp16 formats.

Fixes: c68334ffc0a9 "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>
src/mesa/state_tracker/st_cb_fbo.c

index 5fe6c79a93afe23ddd33c5a9bb10b0cfe85b0bc4..5e3425a73a62ab33fdf5ddcc63d97b7b82417df7 100644 (file)
@@ -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",