mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
gallium: added some assertions to be sure the blit's surface formats are suitable
This commit is contained in:
parent
dd9dc7df80
commit
733bc4df1a
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue