Skip to content
Snippets Groups Projects
Commit 3bd1c970 authored by Niklas Haas's avatar Niklas Haas
Browse files

gpu/utils: add more sanity verifications

parent 4b2388bb
No related branches found
No related tags found
1 merge request!614A small handful of minor changes to the sliced texture transfer code and related functions
This commit is part of merge request !614. Comments created here will be created in the context of that merge request.
......@@ -143,6 +143,10 @@ pl_gpu pl_gpu_finalize(struct pl_gpu_t *gpu)
// Verification
pl_assert(gpu->limits.max_tex_2d_dim);
pl_assert(gpu->limits.max_variable_comps || gpu->limits.max_ubo_size);
pl_assert(gpu->limits.max_ubo_size <= gpu->limits.max_buf_size);
pl_assert(gpu->limits.max_ssbo_size <= gpu->limits.max_buf_size);
pl_assert(gpu->limits.max_vbo_size <= gpu->limits.max_buf_size);
pl_assert(gpu->limits.max_mapped_size <= gpu->limits.max_buf_size);
for (int n = 0; n < gpu->num_formats; n++) {
pl_fmt fmt = gpu->formats[n];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment