diff options
author | Samuel Pitoiset <[email protected]> | 2016-07-05 22:43:14 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2016-07-20 11:11:33 +0200 |
commit | 3c78d89692a533879efa64f778712dfd537bd105 (patch) | |
tree | c6720515591084528533d13cc5823301cadd3222 | |
parent | 8489f20689c8d3d372c4143311cca23cd6a5fc58 (diff) |
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 <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index f6816314bdc..a3cd0467b2d 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; } |