2016-05-01 06:13:24 +00:00
|
|
|
From 00bcd599310dc7fce4fe336ffd85902429051a0c Mon Sep 17 00:00:00 2001
|
2016-03-20 13:48:31 +00:00
|
|
|
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
|
|
|
Date: Sun, 20 Mar 2016 13:27:04 +0100
|
|
|
|
Subject: [PATCH 2/4] hardware gloat
|
|
|
|
|
|
|
|
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
|
|
|
---
|
|
|
|
src/gallium/drivers/llvmpipe/lp_screen.c | 7 +++++++
|
|
|
|
src/gallium/drivers/softpipe/sp_screen.c | 7 +++++++
|
|
|
|
2 files changed, 14 insertions(+)
|
|
|
|
|
2013-05-08 22:03:21 +00:00
|
|
|
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
|
2016-05-01 06:13:24 +00:00
|
|
|
index 4f61de8..3b0ec77 100644
|
2013-05-08 22:03:21 +00:00
|
|
|
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
|
|
|
|
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
|
2016-05-01 06:13:24 +00:00
|
|
|
@@ -411,6 +411,13 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
2013-05-08 22:03:21 +00:00
|
|
|
if (!format_desc)
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
+ if ((bind & PIPE_BIND_RENDER_TARGET) &&
|
|
|
|
+ format != PIPE_FORMAT_R9G9B9E5_FLOAT &&
|
|
|
|
+ format != PIPE_FORMAT_R11G11B10_FLOAT &&
|
|
|
|
+ util_format_is_float(format)) {
|
|
|
|
+ return FALSE;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
assert(target == PIPE_BUFFER ||
|
|
|
|
target == PIPE_TEXTURE_1D ||
|
|
|
|
target == PIPE_TEXTURE_1D_ARRAY ||
|
|
|
|
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
|
2016-05-01 06:13:24 +00:00
|
|
|
index 031602b..c279120 100644
|
2013-05-08 22:03:21 +00:00
|
|
|
--- a/src/gallium/drivers/softpipe/sp_screen.c
|
|
|
|
+++ b/src/gallium/drivers/softpipe/sp_screen.c
|
2016-05-01 06:13:24 +00:00
|
|
|
@@ -358,6 +358,13 @@ softpipe_is_format_supported( struct pipe_screen *screen,
|
2013-05-08 22:03:21 +00:00
|
|
|
if (!format_desc)
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
+ if ((bind & PIPE_BIND_RENDER_TARGET) &&
|
|
|
|
+ format != PIPE_FORMAT_R9G9B9E5_FLOAT &&
|
|
|
|
+ format != PIPE_FORMAT_R11G11B10_FLOAT &&
|
|
|
|
+ util_format_is_float(format)) {
|
|
|
|
+ return FALSE;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if (sample_count > 1)
|
|
|
|
return FALSE;
|
|
|
|
|
2016-03-20 13:48:31 +00:00
|
|
|
--
|
|
|
|
2.7.4
|
|
|
|
|