summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blit.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-04-29 12:55:41 -0600
committerBrian Paul <[email protected]>2008-04-29 12:55:41 -0600
commit733bc4df1a53bb1899933685e06c52109d096bee (patch)
tree7ffdbc302259be47f5c724c29a407b9f5ea359b5 /src/gallium/auxiliary/util/u_blit.c
parentdd9dc7df80d208b884b4c090e4408c9a12aa6095 (diff)
gallium: added some assertions to be sure the blit's surface formats are suitable
Diffstat (limited to 'src/gallium/auxiliary/util/u_blit.c')
-rw-r--r--src/gallium/auxiliary/util/u_blit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c
index 1105066cb82..9e9912c6e46 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -264,6 +264,9 @@ util_blit_pixels(struct blit_state *ctx,
dstY1 = tmp;
}
+ assert(screen->is_format_supported(screen, src->format, PIPE_TEXTURE));
+ assert(screen->is_format_supported(screen, dst->format, PIPE_SURFACE));
+
/*
* XXX for now we're always creating a temporary texture.
* Strictly speaking that's not always needed.