freedreno/a20x: Enable rendering to RGBA/RGBX
authorWladimir J. van der Laan <laanwj@gmail.com>
Fri, 25 Aug 2017 14:34:08 +0000 (14:34 +0000)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 15 Oct 2017 16:09:14 +0000 (12:09 -0400)
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a2xx/fd2_screen.c

index 12ab5b4108912493985be42e2037b57b855d9b1b..2fd479483e21e2fb3041272320b4ecae0c0155c6 100644 (file)
@@ -53,7 +53,9 @@ fd2_screen_is_format_supported(struct pipe_screen *pscreen,
        /* TODO figure out how to render to other formats.. */
        if ((usage & PIPE_BIND_RENDER_TARGET) &&
                        ((format != PIPE_FORMAT_B8G8R8A8_UNORM) &&
-                        (format != PIPE_FORMAT_B8G8R8X8_UNORM))) {
+                        (format != PIPE_FORMAT_B8G8R8X8_UNORM) &&
+                        (format != PIPE_FORMAT_R8G8B8A8_UNORM) &&
+                        (format != PIPE_FORMAT_R8G8B8X8_UNORM))) {
                DBG("not supported render target: format=%s, target=%d, sample_count=%d, usage=%x",
                                util_format_name(format), target, sample_count, usage);
                return FALSE;