projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3f1ae
)
gallium/u_blit: bail out if src is a multisample texture
author
Marek Olšák
<maraeo@gmail.com>
Tue, 24 Jul 2012 14:11:04 +0000
(16:11 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Sat, 4 Aug 2012 11:53:07 +0000
(13:53 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_blit.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_blit.c
b/src/gallium/auxiliary/util/u_blit.c
index
1300872
..
3887e65
100644
(file)
--- a/
src/gallium/auxiliary/util/u_blit.c
+++ b/
src/gallium/auxiliary/util/u_blit.c
@@
-507,6
+507,12
@@
util_blit_pixels(struct blit_state *ctx,
return;
}
+ /* XXX Reading multisample textures is unimplemented. */
+ assert(src_tex->nr_samples <= 1);
+ if (src_tex->nr_samples > 1) {
+ return;
+ }
+
/* It's a mistake to call this function with a stencil format and
* without shader stencil export. We don't do software fallbacks here.
* Ignore stencil and only copy depth.