This needs to throw BadValue.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12006>
goto error_exit;
/* Check the renderType value */
- if (!validate_renderType_against_config(config_base, dca.render_type))
- goto error_exit;
+ if (!validate_renderType_against_config(config_base, dca.render_type)) {
+ *error = BadValue;
+ goto error_exit;
+ }
if (shareList) {
/* We can't share with an indirect context */
goto error_exit;
/* Check the renderType value */
- if (!validate_renderType_against_config(config_base, dca.render_type))
- goto error_exit;
+ if (!validate_renderType_against_config(config_base, dca.render_type)) {
+ *error = BadValue;
+ goto error_exit;
+ }
if (shareList) {
/* We can't share with an indirect context */
/* Check the renderType value */
if (!validate_renderType_against_config(config_base, dca.render_type)) {
- return NULL;
+ *error = BadValue;
+ return NULL;
}
if (shareList) {