vrend: use bits in caps set v2

We don't need the entire 32 bits to report the presence of TGSI
invariant support.

Suggested-by: Gert Wollny <gert.wollny@collabora.com>
Suggested-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Gurchetan Singh 6 years ago committed by Dave Airlie
parent 11f1cbb5f2
commit 3222f87b73
  1. 6
      src/virgl_hw.h
  2. 2
      src/vrend_renderer.c

@ -211,6 +211,10 @@ enum virgl_formats {
VIRGL_FORMAT_MAX,
};
/* These are used by the capability_bits field in virgl_caps_v2. */
#define VIRGL_CAP_NONE 0
#define VIRGL_CAP_TGSI_INVARIANT (1 << 0)
struct virgl_caps_bool_set1 {
unsigned indep_blend_enable:1;
unsigned indep_blend_func:1;
@ -298,8 +302,8 @@ struct virgl_caps_v2 {
int32_t max_texture_gather_offset;
uint32_t texture_buffer_offset_alignment;
uint32_t uniform_buffer_offset_alignment;
uint32_t tgsi_invariant;
uint32_t shader_buffer_offset_alignment;
uint32_t capability_bits;
};
union virgl_caps {

@ -7081,7 +7081,7 @@ void vrend_renderer_fill_caps(uint32_t set, uint32_t version,
glGetIntegerv(GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT, (GLint*)&caps->v2.shader_buffer_offset_alignment);
}
caps->v2.tgsi_invariant = 1;
caps->v2.capability_bits |= VIRGL_CAP_TGSI_INVARIANT;
}
GLint64 vrend_renderer_get_timestamp(void)

Loading…
Cancel
Save