mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 15:40:11 +01:00
mesa/ubo: add missing compute cases for ubo/atomic buffers
This fixes: GL43-CTS.compute_shader.resource-ubo Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2dd3fc3cac
commit
76a36ac3ea
1 changed files with 6 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue