Blame SOURCES/mesa-9.2-hardware-float.patch

230118
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
230118
index 5ec1df6..a0406fc 100644
230118
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
230118
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
230118
@@ -306,6 +306,13 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
230118
    if (!format_desc)
230118
       return FALSE;
230118
 
230118
+   if ((bind & PIPE_BIND_RENDER_TARGET) &&
230118
+       format != PIPE_FORMAT_R9G9B9E5_FLOAT &&
230118
+       format != PIPE_FORMAT_R11G11B10_FLOAT &&
230118
+       util_format_is_float(format)) {
230118
+      return FALSE;
230118
+   }
230118
+
230118
    assert(target == PIPE_BUFFER ||
230118
           target == PIPE_TEXTURE_1D ||
230118
           target == PIPE_TEXTURE_1D_ARRAY ||
230118
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
230118
index 937035e..2f5e571 100644
230118
--- a/src/gallium/drivers/softpipe/sp_screen.c
230118
+++ b/src/gallium/drivers/softpipe/sp_screen.c
230118
@@ -291,6 +291,13 @@ softpipe_is_format_supported( struct pipe_screen *screen,
230118
    if (!format_desc)
230118
       return FALSE;
230118
 
230118
+   if ((bind & PIPE_BIND_RENDER_TARGET) &&
230118
+       format != PIPE_FORMAT_R9G9B9E5_FLOAT &&
230118
+       format != PIPE_FORMAT_R11G11B10_FLOAT &&
230118
+       util_format_is_float(format)) {
230118
+      return FALSE;
230118
+   }
230118
+
230118
    if (sample_count > 1)
230118
       return FALSE;
230118