[Mesa-dev] [PATCH] mesa/ubo: add missing compute cases for ubo/atomic buffers

Anuj Phogat anuj.phogat at gmail.com
Thu May 5 08:18:30 UTC 2016


On Wed, May 4, 2016 at 8:12 PM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This fixes: GL43-CTS.compute_shader.resource-ubo
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/mesa/main/uniforms.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c
> index a9308d0..acb2d06 100644
> --- a/src/mesa/main/uniforms.c
> +++ b/src/mesa/main/uniforms.c
> @@ -1144,6 +1144,12 @@ mesa_bufferiv(struct gl_shader_program *shProg, GLenum type,
>                                    GL_REFERENCED_BY_FRAGMENT_SHADER, params,
>                                    caller);
>        return;
> +   case GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER:
> +   case GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER:
> +      _mesa_program_resource_prop(shProg, res, index,
> +                                  GL_REFERENCED_BY_COMPUTE_SHADER, params,
> +                                  caller);
> +      return;
>     default:
>        _mesa_error(ctx, GL_INVALID_ENUM,
>                    "%s(pname 0x%x (%s))", caller, pname,
> --
> 2.5.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the mesa-dev mailing list