From d43e9a27e33397f96c127039bf920af1b4bbc8ea Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 20 May 2020 14:54:15 +1000 Subject: [PATCH] vrend: emit OES_shader_io_blocks for GLES 3.1 shaders with io blocks While adding support to llvmpipe for GL 4.00 a bunch of virgl tests started to fail, this should fix one of the cases Signed-off-by: Dave Airlie Reviewed-by: Gert Wollny --- src/vrend_shader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index ac36692..4a4d447 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -5315,6 +5315,9 @@ static void emit_header(struct dump_ctx *ctx) } if (ctx->cfg->glsl_version < 320) { + if (prefer_generic_io_block(ctx, io_in) || prefer_generic_io_block(ctx, io_out)) { + emit_ext(ctx, "OES_shader_io_blocks", "require"); + } if (ctx->shader_req_bits & SHADER_REQ_SAMPLE_SHADING) emit_ext(ctx, "OES_sample_variables", "require"); if (ctx->shader_req_bits & SHADER_REQ_GPU_SHADER5) {