• Gurchetan Singh's avatar
    virgl: add offset alignment values to to v2 caps struct · fe0647df
    Gurchetan Singh authored
    glBindBufferRange(..) in vrend_draw_bind_ubo is failing with
    more than one uniform block. This is due to improper alignment
    of the start of the second block. Let's query the proper
    alignment from the driver and pass it back to Mesa.
    
    Let's query for the texture alignment too, even though the Virgl
    renderer doesn't call glTexBufferRange yet.
    
    The default values are the widest workable range possible (for example,
    GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT on Nvidia is 256).
    
    Fixes:
    	dEQP-GLES3.functional.ubo.* on Nvidia
    
    Example test:
    	dEQP-GLES3.functional.ubo.multi_basic_types.single_buffer.shared_vertex
    
    Note: This is based on "virgl: reduce some default capset limits.",
    which hasn't landed in Mesa yet but should relatively soon.
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    fe0647df
Name
Last commit
Last update
..
Android.mk Loading commit data...
Automake.inc Loading commit data...
Makefile.am Loading commit data...
Makefile.sources Loading commit data...
meson.build Loading commit data...
virgl_buffer.c Loading commit data...
virgl_context.c Loading commit data...
virgl_context.h Loading commit data...
virgl_encode.c Loading commit data...
virgl_encode.h Loading commit data...
virgl_hw.h Loading commit data...
virgl_protocol.h Loading commit data...
virgl_public.h Loading commit data...
virgl_query.c Loading commit data...
virgl_resource.c Loading commit data...
virgl_resource.h Loading commit data...
virgl_screen.c Loading commit data...
virgl_screen.h Loading commit data...
virgl_streamout.c Loading commit data...
virgl_texture.c Loading commit data...
virgl_tgsi.c Loading commit data...
virgl_winsys.h Loading commit data...