ILO_GPE_VALID_GEN(dev, 6, 6);
+ assert(width >= 1 && height >= 1 && depth >= 1);
+
/*
* From the Sandy Bridge PRM, volume 4 part 1, page 71:
*
util_copy_framebuffer_state(&fb->state, state);
ilo_gpe_init_view_surface_null(dev,
- state->width, state->height,
+ (state->width) ? state->width : 1,
+ (state->height) ? state->height : 1,
1, 0, &fb->null_rt);
first = NULL;
ILO_GPE_VALID_GEN(dev, 7, 7.5);
+ assert(width >= 1 && height >= 1 && depth >= 1);
+
/*
* From the Ivy Bridge PRM, volume 4 part 1, page 62:
*