Commit f58e985a authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

renderer: report error on invalid surface

Instead of later crashing.

Fix found thanks to american fuzzy lop.
Signed-off-by: default avatarMarc-André Lureau <>
parent b079de61
......@@ -1530,7 +1530,10 @@ void vrend_set_framebuffer_state(struct vrend_context *ctx,
if (surf == NULL) {
report_context_error(ctx, VIRGL_ERROR_CTX_ILLEGAL_SURFACE, i);
new_height = u_minify(surf->texture->base.height0, surf->val0);
new_ibf = surf->texture->y_0_top ? true : false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment