Mesa (master): nvc0: disable MS images on GM107+
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Wed Jul 20 09:13:38 UTC 2016
Module: Mesa
Branch: master
Commit: 3c78d89692a533879efa64f778712dfd537bd105
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c78d89692a533879efa64f778712dfd537bd105
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Tue Jul 5 22:43:14 2016 +0200
nvc0: disable MS images on GM107+
MS images have to be handled explicitly and I don't plan to implement
them for now.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index f681631..a3cd046 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -90,6 +90,13 @@ nvc0_screen_is_format_supported(struct pipe_screen *pscreen,
PIPE_BIND_LINEAR |
PIPE_BIND_SHARED);
+ if (bindings & PIPE_BIND_SHADER_IMAGE && sample_count > 1 &&
+ nouveau_screen(pscreen)->class_3d >= GM107_3D_CLASS) {
+ /* MS images are currently unsupported on Maxwell because they have to
+ * be handled explicitly. */
+ return false;
+ }
+
return (( nvc0_format_table[format].usage |
nvc0_vertex_format[format].usage) & bindings) == bindings;
}
More information about the mesa-commit
mailing list