Mesa (master): r300g: always fail to create a multisample resource
Marek Olšák
mareko at kemper.freedesktop.org
Sun Feb 12 12:42:56 UTC 2012
Module: Mesa
Branch: master
Commit: 6cd9159cea628c542d2233b54f6babb74e45f83c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6cd9159cea628c542d2233b54f6babb74e45f83c
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Feb 12 13:06:15 2012 +0100
r300g: always fail to create a multisample resource
Just to be safe.
---
src/gallium/drivers/r300/r300_texture.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 99678bc..289c71f 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -883,6 +883,9 @@ r300_texture_create_object(struct r300_screen *rscreen,
return NULL;
}
+ if (base->nr_samples > 1)
+ return NULL;
+
pipe_reference_init(&tex->b.b.b.reference, 1);
tex->b.b.b.screen = &rscreen->screen;
tex->b.b.b.usage = base->usage;
More information about the mesa-commit
mailing list