aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Wollny <gert.wollny@collabora.com>2023-09-27 10:50:49 +0200
committerMarge Bot <emma+marge@anholt.net>2024-04-11 20:18:55 +0000
commitdced6c7e02625d1fbadd28f6459314394c498d8f (patch)
tree5c3d8190d86288c3f7e0b4f96f1f5a99ffe274a9
parenta5eba491786fd781159688027b8e2ae2e182c568 (diff)
downloadvirglrenderer-dced6c7e02625d1fbadd28f6459314394c498d8f.tar.gz
decode: print error if format is not correct
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1248>
-rw-r--r--src/vrend_decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vrend_decode.c b/src/vrend_decode.c
index eabc8c6e..70c737ab 100644
--- a/src/vrend_decode.c
+++ b/src/vrend_decode.c
@@ -660,6 +660,7 @@ static int vrend_decode_create_surface_common(struct vrend_context *ctx, const u
enum virgl_formats format = get_buf_entry(buf, VIRGL_OBJ_SURFACE_FORMAT);
if (format >= PIPE_FORMAT_COUNT) {
+ vrend_report_context_error(ctx, VIRGL_ERROR_CTX_ILLEGAL_FORMAT, format);
return EINVAL;
}