From 145556c1d24f7f1ac54a4fb3d8bf4de95b5c58c2 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 21 May 2020 06:07:04 +1000 Subject: [PATCH] shader: request EXT_texture_buffer for gles 3.1 texture buffer. This should fix some more crashes seens with llvmpipe ARB_gpu_shader5 support Reviewed-by: Gurchetan Singh --- src/vrend_shader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 4a4d447..d5085aa 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -5315,6 +5315,8 @@ static void emit_header(struct dump_ctx *ctx) } if (ctx->cfg->glsl_version < 320) { + if (ctx->shader_req_bits & SHADER_REQ_SAMPLER_BUF) + emit_ext(ctx, "EXT_texture_buffer", "require"); if (prefer_generic_io_block(ctx, io_in) || prefer_generic_io_block(ctx, io_out)) { emit_ext(ctx, "OES_shader_io_blocks", "require"); }