mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
zink: add an assert for dummy fb surface creation
add some info in the improbable case that this fails Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27606>
This commit is contained in:
parent
8bad4205c6
commit
8c3adf749d
1 changed files with 1 additions and 0 deletions
|
|
@ -5200,6 +5200,7 @@ zink_get_dummy_pipe_surface(struct zink_context *ctx, int samples_index)
|
|||
if (!ctx->dummy_surface[samples_index]) {
|
||||
unsigned size = calc_max_dummy_fbo_size(ctx);
|
||||
ctx->dummy_surface[samples_index] = zink_surface_create_null(ctx, PIPE_TEXTURE_2D, size, size, BITFIELD_BIT(samples_index));
|
||||
assert(ctx->dummy_surface[samples_index]);
|
||||
/* This is possibly used with imageLoad which according to GL spec must return 0 */
|
||||
if (!samples_index) {
|
||||
union pipe_color_union color = {0};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue