[Mesa-dev] [PATCH v2] mesa: Draw indirect is not allowed when xfb is active and unpaused

Ian Romanick idr at freedesktop.org
Mon Oct 26 16:26:04 PDT 2015


Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 10/26/2015 03:50 AM, Marta Lofstedt wrote:
> From: Marta Lofstedt <marta.lofstedt at intel.com>
> 
> OpenGL ES 3.1 specification, section 10.5:
> "An INVALID_OPERATION error is generated if
> transform feedback is active and not paused."
> 
> Signed-off-by: Marta Lofstedt <marta.lofstedt at linux.intel.com>
> ---
>  src/mesa/main/api_validate.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
> index fa6c1b5..303d5e8 100644
> --- a/src/mesa/main/api_validate.c
> +++ b/src/mesa/main/api_validate.c
> @@ -710,6 +710,16 @@ valid_draw_indirect(struct gl_context *ctx,
>        return GL_FALSE;
>     }
>  
> +   /* OpenGL ES 3.1 specification, section 10.5:
> +    *
> +    *      "An INVALID_OPERATION error is generated if
> +    *      transform feedback is active and not paused."
> +    */
> +   if (_mesa_is_gles31(ctx) && _mesa_is_xfb_active_and_unpaused(ctx)) {
> +      _mesa_error(ctx, GL_INVALID_OPERATION,
> +                  "%s(TransformFeedback is active but not paused)", name);
> +   }
> +
>     /*
>      * OpenGL ES 3.1 spec. section 10.5:
>      * "An INVALID_OPERATION error is generated if zero is bound to
> 



More information about the mesa-dev mailing list