vrend: fix s3tc detection

We should also check for S3_s3tc to detect S3TC texture compression
support.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Erik Faye-Lund 6 years ago
parent f5c3aa7c44
commit 15d412bc39
  1. 3
      src/vrend_formats.c

@ -320,7 +320,8 @@ static void vrend_add_formats(struct vrend_format_table *table, int num_entries)
const struct util_format_description *desc = util_format_description(table[i].format);
switch (desc->layout) {
case UTIL_FORMAT_LAYOUT_S3TC:
if (epoxy_has_gl_extension("GL_EXT_texture_compression_s3tc"))
if (epoxy_has_gl_extension("GL_S3_s3tc") ||
epoxy_has_gl_extension("GL_EXT_texture_compression_s3tc"))
vrend_insert_format(&table[i], VIRGL_BIND_SAMPLER_VIEW);
continue;

Loading…
Cancel
Save