report maximum vertex-attrib stride to host

[airlied: pulling this in first, just to get it out of the way].

Reviewed-by: Dave Airlie <airlied@redhat.com>
macos/master
Erik Faye-Lund 6 years ago committed by Dave Airlie
parent 6a4ef6d8a2
commit e387116ef4
  1. 1
      src/virgl_hw.h
  2. 3
      src/vrend_renderer.c

@ -306,6 +306,7 @@ struct virgl_caps_v2 {
uint32_t shader_buffer_offset_alignment; uint32_t shader_buffer_offset_alignment;
uint32_t capability_bits; uint32_t capability_bits;
uint32_t sample_locations[8]; uint32_t sample_locations[8];
uint32_t max_vertex_attrib_stride;
}; };
union virgl_caps { union virgl_caps {

@ -7586,6 +7586,9 @@ void vrend_renderer_fill_caps(uint32_t set, uint32_t version,
caps->v2.capability_bits |= VIRGL_CAP_TGSI_INVARIANT | VIRGL_CAP_SET_MIN_SAMPLES; caps->v2.capability_bits |= VIRGL_CAP_TGSI_INVARIANT | VIRGL_CAP_SET_MIN_SAMPLES;
if (gl_ver >= 44)
glGetIntegerv(GL_MAX_VERTEX_ATTRIB_STRIDE, (GLint*)&caps->v2.max_vertex_attrib_stride);
if (gl_ver >= 43 || epoxy_has_gl_extension("GL_ARB_texture_view")) if (gl_ver >= 43 || epoxy_has_gl_extension("GL_ARB_texture_view"))
caps->v2.capability_bits |= VIRGL_CAP_TEXTURE_VIEW; caps->v2.capability_bits |= VIRGL_CAP_TEXTURE_VIEW;
} }

Loading…
Cancel
Save