summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index daf149138df..fb5d13815ca 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -287,14 +287,15 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
return FALSE;
}
- /* llvmpipe doesn't support pure integer yet */
- if (util_format_is_pure_integer(format)) {
+ /*
+ * Everything can be supported by u_format.
+ */
+
+ if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS &&
+ !format_desc->fetch_rgba_float) {
return FALSE;
}
- /*
- * Everything else should be supported by u_format.
- */
return TRUE;
}