[Mesa-dev] [PATCH 15/21] i965: Enable ARB_GPU_SHADER5 for gen8+
Matt Turner
mattst88 at gmail.com
Tue Dec 23 08:58:46 PST 2014
On 12/22/14, Ben Widawsky <benjamin.widawsky at intel.com> wrote:
> Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
> ---
> src/mesa/drivers/dri/i965/intel_extensions.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c
> b/src/mesa/drivers/dri/i965/intel_extensions.c
> index bbbb76f..49d92bb 100644
> --- a/src/mesa/drivers/dri/i965/intel_extensions.c
> +++ b/src/mesa/drivers/dri/i965/intel_extensions.c
> @@ -327,9 +327,8 @@ intelInitExtensions(struct gl_context *ctx)
>
> ctx->Extensions.ANGLE_texture_compression_dxt = true;
>
> - if (brw->gen >= 7)
> + if (brw->gen >= 7) {
> ctx->Extensions.ARB_shader_atomic_counters = true;
> -
> - if (brw->gen == 7)
> ctx->Extensions.ARB_gpu_shader5 = true;
> + }
> }
There's a brw->gen >= 7 block above. Let's move both of these into that block.
More information about the mesa-dev
mailing list