gpu: Add more assertions to blitop

The blitop is nasty, so we should make sure we have supported images
when using it.
This commit is contained in:
Benjamin Otte 2024-01-03 13:24:40 +01:00
parent 2fef71da5c
commit b3d044a0b1

View File

@ -210,6 +210,8 @@ gsk_gpu_blit_op (GskGpuFrame *frame,
GskGpuBlitOp *self;
g_assert ((gsk_gpu_image_get_flags (src_image) & GSK_GPU_IMAGE_NO_BLIT) == 0);
g_assert (filter != GSK_GPU_BLIT_LINEAR || (gsk_gpu_image_get_flags (src_image) & GSK_GPU_IMAGE_FILTERABLE) == GSK_GPU_IMAGE_FILTERABLE);
g_assert ((gsk_gpu_image_get_flags (dest_image) & GSK_GPU_IMAGE_RENDERABLE) == GSK_GPU_IMAGE_RENDERABLE);
self = (GskGpuBlitOp *) gsk_gpu_op_alloc (frame, &GSK_GPU_BLIT_OP_CLASS);